all repos — legit @ ee800624f58b26204c1f846a524ccef5a1b4e386

web frontend for git

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        <a href="/{{ $name }}/tree/{{ .Name.Short }}/">browse</a>
20        <a href="/{{ $name }}/log/{{ .Name.Short }}">log</a>
21        </div>
22      {{ end }}
23      </div>
24      {{ if .tags }}
25      <h3>tags</h3>
26      <div class="refs">
27      {{ range .tags }}
28      <div>
29      <strong>{{ .Name }}</strong>
30      <a href="/{{ $name }}/tree/{{ .Name }}/">browse</a>
31      <a href="/{{ $name }}/log/{{ .Name }}">log</a>
32      {{ if .Message }}
33      <pre>{{ .Message }}</pre>
34      </div>
35      {{ end }}
36      {{ end }}
37      </div>
38      {{ end }}
39    </main>
40  </body>
41</html>
42{{ end }}