|
|
|
@ -227,15 +227,30 @@ class TopicDetail extends Component {
|
|
|
|
|
// filesize = bytesToSize(item.filesize)
|
|
|
|
|
}
|
|
|
|
|
attachments.push(
|
|
|
|
|
<p className="clearfix" key={index} >
|
|
|
|
|
<a href={item.url} className="color-green clearfix notefileDownload">
|
|
|
|
|
<i className="iconfont icon-xiazai color-green ml5 fl"></i>
|
|
|
|
|
{fileName && <ConditionToolTip title={fileName} condition={fileName.length > 30 }>
|
|
|
|
|
<span className="fl task-hide upload_item" style={{ color: '#333'}}>{fileName}</span>
|
|
|
|
|
</ConditionToolTip>}
|
|
|
|
|
<span className="fl" style={{ color: '#999', marginLeft: '6px'}}>{filesize? ` ${filesize.replace(' ', '')}` : ''}</span>
|
|
|
|
|
// <p className="clearfix" key={index} >
|
|
|
|
|
// <a href={item.url} className="color-green clearfix notefileDownload">
|
|
|
|
|
// <i className="iconfont icon-fujian color-green ml5 fl"></i>
|
|
|
|
|
// {fileName && <ConditionToolTip title={fileName} condition={fileName.length > 30 }>
|
|
|
|
|
// <span className="fl task-hide upload_item" style={{ color: '#333'}}>{fileName}</span>
|
|
|
|
|
// </ConditionToolTip>}
|
|
|
|
|
// <span className="fl" style={{ color: '#999', marginLeft: '6px'}}>{filesize? ` ${filesize.replace(' ', '')}` : ''}</span>
|
|
|
|
|
// </a>
|
|
|
|
|
// </p>
|
|
|
|
|
|
|
|
|
|
<div className="color-grey" key={index}>
|
|
|
|
|
<a className="color-grey ml20">
|
|
|
|
|
<i className="font-14 color-green iconfont icon-fujian mr8" aria-hidden="true"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</p>
|
|
|
|
|
{fileName && <ConditionToolTip title={fileName} condition={fileName.length > 30 }>
|
|
|
|
|
<a href={item.url}
|
|
|
|
|
className="mr12 color9B9B" length="58">
|
|
|
|
|
{fileName}
|
|
|
|
|
</a>
|
|
|
|
|
</ConditionToolTip>}
|
|
|
|
|
|
|
|
|
|
<span className="color656565 mt2 color-grey-6 font-12 mr8">{item.filesize}</span>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
return attachments;
|
|
|
|
@ -542,7 +557,7 @@ class TopicDetail extends Component {
|
|
|
|
|
</span> }
|
|
|
|
|
{/* || current_user.user_id === author_info.user_id */}
|
|
|
|
|
{ current_user && (isAdmin || isCurrentUserTheAuthor) &&
|
|
|
|
|
<div className="edu-position-hidebox" style={{position: 'absolute', right: '18px',top:'4px'}}>
|
|
|
|
|
<div className="edu-position-hidebox" style={{position: 'absolute', right: '2px',top:'4px'}}>
|
|
|
|
|
<a href="javascript:void(0);"><i className="fa fa-bars font-16"></i></a>
|
|
|
|
|
<ul className="edu-position-hide undis">
|
|
|
|
|
|
|
|
|
@ -619,10 +634,10 @@ class TopicDetail extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="padding40 memoContent new_li">
|
|
|
|
|
<div className="padding30 memoContent new_li" style={{ paddingBottom: '10px'}}>
|
|
|
|
|
<MarkdownToHtml content={memo.content}></MarkdownToHtml>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="padding40 bor-bottom-greyE" >
|
|
|
|
|
<div className="padding40 bor-bottom-greyE" style={{paddingTop: '2px'}}>
|
|
|
|
|
<div className="mt10 mb20">
|
|
|
|
|
{/* ${memo.user_praise ? '' : ''} */}
|
|
|
|
|
<Tooltip title={`${memo.liked ? '取消点赞' : '点赞'}`}>
|
|
|
|
|