diff --git a/src/main/twirl/gitbucket/core/issues/commentlist.scala.html b/src/main/twirl/gitbucket/core/issues/commentlist.scala.html index 6fdecdd..cfb809f 100644 --- a/src/main/twirl/gitbucket/core/issues/commentlist.scala.html +++ b/src/main/twirl/gitbucket/core/issues/commentlist.scala.html @@ -3,7 +3,8 @@ isManageable: Boolean, repository: gitbucket.core.service.RepositoryService.RepositoryInfo, pullreq: Option[gitbucket.core.model.PullRequest] = None, - commitId: Option[String] = None)(implicit context: gitbucket.core.controller.Context) + commitId: Option[String] = None, + renderScript: Boolean = true)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @issueOrPullRequest()={ @if(issue.exists(_.isPullRequest))( "pull request" )else( "issue" ) } @showFormattedComment(comment: gitbucket.core.model.IssueComment)={ @@ -279,6 +280,7 @@ } } +@if(renderScript){ +} diff --git a/src/main/twirl/gitbucket/core/repo/commit.scala.html b/src/main/twirl/gitbucket/core/repo/commit.scala.html index 4b630fd..065a001 100644 --- a/src/main/twirl/gitbucket/core/repo/commit.scala.html +++ b/src/main/twirl/gitbucket/core/repo/commit.scala.html @@ -1,4 +1,3 @@ -@import gitbucket.core.model.CommitComment @(commitId: String, commit: gitbucket.core.util.JGitUtil.CommitInfo, branches: List[String], @@ -26,7 +25,7 @@
@if(branches.nonEmpty){ - + @branches.zipWithIndex.map { case (branch, i) => @branch } @@ -34,7 +33,7 @@ } @if(tags.nonEmpty){ - + @tags.zipWithIndex.map { case (tag, i) => @tag } @@ -90,15 +89,16 @@
@gitbucket.core.issues.html.commentlist( - None, - comments.filter(_.asInstanceOf[gitbucket.core.model.CommitComment].fileName.isEmpty), - hasWritePermission, - repository, - None) + issue = None, + comments = comments.filter(_.asInstanceOf[CommitComment].fileName.isEmpty), + isManageable = hasWritePermission, + repository = repository, + pullreq = None, + renderScript = false)
@gitbucket.core.issues.html.commentlist( - None, - comments.map(_.asInstanceOf[CommitComment]).filter(_.fileName.isDefined).groupBy(_.fileName).map { case (fileName, comments) => + issue = None, + comments = comments.map(_.asInstanceOf[CommitComment]).filter(_.fileName.isDefined).groupBy(_.fileName).map { case (fileName, comments) => CommitComments( fileName = fileName.get, commentedUserName = comments.head.commentedUserName, @@ -107,10 +107,10 @@ diff = None ) }.toList, - hasWritePermission, - repository, - None, - Some(commitId)) + isManageable = hasWritePermission, + repository = repository, + pullreq = None, + commitId = Some(commitId))
@gitbucket.core.repo.html.commentform(commitId = commitId, hasWritePermission = hasWritePermission, repository = repository)