diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-12 21:33:09 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-12 21:33:09 +0530 |
commit | 01f27147baf80e2222927ddca9369c7d99b4ff3c (patch) | |
tree | ffd8f1431f83ae4f1b390c907ee45c377c84f436 /templates/nav.html | |
parent | 82b8afe19b77fe02e1a29a5b5e20882d8e5c3fc5 (diff) | |
download | legit-01f27147baf80e2222927ddca9369c7d99b4ff3c.tar.gz legit-01f27147baf80e2222927ddca9369c7d99b4ff3c.tar.bz2 legit-01f27147baf80e2222927ddca9369c7d99b4ff3c.zip |
routes: index view
Diffstat (limited to 'templates/nav.html')
-rw-r--r-- | templates/nav.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/nav.html b/templates/nav.html index 20dca50..a8fa84a 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -2,9 +2,13 @@ <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 }} </ul> </nav> {{ end }} |