templates/refs.html (raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
{{ define "refs" }} <html> {{ template "head" . }} <body> {{ template "repoheader" . }} {{ template "nav" . }} <main> {{ $name := .name }} <h3>branches</h3> <div class="refs branches"> {{ range .branches }} <div class="branch-entry"> <h4>{{ .Name.Short }}</h4> <ul> <li><a href="/{{ $name }}/tree/{{ .Name.Short }}/">browse</a></li> <li><a href="/{{ $name }}/log/{{ .Name.Short }}">log</a></li> </ul> </div> {{ end }} </div> {{ if .tags }} <h3>tags</h3> <div class="refs tags"> {{ range .tags }} <div class="tag-entry"> <h4>{{ .Name }}</h4> <time>{{ .Tagger.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</time> <ul> <li><a href="/{{ $name }}/tree/{{ .Name }}/">browse</a></li> <li><a href="/{{ $name }}/log/{{ .Name }}">log</a></li> </ul> {{ if .Message }} <pre>{{ .Message }}</pre> {{ end }} {{ if .PGPSignature }} <details><summary>PGP Signature</summary> <pre>{{ .PGPSignature }}</pre> </details> {{ end }} </div> {{ end }} </div> {{ end }} </main> {{ template "footer" .meta }} </body> </html> {{ end }} |