all repos — legit @ d1a2847a266f344911bb791d083b72529cf90c63

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      {{ if .Message }}
33      <pre>{{ .Message }}</pre>
34      </div>
35      <div>
36      <a href="/{{ $name }}/tree/{{ .Name }}/">browse</a>
37      <a href="/{{ $name }}/log/{{ .Name }}">log</a>
38      </div>
39      {{ end }}
40      {{ end }}
41      </div>
42      {{ end }}
43    </main>
44  </body>
45</html>
46{{ end }}