aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-10-22 11:36:26 -0400
committerDrew DeVault <sir@cmpwn.com>2020-10-22 11:36:26 -0400
commit8de661b3bb47eec32cfbfab52c404e9fd610e8e2 (patch)
tree8ac795e30226dccc9dafd9816ca81b2cd4991cdf /themes
parent793f261b626be09c50c5b67b3dba56c97e0ce979 (diff)
downloadalps-8de661b3bb47eec32cfbfab52c404e9fd610e8e2.tar.gz
alps-8de661b3bb47eec32cfbfab52c404e9fd610e8e2.zip
Hide caldav/carrdav in nav unless present
Diffstat (limited to 'themes')
-rw-r--r--themes/alps/nav.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/themes/alps/nav.html b/themes/alps/nav.html
index 1678434..d14a862 100644
--- a/themes/alps/nav.html
+++ b/themes/alps/nav.html
@@ -6,18 +6,22 @@
class="active"
{{ end }}
>Email</a>
+ {{ if call .GlobalData.HavePlugin "caldav" }}
<a
href="/calendar"
{{ if eq $page "calendar" }}
class="active"
{{ end }}
>Calendar</a>
+ {{ end }}
+ {{ if call .GlobalData.HavePlugin "carddav" }}
<a
href="/contacts"
{{ if eq $page "contacts" }}
class="active"
{{ end }}
>Contacts</a>
+ {{ end }}
<div>
<span>{{ .GlobalData.Username }}</span>
<a href="/settings">Settings</a>