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 </div>
16 <div>
17 <a href="/{{ $name }}/tree/{{ .Name.Short }}/">browse</a>
18 <a href="/{{ $name }}/log/{{ .Name.Short }}">log</a>
19 </div>
20 {{ end }}
21 </div>
22 {{ if .tags }}
23 <h3>tags</h3>
24 <div class="refs">
25 {{ range .tags }}
26 <div>
27 <strong>{{ .Name }}</strong>
28 </div>
29 <div>
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 }}