@(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 => @day.map { commit => } }
@date(day.head.commitTime)
@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(_.commitId == commit.id) } @commit.id.substring(0, 7)