all repos — legit @ 9d1d6aaeb8295e489274446a9683b9680a99044c

web frontend for git

templates/nav.html (view raw)

 1{{ define "nav" }}
 2  <nav>
 3    <ul>
 4    {{ if .name }}
 5    <li><a href="/{{ .name }}">summary</a>
 6    <li><a href="/{{ .name }}/refs">refs</a>
 7      {{ if .ref }}
 8      <li><a href="/{{ .name }}/tree/{{ .ref }}/">tree</a>
 9      <li><a href="/{{ .name }}/log/{{ .ref }}">log</a>
10      {{ end }}
11    {{ end }}
12    </ul>
13  </nav>
14{{ end }}