@(commits: Seq[Seq[gitbucket.core.util.JGitUtil.CommitInfo]],
comments: Option[List[gitbucket.core.model.Comment]] = None,
repository: gitbucket.core.service.RepositoryService.RepositoryInfo)(implicit context: gitbucket.core.controller.Context)
@import context._
@import gitbucket.core.view.helpers._
@import gitbucket.core.model._
@commits.map { day =>
Commits on @date(day.head.commitTime)
@day.map { commit =>
|
@avatar(commit, 20)
@user(commit.authorName, commit.authorEmailAddress, "username strong")
|
@commit.shortMessage |
@*
@if(comments.isDefined){
@comments.get.flatMap @{
case comment: CommitComment => Some(comment)
case other => None
}.count(t => t.commitId == commit.id && !t.pullRequest)
}
*@
@commit.id.substring(0, 7)
|
}
}
@*
@commits.map { day =>
@day.map { commit =>
|
@avatar(commit, 20)
@user(commit.authorName, commit.authorEmailAddress, "username")
|
@commit.shortMessage |
@if(comments.isDefined){
@comments.get.flatMap @{
case comment: CommitComment => Some(comment)
case other => None
}.count(t => t.commitId == commit.id && !t.pullRequest)
}
|
@commit.id.substring(0, 7)
|
}
}
*@