gunk-dev/the-valley

log.tmpl

source8efb16bd7315main's published tip history
1.3 KiB
1{{define "content"}}
2{{template "project-head" .Head}}
3<header class="knot-head">
4 <div class="meta"><span class="eyebrow">History</span><span class="mono">{{.Short}}</span>{{if .AtTip}}<span class="chip">main's published tip</span>{{end}}</div>
5 <h1>History of {{.Project}}</h1>
6</header>
7<div class="card">
8 <table class="listing">
9 <tbody>
10 {{- range .Commits}}
11 <tr><td class="name"><a href="{{.URL}}">{{.Short}}</a></td><td>{{.Subject}}{{with .Parents}}<p class="notice">{{.}}</p>{{end}}</td><td class="kind">{{.Author}}</td><td class="kind">{{.Date}}</td></tr>
12 {{- end}}
13 </tbody>
14 </table>
15 {{- if .Partial}}
16 <p class="notice">This page ends early: its commits are larger than a page reads.</p>
17 {{- end}}
18 {{- if .Crowded}}
19 <p class="notice">This page ends early, before a commit that would leave more lines of history than one page can link to.</p>
20 {{- end}}
21 {{- with .Others}}
22 <p class="notice">Older history continues along {{$.Lines}} lines at once, more than the Older link follows. Each link below follows one of the remaining lines.</p>
23 <p class="mono">{{range .}}<a href="{{.URL}}">{{.Text}}</a> {{end}}</p>
24 {{- end}}
25</div>
26<nav class="pager" aria-label="Pages of history">{{with .Newest}}<a href="{{.}}">Newest</a>{{end}}{{with .Older}}<a href="{{.}}">Older</a>{{end}}</nav>
27{{end}}