(refs #437)Show author instead of committer

* Explicit classify committer and author
* Use author to render avatar image html
* Support commit view
This commit is contained in:
Tomofumi Tanaka
2014-07-28 23:07:26 +09:00
parent 723de9e81e
commit 2bb1f6168a
13 changed files with 60 additions and 30 deletions

View File

@@ -443,7 +443,7 @@ trait PullRequestsControllerBase extends ControllerBase {
val commits = newGit.log.addRange(oldId, newId).call.iterator.asScala.map { revCommit =>
new CommitInfo(revCommit)
}.toList.splitWith { (commit1, commit2) =>
view.helpers.date(commit1.time) == view.helpers.date(commit2.time)
view.helpers.date(commit1.commitTime) == view.helpers.date(commit2.commitTime)
}
val diffs = JGitUtil.getDiffs(newGit, oldId.getName, newId.getName, true)