all repos — legit @ d0f5d874c58abac60bd9145eb98c0305047c9d0f

web frontend for git, written in go

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