15 lines
367 B
HTML
15 lines
367 B
HTML
{{ 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 }}
|