diff --git a/src/main/twirl/gitbucket/core/helper/commitcomment.scala.html b/src/main/twirl/gitbucket/core/helper/commitcomment.scala.html index 15a57a6..614d7fa 100644 --- a/src/main/twirl/gitbucket/core/helper/commitcomment.scala.html +++ b/src/main/twirl/gitbucket/core/helper/commitcomment.scala.html @@ -3,7 +3,7 @@ repository: gitbucket.core.service.RepositoryService.RepositoryInfo, latestCommitId: Option[String] = None)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers -
diff --git a/src/main/twirl/gitbucket/core/helper/commitcomments.scala.html b/src/main/twirl/gitbucket/core/helper/commitcomments.scala.html index 622a1c1..4800a03 100644 --- a/src/main/twirl/gitbucket/core/helper/commitcomments.scala.html +++ b/src/main/twirl/gitbucket/core/helper/commitcomments.scala.html @@ -7,10 +7,10 @@
@comments.fileName @if(!latestCommitId.contains(comments.comments.head.commitId)) { - + }
-
+
@comments.diff.map(helpers.diff)
@comments.comments.map { comment => diff --git a/src/main/twirl/gitbucket/core/issues/commentform.scala.html b/src/main/twirl/gitbucket/core/issues/commentform.scala.html index 441fa4b..8d74df0 100644 --- a/src/main/twirl/gitbucket/core/issues/commentform.scala.html +++ b/src/main/twirl/gitbucket/core/issues/commentform.scala.html @@ -22,23 +22,23 @@ elastic = true, tabIndex = 1 ) -
- - @if((reopenable || !issue.closed) && (isManageable || issue.openedUserName == context.loginAccount.get.userName)){ - - - } else { - - } +
+ + @if((reopenable || !issue.closed) && (isManageable || issue.openedUserName == context.loginAccount.get.userName)){ + + + } else { + + }
diff --git a/src/main/twirl/gitbucket/core/issues/commentlist.scala.html b/src/main/twirl/gitbucket/core/issues/commentlist.scala.html index 0fa4353..6eb8ad9 100644 --- a/src/main/twirl/gitbucket/core/issues/commentlist.scala.html +++ b/src/main/twirl/gitbucket/core/issues/commentlist.scala.html @@ -236,16 +236,16 @@ @gitbucket.core.helper.html.commitcomments(comments, isManageable, repository, pullreq.map(_.commitIdTo)) } case comment: gitbucket.core.model.CommitComment => { -
+
@helpers.avatar(comment.commentedUserName, 20) @helpers.user(comment.commentedUserName, styleClass="username strong") - - commented - @gitbucket.core.helper.html.datetimeago(comment.registeredDate) - on - @comment.commitId.substring(0, 7) - + + commented + @gitbucket.core.helper.html.datetimeago(comment.registeredDate) + on + @comment.commitId.substring(0, 7) + @if((isManageable || context.loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false))){   @@ -253,16 +253,16 @@ }
-
- @helpers.markdown( - markdown = comment.content, - repository = repository, - enableWikiLink = false, - enableRefsLink = true, - enableLineBreaks = true, - enableTaskList = true, - hasWritePermission = isManageable - ) +
+ @helpers.markdown( + markdown = comment.content, + repository = repository, + enableWikiLink = false, + enableRefsLink = true, + enableLineBreaks = true, + enableTaskList = true, + hasWritePermission = isManageable + )
} @@ -334,6 +334,8 @@ if(panel.has('.commit-comment-box').length == 0){ panel.remove(); } + } else { + comment.remove(); } } });