|
|
|
@ -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
|
|
|
|
|
}
|
|
|
|
|
`}</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -288,31 +294,32 @@ class UseBank extends Component{
|
|
|
|
|
<label className="task-hide fl" title={item.name && item.name.length > 30 ? item.name:""} style={{"maxWidth":"100%"}}>{item.name}</label>
|
|
|
|
|
</span>
|
|
|
|
|
<span title={item.course_list_name && item.course_list_name.length > 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}</span>
|
|
|
|
|
{
|
|
|
|
|
nav_my==='public' &&
|
|
|
|
|
<span className="fl with16 color-grey-6 task-hide pl10">{item.username}</span>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
this.props.object_type && this.props.object_type === "normal" ?
|
|
|
|
|
{nav_my === "myself" ?
|
|
|
|
|
(this.props.object_type && this.props.object_type === "normal" ?
|
|
|
|
|
<a style={{textAlign: "center"}} key={item.id} className="color-blue font-14 pl5"
|
|
|
|
|
href={`/banks/normal/${item.id}/edit/personal?tab=0`}
|
|
|
|
|
>编辑</a>
|
|
|
|
|
: this.props.object_type && this.props.object_type === "group" ?
|
|
|
|
|
<a style={{textAlign: "center"}} key={item.id} className="color-blue font-14 pl5"
|
|
|
|
|
href={`/banks/group/${item.id}/edit/publicly?tab=0`}
|
|
|
|
|
>编辑</a>
|
|
|
|
|
: this.props.object_type && this.props.object_type === "exercise" ?
|
|
|
|
|
<a style={{textAlign: "center"}} key={item.id} className="color-blue font-14 pl5"
|
|
|
|
|
href={`/banks/exercise/${item.id}/edit/personal`}
|
|
|
|
|
>编辑</a>
|
|
|
|
|
: this.props.object_type && this.props.object_type === "poll" ?
|
|
|
|
|
href={`/banks/group/${item.id}/edit/publicly?tab=0`}
|
|
|
|
|
>编辑</a>
|
|
|
|
|
: this.props.object_type && this.props.object_type === "exercise" ?
|
|
|
|
|
<a style={{textAlign: "center"}} key={item.id} className="color-blue font-14 pl5"
|
|
|
|
|
href={`/banks/poll/${item.id}/edit/personal`}
|
|
|
|
|
>编辑</a>
|
|
|
|
|
: ""
|
|
|
|
|
href={`/banks/exercise/${item.id}/edit/personal`}
|
|
|
|
|
>编辑</a>
|
|
|
|
|
: this.props.object_type && this.props.object_type === "poll" ?
|
|
|
|
|
<a style={{textAlign: "center"}} key={item.id} className="color-blue font-14 pl5"
|
|
|
|
|
href={`/banks/poll/${item.id}/edit/personal`}
|
|
|
|
|
>编辑</a>
|
|
|
|
|
: "")
|
|
|
|
|
: ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|