diff --git a/public/react/src/modules/courses/boards/BoardsListItem.js b/public/react/src/modules/courses/boards/BoardsListItem.js
index 2b9c05126..0df7675a3 100644
--- a/public/react/src/modules/courses/boards/BoardsListItem.js
+++ b/public/react/src/modules/courses/boards/BoardsListItem.js
@@ -1,7 +1,8 @@
import React,{ Component } from "react";
import {Tooltip} from 'antd'
import moment from 'moment'
-import { getUrl, WordsBtn } from 'educoder'
+import { getUrl, WordsBtn, ConditionToolTip } from 'educoder'
+import './boardsListItem.css';
class BoardsListItem extends Component{
constructor(props){
super(props);
@@ -75,6 +76,16 @@ class BoardsListItem extends Component{
) : ""
}
+
+
+ {(isAdmin || discussMessage.author.login == current_user.login) &&
+ { this.props.toEditPage(this.props.match.params.coursesId, this.props.match.params.boardId, discussMessage.id )} }>编辑 }
+
+ { isAdmin && { debugger; onSticky(discussMessage); e.cancelBubble = true; e.stopPropagation();}}>
+ { discussMessage.sticky ? '取消置顶' : '置顶' } }
+
@@ -88,20 +99,20 @@ class BoardsListItem extends Component{
{moment(discussMessage.created_on).fromNow()}
-
- {(isAdmin || discussMessage.author.login == current_user.login) &&
- { this.props.toEditPage(this.props.match.params.coursesId, this.props.match.params.boardId, discussMessage.id )} }>编辑 }
-
- { isAdmin && { debugger; onSticky(discussMessage); e.cancelBubble = true; e.stopPropagation();}}>
- { discussMessage.sticky ? '取消置顶' : '置顶' } }
-
-
-
-
-
-
+ {
+ discussMessage.category_name &&
+
+
+ {
+ 所属目录:{discussMessage.category_name}
+
+ }
+
+
+ }
+
{/* { (isAdmin || discussMessage.author.login == current_user.login) &&
diff --git a/public/react/src/modules/courses/boards/boardsListItem.css b/public/react/src/modules/courses/boards/boardsListItem.css
new file mode 100644
index 000000000..3a1771349
--- /dev/null
+++ b/public/react/src/modules/courses/boards/boardsListItem.css
@@ -0,0 +1,9 @@
+.directory_style {
+ position: absolute;
+ right: 0;
+ bottom: 0;
+ maxSize: 20px;
+ overflow: hidden;
+ whiteSpace: nowrap;
+ textOverflow: ellipsis
+}
\ No newline at end of file
diff --git a/public/react/src/modules/courses/boards/index.js b/public/react/src/modules/courses/boards/index.js
index 3879bbd64..5cfbbeba3 100644
--- a/public/react/src/modules/courses/boards/index.js
+++ b/public/react/src/modules/courses/boards/index.js
@@ -386,8 +386,8 @@ class Boards extends Component{
{
boards && boards.filter((item)=> {
return item.id != bid && (!this.state.dirSearchValue || item.name.indexOf(this.state.dirSearchValue) != -1)
- }).map( (item) => {
- return - this.moveTo(item)} title={item.name}>{item.name}
+ }).map( (item, index) => {
+ return - this.moveTo(item)} title={item.name}>{item.name}
})
}
{ isAdmin && !isCourseEnd &&
@@ -427,7 +427,7 @@ class Boards extends Component{
{ messages.map((item, index) => {
return (
-