summaryrefslogtreecommitdiffstats
path: root/templates/nav.html
blob: 973eae22cdf7a33a78ab2eaeaa182da1cf2b7f8c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{ define "nav" }}
  <nav>
    <ul>
    <li><a href="/">all repos</a>
    {{ if .name }}
    <li><a href="/{{ .name }}">{{ .name }}</a>
    {{ end }}
    {{ if .ref }}
    <li><a href="/{{ .name }}/tree/{{ .ref }}/">tree</a>
    <li><a href="/{{ .name }}/log/{{ .ref }}">log</a>
    {{ end }}
    <li><a href="/{{ .name }}/refs">refs</a>
    </ul>
  </nav>
{{ end }}