internal/web/templates/commit.html

a0dd5878fbda93a49fe7d4503e2ac80fc6f6c8f3
gitbay/internal/web/templates/commit.html history · blame · raw

11 lines · 476 bytes

 1{{define "title"}}{{.ShortSHA}} · {{.Repo.OwnerName}}/{{.Repo.Name}}{{end}}
 2{{define "content"}}
 3{{template "repoheader" .}}
 4<h2><code>{{.SHA}}</code></h2>
 5<p>{{template "sigbadge" .Sig}}</p>
 6<p>author: {{.AuthorName}} &lt;{{.AuthorEmail}}&gt; · {{.Date}}
 7{{if .CommitterEmail}}<br>committer: &lt;{{.CommitterEmail}}&gt;{{end}}</p>
 8<pre class="message">{{.Message}}</pre>
 9<pre class="diff">{{range .DiffLines}}<span class="{{.Class}}">{{.Text}}</span>
10{{end}}</pre>
11{{end}}