mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-03 03:55:58 +01:00
show "edited" in edited comment
This commit is contained in:
@@ -13,6 +13,9 @@
|
|||||||
@helpers.avatarLink(comment.commentedUserName, 20)
|
@helpers.avatarLink(comment.commentedUserName, 20)
|
||||||
@helpers.user(comment.commentedUserName, styleClass="username strong")
|
@helpers.user(comment.commentedUserName, styleClass="username strong")
|
||||||
<span class="muted">@gitbucket.core.helper.html.datetimeago(comment.registeredDate)</span>
|
<span class="muted">@gitbucket.core.helper.html.datetimeago(comment.registeredDate)</span>
|
||||||
|
@if(comment.updatedDate.getTime > comment.registeredDate.getTime){
|
||||||
|
- edited
|
||||||
|
}
|
||||||
<span class="pull-right">
|
<span class="pull-right">
|
||||||
@if(hasWritePermission || context.loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false)){
|
@if(hasWritePermission || context.loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false)){
|
||||||
<a href="#" data-comment-id="@comment.commentId"><i class="octicon octicon-pencil"></i></a>
|
<a href="#" data-comment-id="@comment.commentId"><i class="octicon octicon-pencil"></i></a>
|
||||||
|
|||||||
@@ -20,6 +20,9 @@
|
|||||||
<a href="#comment-@comment.commentId">
|
<a href="#comment-@comment.commentId">
|
||||||
@gitbucket.core.helper.html.datetimeago(comment.registeredDate)
|
@gitbucket.core.helper.html.datetimeago(comment.registeredDate)
|
||||||
</a>
|
</a>
|
||||||
|
@if(comment.updatedDate.getTime > comment.registeredDate.getTime) {
|
||||||
|
- edited
|
||||||
|
}
|
||||||
</span>
|
</span>
|
||||||
@if(comment.action != "commit" && comment.action != "merge" && comment.action != "refer"
|
@if(comment.action != "commit" && comment.action != "merge" && comment.action != "refer"
|
||||||
&& (isManageable || context.loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false))){
|
&& (isManageable || context.loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false))){
|
||||||
|
|||||||
Reference in New Issue
Block a user