mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-01 19:15:59 +01:00
show "edited" in edited comment
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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))){
|
||||
|
||||
Reference in New Issue
Block a user