all repos — legit @ 5091695e75b2db30b8926d8aa17164c84031bc77

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>
    {{ 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 }}