internal/web/templates/commit.html

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

15 lines · 925 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  {{if .Parents}}<p class="meta">parent{{if gt (len .Parents) 1}}s{{end}}:{{range .Parents}} <code><a href="/{{$.Repo.OwnerName}}/{{$.Repo.Name}}/commit/{{.}}">{{short .}}</a></code>{{end}}</p>{{end}}
 8  <p>{{template "sigbadge" .Sig}}{{range .Checks}} <span class="badge check-{{.State}}">{{.Context}}: {{.State}}</span>{{end}}</p>
 9  <p class="meta"><span title="{{.AuthorEmail}}">{{.AuthorName}}</span> &lt;{{.AuthorEmail}}&gt; · {{.Date}}
10  {{if .CommitterEmail}}<br>committer: &lt;{{.CommitterEmail}}&gt;{{end}}</p>
11</div>
12<pre class="message">{{.Message}}</pre>
13<pre class="diff">{{range .DiffLines}}<span class="{{.Class}}">{{.Text}}</span>
14{{end}}</pre>
15{{end}}