all repos — legit @ 95dec0f0564c158d2884faa24cac650043e8dc37

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