|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import React,{ Component } from "react";
|
|
|
|
|
import {Tooltip} from 'antd'
|
|
|
|
|
import moment from 'moment'
|
|
|
|
|
import { getUrl } from 'educoder'
|
|
|
|
|
class BoardsListItem extends Component{
|
|
|
|
|
constructor(props){
|
|
|
|
|
super(props);
|
|
|
|
@ -37,11 +38,11 @@ class BoardsListItem extends Component{
|
|
|
|
|
}
|
|
|
|
|
`}</style>
|
|
|
|
|
{ checkBox }
|
|
|
|
|
<a href="/users/innov" alt="用户" style={{"width":"50px","height":"50px","display":"block", margin: "0 10px"}}>
|
|
|
|
|
<a href={`/users/${discussMessage.author.login}`} alt="用户" style={{"width":"50px","height":"50px","display":"block", margin: "0 10px"}}>
|
|
|
|
|
{/* /images/avatars/User/1?1529221779 */}
|
|
|
|
|
<img
|
|
|
|
|
alt="1?1529221779" className="panel-list-img mr15" height="50"
|
|
|
|
|
src={`/images/${discussMessage.author.image_url}`} width="50"
|
|
|
|
|
src={`${getUrl()}/images/${discussMessage.author.image_url}`} width="50"
|
|
|
|
|
></img>
|
|
|
|
|
</a>
|
|
|
|
|
<div className="clearfix ds pr pt5 contentSection" onClick={() => onItemClick(discussMessage)}>
|
|
|
|
@ -62,7 +63,7 @@ class BoardsListItem extends Component{
|
|
|
|
|
<div className="cl"></div>
|
|
|
|
|
<p className="color-grey panel-lightgrey mt10 fl">
|
|
|
|
|
<span className="mr50">
|
|
|
|
|
<a href="/users/innov" className="panel-name-small hide fl mr15 mr30 color-grey3">{discussMessage.author.name}</a>
|
|
|
|
|
<a href={`/users/${discussMessage.author.login}`} className="panel-name-small hide fl mr15 mr30 color-grey3">{discussMessage.author.name}</a>
|
|
|
|
|
|
|
|
|
|
{ discussMessage.total_replies_count != 0 && <span className="mr15 color-grey9">{discussMessage.total_replies_count} 回复</span> }
|
|
|
|
|
{ discussMessage.total_praises_count != 0 && <span className="mr15 color-grey9">{discussMessage.total_praises_count} 点赞</span> }
|
|
|
|
|