@(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._
@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(t => t.commitId == commit.id && !t.pullRequest) } | @commit.id.substring(0, 7) |