show "edited" in edited comment

This commit is contained in:
KOUNOIKE Yuusuke
2018-05-24 00:29:30 +09:00
parent d95a6b8134
commit e1c7cd0965
2 changed files with 6 additions and 0 deletions

View File

@@ -13,6 +13,9 @@
@helpers.avatarLink(comment.commentedUserName, 20)
@helpers.user(comment.commentedUserName, styleClass="username strong")
<span class="muted">@gitbucket.core.helper.html.datetimeago(comment.registeredDate)</span>
@if(comment.updatedDate.getTime > comment.registeredDate.getTime){
- edited
}
<span class="pull-right">
@if(hasWritePermission || context.loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false)){
<a href="#" data-comment-id="@comment.commentId"><i class="octicon octicon-pencil"></i></a>&nbsp;

View File

@@ -20,6 +20,9 @@
<a href="#comment-@comment.commentId">
@gitbucket.core.helper.html.datetimeago(comment.registeredDate)
</a>
@if(comment.updatedDate.getTime > comment.registeredDate.getTime) {
- edited
}
</span>
@if(comment.action != "commit" && comment.action != "merge" && comment.action != "refer"
&& (isManageable || context.loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false))){