@(branch: String, commit: util.JGitUtil.CommitInfo, repository: service.RepositoryService.RepositoryInfo, diffs: Seq[util.JGitUtil.DiffInfo])(implicit context: app.Context) @import context._ @import view.helpers @import org.eclipse.jgit.diff.DiffEntry.ChangeType @html.main(commit.shortMessage){ @html.header("code", repository) @navtab(branch, repository, "commits")

Browse code @commit.shortMessage @if(commit.description.isDefined){
    @commit.description.get
} @branch
@commit.committer @helpers.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.zipWithIndex.map { case (parent, i) => @if(i != 0){ + } @parent.substring(0, 7) } }

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