Move HTML templates for the repository viewer to repo.html package.

This commit is contained in:
takezoe
2013-05-04 02:22:23 +09:00
parent e1c339bb67
commit fec9f2c04c
6 changed files with 14 additions and 14 deletions

View File

@@ -0,0 +1,25 @@
@(branch: String, commit: app.CommitInfo, repository: app.RepositoryInfo, diffs: Seq[app.DiffInfo])(implicit context: app.Context)
@import context._
@import view.helpers
@import org.eclipse.jgit.diff.DiffEntry.ChangeType
@html.main(helpers.cut(commit.message, 20)){
@html.header("code", repository)
@navtab(branch, repository, "commits")
<table class="table table-bordered">
<tr>
<th>
<div>@helpers.format(commit.message)</div>
<div class="small" style="font-weight: normal;"><span class="description">@branch</span></div>
</th>
</tr>
<tr>
<td>
<a href="@path/@commit.committer">@commit.committer</a> <span class="description">@helpers.datetime(commit.time)</span>
<div class="pull-right align-right">
<span class="description">commit</span> @commit.id
</div>
</td>
</tr>
</table>
@html.diff(diffs, repository, Some(commit.id))
}