(refs #76)Show the content of the previous commit for removed files.

This commit is contained in:
takezoe
2013-08-15 02:22:11 +09:00
parent dee13542cd
commit 52ab3c625e
9 changed files with 75 additions and 54 deletions

View File

@@ -3,7 +3,8 @@
branches: List[String],
tags: List[String],
repository: service.RepositoryService.RepositoryInfo,
diffs: Seq[util.JGitUtil.DiffInfo])(implicit context: app.Context)
diffs: Seq[util.JGitUtil.DiffInfo],
oldCommitId: Option[String])(implicit context: app.Context)
@import context._
@import view.helpers._
@import util.Implicits._
@@ -103,7 +104,7 @@
</li>
}
</ul>
@helper.html.diff(diffs, repository, Some(commit.id))
@helper.html.diff(diffs, repository, Some(commit.id), oldCommitId)
}
<script>
$(function(){