@(commits: Seq[Seq[util.JGitUtil.CommitInfo]], comments: Option[List[model.Comment]] = None, repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context) @import context._ @import view.helpers._

@commits.map { day =>
@date(day.head.commitTime)
@day.map { commit =>
@avatar(commit, 20) @user(commit.authorName, commit.authorEmailAddress, "username") | @commit.shortMessage | @if(comments.isDefined){ @comments.get.flatMap @{ case comment: model.CommitComment => Some(comment) case other => None }.count(t => t.commitId == commit.id && !t.pullRequest) } | @commit.id.substring(0, 7)
} }