internal/web/templates/commit.html

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

14 lines · 897 bytes

 1{{define "title"}}{{.ShortSHA}} · {{.Repo.OwnerName}}/{{.Repo.Name}}{{end}}
 2{{define "content"}}
 3<div class="commithead">
 4  <h1>Commit <code>{{.ShortSHA}}</code></h1>
 5  <p class="meta"><code class="fullsha">{{.SHA}}</code></p>
 6  {{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}}
 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}}