all repos — legit @ eda8b58d9f2e85f1bae92ce3b70f279b89031046

fork of git.icyphox.sh/legit

templates/nav.html

1 2 3 4 5 6 7 8 9 10 11 12 13 14
{{ 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 }}