|
|
|
@ -209,6 +209,9 @@ class Fileslistitem extends Component{
|
|
|
|
|
text-overflow:ellipsis;
|
|
|
|
|
white-space:nowrap
|
|
|
|
|
}
|
|
|
|
|
.mt2{
|
|
|
|
|
margin-top:2px;
|
|
|
|
|
}
|
|
|
|
|
`}</style>
|
|
|
|
|
<div className="clearfix ds pr contentSection" style={{cursor : this.props.isAdmin ? "pointer" : "default"}} onClick={() => window.$(`.sourceitem${index} input`).click() }>
|
|
|
|
|
<h6 onClick={(event)=>this.eventStop(event)}>
|
|
|
|
@ -248,6 +251,29 @@ class Fileslistitem extends Component{
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
{discussMessage.is_publish===false?<CoursesListType typelist={["未发布"]} typesylename={""}/>:""}
|
|
|
|
|
|
|
|
|
|
{this.props.isAdmin?
|
|
|
|
|
<span className={"fr mrf2 mr10 mt2"} onClick={(event)=>this.eventStop(event)}>
|
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 mr20 fr">
|
|
|
|
|
<a className="btn colorblue"
|
|
|
|
|
onClick={()=>this.settingList()}>设置</a>
|
|
|
|
|
</WordsBtn>
|
|
|
|
|
</span>:""}
|
|
|
|
|
|
|
|
|
|
{this.props.isStudent===true&&this.props.current_user.login===discussMessage.author.login?
|
|
|
|
|
<span className={"fr mrf2 mr10 mt2"} onClick={(event)=>this.eventStop(event)}>
|
|
|
|
|
|
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 mr20 fr">
|
|
|
|
|
<a className="btn colorblue"
|
|
|
|
|
onClick={()=>this.settingList()}>设置</a>
|
|
|
|
|
</WordsBtn>
|
|
|
|
|
|
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 mr20 fr">
|
|
|
|
|
<a className="btn colorblue"
|
|
|
|
|
onClick={()=>this.onDelete(discussMessage.id)}>删除</a>
|
|
|
|
|
</WordsBtn>
|
|
|
|
|
|
|
|
|
|
</span>:""}
|
|
|
|
|
</h6>
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
@ -303,29 +329,10 @@ 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>
|
|
|
|
|
{this.props.isAdmin?
|
|
|
|
|
<span className={"fr mrf2 mr10"} onClick={(event)=>this.eventStop(event)}>
|
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 mr20 fr">
|
|
|
|
|
<a className="btn colorblue"
|
|
|
|
|
onClick={()=>this.settingList()}>设置</a>
|
|
|
|
|
</WordsBtn>
|
|
|
|
|
</span>:""}
|
|
|
|
|
|
|
|
|
|
{this.props.isStudent===true&&this.props.current_user.login===discussMessage.author.login?
|
|
|
|
|
<span className={"fr mrf2 mr10"} onClick={(event)=>this.eventStop(event)}>
|
|
|
|
|
|
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 mr20 fr">
|
|
|
|
|
<a className="btn colorblue"
|
|
|
|
|
onClick={()=>this.settingList()}>设置</a>
|
|
|
|
|
</WordsBtn>
|
|
|
|
|
|
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 mr20 fr">
|
|
|
|
|
<a className="btn colorblue"
|
|
|
|
|
onClick={()=>this.onDelete(discussMessage.id)}>删除</a>
|
|
|
|
|
</WordsBtn>
|
|
|
|
|
|
|
|
|
|
</span>:""}
|
|
|
|
|
</p>
|
|
|
|
|
{discussMessage&&discussMessage.category_name===null?"":this.props.child===false?<div className=" color-grey9 task-hide fr" title={discussMessage&&discussMessage.category_name}
|
|
|
|
|
style={{"max-width":"268px"}}>所属目录:{discussMessage&&discussMessage.category_name}
|
|
|
|
|
</div>:""}
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|