mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 21:45:50 +01:00
Move HTML templates for the repository viewer to repo.html package.
This commit is contained in:
25
src/main/twirl/repo/commit.scala.html
Normal file
25
src/main/twirl/repo/commit.scala.html
Normal 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))
|
||||
}
|
||||
Reference in New Issue
Block a user