all repos — legit @ 60298a69538ccdda417613a09e5acbd917bfc53a

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