@(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.util.Implicits._ @import context._ @import gitbucket.core.view.helpers._ @html.main(commit.shortMessage, Some(repository)){ @html.menu("code", repository){

Browse code
@link(commit.summary, repository)
@if(commit.description.isDefined){

    @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(" + ")
}
@avatar(commit, 20) @user(commit.authorName, commit.authorEmailAddress, "username strong") authored @helper.html.datetimeago(commit.authorTime)
@if(commit.isDifferentFromAuthor) {
@user(commit.committerName, commit.committerEmailAddress, "username strong") committed @helper.html.datetimeago(commit.commitTime)
}

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