diff --git a/public/react/src/modules/courses/busyWork/UseBank.js b/public/react/src/modules/courses/busyWork/UseBank.js
index 1fc662c14..ed47eb2d0 100644
--- a/public/react/src/modules/courses/busyWork/UseBank.js
+++ b/public/react/src/modules/courses/busyWork/UseBank.js
@@ -207,6 +207,12 @@ class UseBank extends Component{
text-overflow:ellipsis;
white-space:nowrap
}
+ .bankwidth2{
+ width:24% !important;
+ overflow:hidden;
+ text-overflow:ellipsis;
+ white-space:nowrap
+ }
`}
@@ -288,31 +294,32 @@ class UseBank extends Component{
10 && item.course_list_name}
- className={nav_my==='myself'?"fl with30 color-grey-6 task-hide pl5 bankwidth":"fl with30 color-grey-6 task-hide pl5 bankwidth"}
+ className={nav_my === 'myself' ? "fl with30 color-grey-6 task-hide pl5 bankwidth" : "fl with30 color-grey-6 task-hide pl5 bankwidth2"}
>{item.course_list_name}
{
nav_my==='public' &&
{item.username}
}
- {
- this.props.object_type && this.props.object_type === "normal" ?
+ {nav_my === "myself" ?
+ (this.props.object_type && this.props.object_type === "normal" ?
编辑
: this.props.object_type && this.props.object_type === "group" ?
- 编辑
- : this.props.object_type && this.props.object_type === "exercise" ?
编辑
- : this.props.object_type && this.props.object_type === "poll" ?
+ href={`/banks/group/${item.id}/edit/publicly?tab=0`}
+ >编辑
+ : this.props.object_type && this.props.object_type === "exercise" ?
编辑
- : ""
+ href={`/banks/exercise/${item.id}/edit/personal`}
+ >编辑
+ : this.props.object_type && this.props.object_type === "poll" ?
+ 编辑
+ : "")
+ : ""
}