@(commitId: String, commit: util.JGitUtil.CommitInfo, branches: List[String], tags: List[String], repository: service.RepositoryService.RepositoryInfo, diffs: Seq[util.JGitUtil.DiffInfo], oldCommitId: Option[String])(implicit context: app.Context) @import context._ @import view.helpers._ @import util.Implicits._ @html.main(commit.shortMessage, Some(repository)){ @html.header("code", repository) @tab(commitId, repository, "commits")

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 } }

@avatar(commit, 20) @user(commit.committer, commit.mailAddress, "username strong") @datetime(commit.time) @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(" + ") }

@helper.html.diff(diffs, repository, Some(commit.id), oldCommitId, true) }