aboutsummaryrefslogtreecommitdiff
path: root/templates/nav.html
blob: 51a1e9263bfeb12041ec56b0e1b58c34a5c33267 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{ define "nav" }}
<nav>
	<ul>
	{{ if .name }}
		<li><a href="/{{ .name }}">summary</a>
		<li><a href="/{{ .name }}/refs">refs</a>
		{{ if .ref }}
			<li><a href="/{{ .name }}/tree/{{ .ref }}/">tree</a>
			<li><a href="/{{ .name }}/log/{{ .ref }}">log</a>
		{{ end }}
	{{ end }}
	</ul>
</nav>
{{ end }}