@(commitId: String, commit: gitbucket.core.util.JGitUtil.CommitInfo, branches: List[String], tags: List[String], comments: List[gitbucket.core.model.Comment], repository: gitbucket.core.service.RepositoryService.RepositoryInfo, diffs: Seq[gitbucket.core.util.JGitUtil.DiffInfo], oldCommitId: Option[String], hasWritePermission: Boolean)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @import gitbucket.core.view.helpers.RichHtmlSeq @gitbucket.core.html.main(commit.shortMessage, Some(repository)){ @gitbucket.core.html.menu("files", repository){

Browse code @helpers.link(commit.summary, repository) @if(commit.description.isDefined){
    @helpers.link(commit.description.get, repository)
} @if(branches.nonEmpty){ @branches.zipWithIndex.map { case (branch, i) => @branch } } @if(tags.nonEmpty){ @tags.zipWithIndex.map { case (tag, i) => @tag } }
@if(commit.parents.size == 0){ 0 parent } @if(commit.parents.size == 1){ 1 parent @commit.parents(0).substring(0, 7) } commit @commit.id @if(commit.parents.size > 1){ @commit.parents.size parents @commit.parents.map { parent => @parent.substring(0, 7) }.mkHtml(" + ") } @helpers.avatar(commit, 20) @helpers.user(commit.authorName, commit.authorEmailAddress, "username strong") authored @gitbucket.core.helper.html.datetimeago(commit.authorTime) @if(commit.isDifferentFromAuthor) { @helpers.user(commit.committerName, commit.committerEmailAddress, "username strong") committed @gitbucket.core.helper.html.datetimeago(commit.commitTime) }

@gitbucket.core.helper.html.diff(diffs, repository, Some(commit.id), oldCommitId, true, None, hasWritePermission, true) Show line notes below
@gitbucket.core.issues.html.commentlist(None, comments, hasWritePermission, repository, None)
@gitbucket.core.repo.html.commentform(commitId = commitId, hasWritePermission = hasWritePermission, repository = repository) } }