summaryrefslogblamecommitdiffstats
path: root/templates/nav.html
blob: d0d384de00f1842d9730a026148d29db7fb83306 (plain) (tree)
1
2
3
4
5
6
7


                  
                                 
                  
                                              
                                            




                                                          


         
{{ define "nav" }}
  <nav>
    <ul>
    <li><a href="/">all repos</a>
    {{ if .name }}
    <li><a href="/{{ .name }}">{{ .name }}</a>
    <li><a href="/{{ .name }}/refs">refs</a>
      {{ if .ref }}
      <li><a href="/{{ .name }}/tree/{{ .ref }}/">tree</a>
      <li><a href="/{{ .name }}/log/{{ .ref }}">log</a>
      {{ end }}
    {{ end }}
    </ul>
  </nav>
{{ end }}