diff --git a/src/main/twirl/gitbucket/core/helper/commitcomment.scala.html b/src/main/twirl/gitbucket/core/helper/commitcomment.scala.html index cd242f2..73ff789 100644 --- a/src/main/twirl/gitbucket/core/helper/commitcomment.scala.html +++ b/src/main/twirl/gitbucket/core/helper/commitcomment.scala.html @@ -3,34 +3,47 @@ repository: gitbucket.core.service.RepositoryService.RepositoryInfo, latestCommitId: Option[String] = None)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers -
-
+
+
+ @*
@helpers.avatar(comment.commentedUserName, 20) @helpers.user(comment.commentedUserName, styleClass="username strong") - - commented on - @if(comment.issueId.isDefined){ - #@comment.issueId - } - @comment.fileName.map { fileName => - @fileName in - } - @comment.commitId.substring(0, 7) - @gitbucket.core.helper.html.datetimeago(comment.registeredDate) - + + commented on + @if(comment.issueId.isDefined){ + #@comment.issueId + } + @comment.fileName.map { fileName => + @fileName in + } + @comment.commitId.substring(0, 7) + @gitbucket.core.helper.html.datetimeago(comment.registeredDate) + + @if(hasWritePermission || context.loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false)){ +   + + } + +
+ *@ +
+
+ @helpers.avatar(comment.commentedUserName, 20) + @helpers.user(comment.commentedUserName, styleClass="username strong") + @gitbucket.core.helper.html.datetimeago(comment.registeredDate) + @if(hasWritePermission || context.loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false)){   } - -
-
+ +
+
@helpers.markdown( markdown = comment.content, repository = repository, @@ -40,6 +53,7 @@ enableTaskList = false, hasWritePermission = hasWritePermission ) +
diff --git a/src/main/twirl/gitbucket/core/helper/commitcomments.scala.html b/src/main/twirl/gitbucket/core/helper/commitcomments.scala.html index 6230803..e7f4c8c 100644 --- a/src/main/twirl/gitbucket/core/helper/commitcomments.scala.html +++ b/src/main/twirl/gitbucket/core/helper/commitcomments.scala.html @@ -2,66 +2,11 @@ hasWritePermission: Boolean, repository: gitbucket.core.service.RepositoryService.RepositoryInfo, latestCommitId: Option[String] = None)(implicit context: gitbucket.core.controller.Context) -@import gitbucket.core.view.helpers -
+
@comments.fileName
@comments.comments.map { comment => -
-
- @* -
- @helpers.avatar(comment.commentedUserName, 20) - @helpers.user(comment.commentedUserName, styleClass="username strong") - - commented on - @if(comment.issueId.isDefined){ - #@comment.issueId - } - @comment.fileName.map { fileName => - @fileName in - } - @comment.commitId.substring(0, 7) - @gitbucket.core.helper.html.datetimeago(comment.registeredDate) - - - @if(hasWritePermission || context.loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false)){ -   - - } - -
- *@ -
-
- @helpers.avatar(comment.commentedUserName, 20) - @helpers.user(comment.commentedUserName, styleClass="username strong") - @gitbucket.core.helper.html.datetimeago(comment.registeredDate) - - @if(hasWritePermission || context.loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false)){ -   - - } - -
-
- @helpers.markdown( - markdown = comment.content, - repository = repository, - enableWikiLink = false, - enableRefsLink = true, - enableLineBreaks = true, - enableTaskList = false, - hasWritePermission = hasWritePermission - ) -
-
-
-
+ @gitbucket.core.helper.html.commitcomment(comment, hasWritePermission, repository, latestCommitId) }
diff --git a/src/main/webapp/assets/common/css/gitbucket.css b/src/main/webapp/assets/common/css/gitbucket.css index af71d81..8781d54 100644 --- a/src/main/webapp/assets/common/css/gitbucket.css +++ b/src/main/webapp/assets/common/css/gitbucket.css @@ -772,21 +772,25 @@ margin-left: 50px; } -div.issue-comment-box, div.commit-comment-box { - margin-bottom: 15px; -} - -div.issue-comment-box > div.panel-body, -div.commit-comment-box > div.panel-body { - padding: 8px; -} - - -div.issue-comment-box textarea { +div.commit-comment-box textarea, +div.issue-comment-box textarea{ height: 100px; max-height: 300px; } +div.commit-comment-box.panel-body { + padding-top: 8px; + padding-bottom: 0px; +} + +div.commit-comment-box div.tabbable { + margin-top: 5px; +} + +div.reply-comment-box { + margin-bottom: 5px; +} + div.issue-comment-action { padding-bottom: 10px; padding-top: 0px;