all repos — legit @ 99a092b8b01dd8edbc5a01401a1ae4178f88a018

web frontend for git, written in go

templates/refs.html (view raw)

 1{{ define "refs" }}
 2<html>
 3{{ template "head" . }}
 4
 5  <title>
 6    {{ .name }} &mdash; refs
 7  </title>
 8
 9  {{ template "repoheader" . }}
10  <body>
11    {{ template "nav" . }}
12    <main>
13      {{ $name := .name }}
14      <h3>branches</h3>
15      <div class="refs">
16      {{ range .branches }}
17        <div>
18        <strong>{{ .Name.Short }}</strong>
19        </div>
20        <div>
21        <a href="/{{ $name }}/tree/{{ .Name.Short }}/">browse</a>
22        <a href="/{{ $name }}/log/{{ .Name.Short }}">log</a>
23        </div>
24      {{ end }}
25      </div>
26      {{ if .tags }}
27      <h3>tags</h3>
28      <div class="refs">
29      {{ range .tags }}
30      <div>
31      <strong>{{ .Name }}</strong>
32      </div>
33      <div>
34      <a href="/{{ $name }}/tree/{{ .Name }}/">browse</a>
35      <a href="/{{ $name }}/log/{{ .Name }}">log</a>
36      {{ if .Message }}
37      <pre>{{ .Message }}</pre>
38      </div>
39      {{ end }}
40      {{ end }}
41      </div>
42      {{ end }}
43    </main>
44  </body>
45</html>
46{{ end }}