blob: e1668d20004b881e6769c466685f62ff334b7f70 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{{ define "refs" }}
<html>
{{ template "head" . }}
<header>
<h1>{{ .meta.Title }}</h1>
<h2>{{ .meta.Description }}</h2>
</header>
<body>
{{ template "nav" . }}
<main>
<h3>branches</h3>
{{ $name := .name }}
{{ range .branches }}
<p>
<strong>{{ .Name.Short }}</strong>
<a href="/{{ $name }}/tree/{{ .Name.Short }}/">browse</a>
<a href="/{{ $name }}/log/{{ .Name.Short }}">log</a>
</p>
{{ end }}
{{ if .tags }}
{{ range .tags }}
<p>{{ .Name }}</p>
{{ if .Message }}
<p>{{ .Message }}</p>
{{ end }}
{{ end }}
{{ end }}
</main>
</body>
</html>
{{ end }}
|