internal/web/templates/commit.html

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

14 lines · 724 bytes

 1{{define "title"}}{{.ShortSHA}} · {{.Repo.OwnerName}}/{{.Repo.Name}}{{end}}
 2{{define "content"}}
 3{{template "repoheader" .}}
 4<div class="commithead">
 5  <h2>commit <code>{{.ShortSHA}}</code></h2>
 6  <p class="meta"><code class="fullsha">{{.SHA}}</code></p>
 7  <p>{{template "sigbadge" .Sig}}{{range .Checks}} <span class="badge check-{{.State}}">{{.Context}}: {{.State}}</span>{{end}}</p>
 8  <p class="meta"><span title="{{.AuthorEmail}}">{{.AuthorName}}</span> &lt;{{.AuthorEmail}}&gt; · {{.Date}}
 9  {{if .CommitterEmail}}<br>committer: &lt;{{.CommitterEmail}}&gt;{{end}}</p>
10</div>
11<pre class="message">{{.Message}}</pre>
12<pre class="diff">{{range .DiffLines}}<span class="{{.Class}}">{{.Text}}</span>
13{{end}}</pre>
14{{end}}