From 1cf95af41ea24ab76cba8a0761d349b65c08c294 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 13 May 2020 10:58:22 -0400 Subject: Add to mailbox view This causes the mailbox to automatically reload the page every 60 seconds, without JavaScript. This also updates the base template data to include the full URL, and replaces the earlier "Path" field with a pre-split array of path components, which is more immediately useful to most templates given the limitations of string munging with text/template primitives. --- themes/alps/compose.html | 2 +- themes/alps/head.html | 3 +++ themes/alps/login.html | 2 +- themes/alps/mailbox.html | 4 ++-- themes/alps/message.html | 2 +- themes/alps/messages-header.html | 2 +- themes/sourcehut/address-book.html | 2 +- themes/sourcehut/address-object.html | 2 +- themes/sourcehut/calendar.html | 2 +- themes/sourcehut/compose.html | 2 +- themes/sourcehut/event.html | 2 +- themes/sourcehut/login.html | 2 +- themes/sourcehut/mailbox.html | 2 +- themes/sourcehut/message.html | 2 +- themes/sourcehut/settings.html | 2 +- 15 files changed, 18 insertions(+), 15 deletions(-) (limited to 'themes') diff --git a/themes/alps/compose.html b/themes/alps/compose.html index 7b58a5f..6bd516e 100644 --- a/themes/alps/compose.html +++ b/themes/alps/compose.html @@ -1,4 +1,4 @@ -{{template "head.html"}} +{{template "head.html" .}} {{template "nav.html" .}} diff --git a/themes/alps/head.html b/themes/alps/head.html index a6f679f..899f7d6 100644 --- a/themes/alps/head.html +++ b/themes/alps/head.html @@ -4,6 +4,9 @@ + {{- if eq (index .GlobalData.Path 0) "mailbox"}} + + {{end -}} Webmail diff --git a/themes/alps/login.html b/themes/alps/login.html index cc21966..f599535 100644 --- a/themes/alps/login.html +++ b/themes/alps/login.html @@ -1,4 +1,4 @@ -{{template "head.html"}} +{{template "head.html" .}}

alps webmail

diff --git a/themes/alps/mailbox.html b/themes/alps/mailbox.html index 6453d69..8e3331f 100644 --- a/themes/alps/mailbox.html +++ b/themes/alps/mailbox.html @@ -1,5 +1,5 @@ -{{template "head.html"}} -{{template "nav.html" . }} +{{template "head.html" .}} +{{template "nav.html" .}}