diff options
Diffstat (limited to 'templates/nav.html')
-rw-r--r-- | templates/nav.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/templates/nav.html b/templates/nav.html index 51c9a34..6f6b4dd 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -1,14 +1,14 @@ {{ define "nav" }} - <nav> - <ul> - {{ if .name }} - <li><a href="/{{ .name }}">summary</a> - <li><a href="/{{ .name }}/refs">refs</a> +<nav> + <ul> + {{ if .repo }} + <li><a href="/{{ .repo }}">summary</a> + <li><a href="/{{ .repo }}/refs">refs</a> {{ if .ref }} - <li><a href="/{{ .name }}/tree/{{ .ref }}/">tree</a> - <li><a href="/{{ .name }}/log/{{ .ref }}">log</a> + <li><a href="/{{ .repo }}/tree/{{ .ref }}/">tree</a> + <li><a href="/{{ .repo }}/log/{{ .ref }}">log</a> {{ end }} - {{ end }} - </ul> - </nav> -{{ end }} + {{ end }} + </ul> +</nav> +{{ end }}
\ No newline at end of file |