internal/web/templates/commit.html

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

14 lines · 1070 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">{{template "authorname" dict "Name" .AuthorName "User" .AuthorUser "Email" .AuthorEmail}} &lt;{{.AuthorEmail}}&gt; · {{when .Date}}
 9  {{if .CommitterEmail}}<br>committer: &lt;{{.CommitterEmail}}&gt;{{end}}</p>
10</div>
11<pre class="message">{{.Message}}</pre>
12{{if .DiffTruncated}}<p class="error" role="alert">This patch is larger than 4 MiB and is cut off below. Clone the repository to see all of it.</p>{{end}}
13{{template "difffiles" dict "Files" .DiffFiles "Base" "" "Viewer" ""}}
14{{end}}