all repos — legit @ a87f88a57c68627a1f63f1551fcef2c1f1ec7036

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