add comment links in the last comments list

This commit is contained in:
igoradamenko
2018-03-18 20:13:24 +02:00
parent 8a33f335a5
commit a3ad78fa75
2 changed files with 18 additions and 1 deletions
@@ -1,4 +1,11 @@
.comment__username {
color: #777;
font-weight: 700;
text-decoration: none;
&:link {
&:hover {
text-decoration: underline;
}
}
}
+11 -1
View File
@@ -201,7 +201,17 @@ export default class Comment extends Component {
<div className="comment__content">
<div className="comment__info">
<span className="comment__username">{o.user.name}</span>
{
mods.view !== 'preview' && (
<span className="comment__username">{o.user.name}</span>
)
}
{
mods.view === 'preview' && (
<a href={`${o.locator.url}#remark__comment-${o.id}`} className="comment__username">{o.user.name}</a>
)
}
{
!isGuest && (