legit/templates/nav.html

15 lines
337 B
HTML
Raw Permalink Normal View History

2022-12-11 05:52:47 +00:00
{{ define "nav" }}
<nav>
<ul>
2022-12-12 16:03:09 +00:00
{{ if .name }}
2022-12-17 16:03:04 +00:00
<li><a href="/{{ .name }}">summary</a>
2022-12-13 06:20:39 +00:00
<li><a href="/{{ .name }}/refs">refs</a>
2022-12-17 07:16:09 +00:00
{{ if .ref }}
<li><a href="/{{ .name }}/tree/{{ .ref }}/">tree</a>
<li><a href="/{{ .name }}/log/{{ .ref }}">log</a>
{{ end }}
{{ end }}
2022-12-11 05:52:47 +00:00
</ul>
</nav>
{{ end }}