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

Browse code @if(hasWritePermission) { Add tag }
@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.avatarLink(commit, 20) @helpers.user(commit.authorName, commit.authorEmailAddress, "username strong") authored @gitbucket.core.helper.html.datetimeago(commit.authorTime) @status.map { case (summary, statuses) => @gitbucket.core.helper.html.commitstatus(commit.id, summary, statuses) }
@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( issue = None, comments = comments.filter(_.asInstanceOf[CommitComment].fileName.isEmpty), isManageable = hasWritePermission, repository = repository, pullreq = None, renderScript = false)
@gitbucket.core.issues.html.commentlist( issue = None, comments = comments.map(_.asInstanceOf[CommitComment]).filter(_.fileName.isDefined).groupBy(_.fileName).map { case (fileName, comments) => CommitComments( fileName = fileName.get, commentedUserName = comments.head.commentedUserName, registeredDate = comments.head.registeredDate, comments = comments, diff = None ) }.toList, isManageable = hasWritePermission, repository = repository, pullreq = None, commitId = Some(commitId))
@gitbucket.core.repo.html.commentform(commitId = commitId, hasWritePermission = hasWritePermission, repository = repository) } }