legit/templates/nav.html
Anirudh Oppiliappan 01f27147ba
routes: index view
2022-12-12 21:33:09 +05:30

14 lines
322 B
HTML

{{ define "nav" }}
<nav>
<ul>
<li><a href="/">all repos</a>
{{ if .name }}
<li><a href="/{{ .name }}">{{ .name }}</a>
{{ end }}
{{ if .ref }}
<li><a href="/{{ .name }}/tree/{{ .ref }}/">tree</a>
<li><a href="/{{ .name }}/log/{{ .ref }}">log</a>
{{ end }}
</ul>
</nav>
{{ end }}