all repos — legit @ d879c2dfb088cb7911e322694c101fb0bdf7c0c0

web frontend for git, written in go

templates/nav.html (view raw)

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