all repos — elgit @ 899246690b667acde6525d4eb4a67e652036da8a

fork of legit: web frontend for git, written in go

templates/nav.html (view raw)

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