all repos — legit @ 089ada4cac4dd900646c2039960214f549bed058

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