aboutsummaryrefslogtreecommitdiff
path: root/themes/alps/nav.html
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-05-13 14:47:56 -0400
committerSimon Ser <contact@emersion.fr>2020-05-13 20:52:06 +0200
commit7456c9574cfe5cffb26aa2c8abe72682308d5fd5 (patch)
treeabe68459e0bda13d8eb8bef2210a659afddb80de /themes/alps/nav.html
parentdfb381058bca883561af4053074db560d34822d8 (diff)
downloadalps-7456c9574cfe5cffb26aa2c8abe72682308d5fd5.tar.gz
alps-7456c9574cfe5cffb26aa2c8abe72682308d5fd5.zip
alps: theme contact list page
Diffstat (limited to 'themes/alps/nav.html')
-rw-r--r--themes/alps/nav.html21
1 files changed, 18 insertions, 3 deletions
diff --git a/themes/alps/nav.html b/themes/alps/nav.html
index 820b2e3..3c26166 100644
--- a/themes/alps/nav.html
+++ b/themes/alps/nav.html
@@ -1,8 +1,23 @@
<header>
<nav>
- <a href="/" class="active">Email</a>
- <a href="/calendar">Calendar</a>
- <a href="/contacts">Contacts</a>
+ {{$page := (index .GlobalData.Path 0)}}
+ <a href="/"
+ {{ if or (eq $page "mailbox") (eq $page "message") }}
+ class="active"
+ {{ end }}
+ >Email</a>
+ <a
+ href="/calendar"
+ {{ if eq $page "calendar" }}
+ class="active"
+ {{ end }}
+ >Calendar</a>
+ <a
+ href="/contacts"
+ {{ if eq $page "contacts" }}
+ class="active"
+ {{ end }}
+ >Contacts</a>
<div>
<span>{{ .GlobalData.Username }}</span>
<a href="/settings">Settings</a>