diff --git a/src/main/twirl/gitbucket/core/issues/commentlist.scala.html b/src/main/twirl/gitbucket/core/issues/commentlist.scala.html index 43621f0..9924932 100644 --- a/src/main/twirl/gitbucket/core/issues/commentlist.scala.html +++ b/src/main/twirl/gitbucket/core/issues/commentlist.scala.html @@ -12,32 +12,32 @@ @helpers.avatar(comment.commentedUserName, 20) @helpers.user(comment.commentedUserName, styleClass="username strong") - @if(comment.action == "comment"){ - commented - } else { - referenced the @issueOrPullRequest() - } - - @gitbucket.core.helper.html.datetimeago(comment.registeredDate) - - + @if(comment.action == "comment"){ + commented + } else { + referenced the @issueOrPullRequest() + } + + @gitbucket.core.helper.html.datetimeago(comment.registeredDate) + + @if(comment.action != "commit" && comment.action != "merge" && comment.action != "refer" && (isManageable || context.loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false))){ - -   - - + +   + + }
@helpers.markdown( - markdown = comment.content, - repository = repository, - enableWikiLink = false, - enableRefsLink = true, - enableLineBreaks = true, - enableTaskList = true, - hasWritePermission = isManageable + markdown = comment.content, + repository = repository, + enableWikiLink = false, + enableRefsLink = true, + enableLineBreaks = true, + enableTaskList = true, + hasWritePermission = isManageable )