@(branch: String, commit: app.CommitInfo, repository: app.RepositoryInfo, diffs: Seq[app.DiffInfo])(implicit context: app.Context) @import context._ @import view.helpers @import org.eclipse.jgit.diff.DiffEntry.ChangeType @main(helpers.cut(commit.message, 20)){ @header(branch, repository) @navtab(branch, repository, "commits")

@helpers.format(commit.message) @branch
@commit.committer @helpers.datetime(commit.time) commit @commit.id

@diffs.zipWithIndex.map { case (diff, i) =>

@if(diff.changeType == ChangeType.COPY || diff.changeType == ChangeType.RENAME){ @diff.oldPath -> @diff.newPath } @if(diff.changeType == ChangeType.ADD || diff.changeType == ChangeType.DELETE || diff.changeType == ChangeType.MODIFY){ @diff.newPath } View file @@ @commit.id.substring(0, 10)
@diff.newContent.getOrElse("") @diff.oldContent.getOrElse("")

} }