|
|
|
@ -253,22 +253,22 @@ class Fileslistitem extends Component{
|
|
|
|
|
{discussMessage.is_publish===false?<CoursesListType typelist={["未发布"]} typesylename={""}/>:""}
|
|
|
|
|
|
|
|
|
|
{this.props.isAdmin?
|
|
|
|
|
<span className={"fr mr10 mt2"} onClick={(event)=>this.eventStop(event)}>
|
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 mr20 fr">
|
|
|
|
|
<span className={"fr mt2"} onClick={(event)=>this.eventStop(event)}>
|
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 ml20 fr">
|
|
|
|
|
<a className="btn colorblue fontweight400"
|
|
|
|
|
onClick={()=>this.settingList()}>设置</a>
|
|
|
|
|
</WordsBtn>
|
|
|
|
|
</span>:""}
|
|
|
|
|
|
|
|
|
|
{this.props.isStudent===true&&this.props.current_user.login===discussMessage.author.login?
|
|
|
|
|
<span className={"fr mr10 mt2"} onClick={(event)=>this.eventStop(event)}>
|
|
|
|
|
<span className={"fr mt2"} onClick={(event)=>this.eventStop(event)}>
|
|
|
|
|
|
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 mr20 fr">
|
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 ml20 fr">
|
|
|
|
|
<a className="btn colorblue fontweight400"
|
|
|
|
|
onClick={()=>this.settingList()}>设置</a>
|
|
|
|
|
</WordsBtn>
|
|
|
|
|
|
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 mr20 fr">
|
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 ml20 fr">
|
|
|
|
|
<a className="btn colorblue fontweight400"
|
|
|
|
|
onClick={()=>this.onDelete(discussMessage.id)}>删除</a>
|
|
|
|
|
</WordsBtn>
|
|
|
|
@ -329,7 +329,7 @@ class Fileslistitem extends Component{
|
|
|
|
|
{ discussMessage.publish_time===null?"":discussMessage.is_publish===true?moment(discussMessage.publish_time).fromNow():moment(discussMessage.publish_time).format('YYYY-MM-DD HH:mm')}
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
{discussMessage&&discussMessage.category_name===null?"":this.props.child===false?<div className="color-grey9 task-hide fr mr60" title={discussMessage&&discussMessage.category_name}
|
|
|
|
|
{discussMessage&&discussMessage.category_name===null?"":this.props.child===false?<div className="color-grey9 task-hide fr mr30" title={discussMessage&&discussMessage.category_name}
|
|
|
|
|
style={{"max-width":"268px"}}>所属目录:{discussMessage&&discussMessage.category_name}
|
|
|
|
|
</div>:""}
|
|
|
|
|
</p>
|
|
|
|
|