internal/web/templates/commit.html

d298215429fa4946ce82afebe7364ad178725e7b
gitbay/internal/web/templates/commit.html

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}}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form