all repos — legit @ 8a5486431aa93cd4641c720b07af311e513523fc

web frontend for git, written in go

templates/refs.html (view raw)

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