diff options
author | cel 🌸 <cel@blos.sm> | 2024-02-20 00:24:38 +0000 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2024-02-20 00:24:38 +0000 |
commit | f4ff8fe6eb20ab5b557d7beac095959890e126e8 (patch) | |
tree | 41e3c708a0c5c3cb4a318ebcd7739e3f2dc74552 /templates/nav.html | |
parent | ac0983a89692534daa3d36dba528461b5bb32dbc (diff) | |
download | legit-f4ff8fe6eb20ab5b557d7beac095959890e126e8.tar.gz legit-f4ff8fe6eb20ab5b557d7beac095959890e126e8.tar.bz2 legit-f4ff8fe6eb20ab5b557d7beac095959890e126e8.zip |
fix routes
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 |