dev_forum
hjm 6 years ago
parent 07e5760e2b
commit 8a3519e7b1

@ -26,6 +26,8 @@ class BoardsListItem extends Component{
if (!discussMessage || !discussMessage.author) { if (!discussMessage || !discussMessage.author) {
return ''; return '';
} }
let canNotLink = !isAdminOrStudent && discussMessage.is_public == false
return( return(
<div className="panel-inner-fourm boardsList"> <div className="panel-inner-fourm boardsList">
<style>{` <style>{`
@ -44,8 +46,9 @@ class BoardsListItem extends Component{
</a> </a>
<div className="clearfix ds pr pt5 contentSection" onClick={() => onItemClick(discussMessage)}> <div className="clearfix ds pr pt5 contentSection" onClick={() => onItemClick(discussMessage)}>
<h6> <h6>
<a href="javascript:void(0)" className="panel-list-title hide fl mt5 color-dark font-bd" style={{ fontWeight: 'bold' }} <a href="javascript:void(0)" className="panel-list-title hide fl mt5 color-dark font-bd"
onClick={() => this.onTitleClick(discussMessage)} style={{ fontWeight: 'bold', cursor: (canNotLink ? 'default' : 'poninter') }}
onClick={canNotLink ? () => {} : () => this.onTitleClick(discussMessage)}
>{discussMessage.subject}</a> >{discussMessage.subject}</a>
{ !!discussMessage.sticky && <span className="btn-cir btn-cir-red fl mt5 ml5">置顶</span> } { !!discussMessage.sticky && <span className="btn-cir btn-cir-red fl mt5 ml5">置顶</span> }
{ {

Loading…
Cancel
Save