14 lines
337 B
HTML
14 lines
337 B
HTML
{{ define "nav" }}
|
|
<nav>
|
|
<ul>
|
|
{{ if .name }}
|
|
<li><a href="/{{ .name }}">summary</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 }}
|