2022-12-11 05:52:47 +00:00
|
|
|
{{ define "nav" }}
|
|
|
|
<nav>
|
|
|
|
<ul>
|
2022-12-12 15:23:44 +00:00
|
|
|
<li><a href="/">all repos</a>
|
2022-12-12 16:03:09 +00:00
|
|
|
{{ if .name }}
|
2022-12-12 15:23:44 +00:00
|
|
|
<li><a href="/{{ .name }}">{{ .name }}</a>
|
2022-12-12 16:03:09 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ if .ref }}
|
2022-12-12 15:23:44 +00:00
|
|
|
<li><a href="/{{ .name }}/tree/{{ .ref }}/">tree</a>
|
|
|
|
<li><a href="/{{ .name }}/log/{{ .ref }}">log</a>
|
2022-12-12 16:03:09 +00:00
|
|
|
{{ end }}
|
2022-12-11 05:52:47 +00:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{{ end }}
|