legit/templates/nav.html

14 lines
326 B
HTML
Raw Normal View History

2022-12-11 05:52:47 +00:00
{{ define "nav" }}
2024-02-20 00:24:38 +00:00
<nav>
<ul>
{{ if .repo }}
<li><a href="/{{ .repo }}">summary</a>
<li><a href="/{{ .repo }}/refs">refs</a>
2022-12-17 07:16:09 +00:00
{{ if .ref }}
2024-02-20 00:24:38 +00:00
<li><a href="/{{ .repo }}/tree/{{ .ref }}/">tree</a>
<li><a href="/{{ .repo }}/log/{{ .ref }}">log</a>
2022-12-17 07:16:09 +00:00
{{ end }}
2024-02-20 00:24:38 +00:00
{{ end }}
</ul>
</nav>
{{ end }}