aboutsummaryrefslogtreecommitdiff
path: root/themes/sourcehut
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-05-13 10:58:22 -0400
committerSimon Ser <contact@emersion.fr>2020-05-13 16:58:48 +0200
commit1cf95af41ea24ab76cba8a0761d349b65c08c294 (patch)
treef7a5fd00a63498f00768aeba140b68a5d4a74431 /themes/sourcehut
parent0191b739969e00cdba0faa5a05159fd5f83d5d9e (diff)
downloadalps-1cf95af41ea24ab76cba8a0761d349b65c08c294.tar.gz
alps-1cf95af41ea24ab76cba8a0761d349b65c08c294.zip
Add <meta refresh> 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.
Diffstat (limited to 'themes/sourcehut')
-rw-r--r--themes/sourcehut/address-book.html2
-rw-r--r--themes/sourcehut/address-object.html2
-rw-r--r--themes/sourcehut/calendar.html2
-rw-r--r--themes/sourcehut/compose.html2
-rw-r--r--themes/sourcehut/event.html2
-rw-r--r--themes/sourcehut/login.html2
-rw-r--r--themes/sourcehut/mailbox.html2
-rw-r--r--themes/sourcehut/message.html2
-rw-r--r--themes/sourcehut/settings.html2
9 files changed, 9 insertions, 9 deletions
diff --git a/themes/sourcehut/address-book.html b/themes/sourcehut/address-book.html
index c5600d6..44abbe2 100644
--- a/themes/sourcehut/address-book.html
+++ b/themes/sourcehut/address-book.html
@@ -1,4 +1,4 @@
-{{template "head.html"}}
+{{template "head.html" .Global}}
{{template "nav.html" .Global}}
<div class="container-fluid">
diff --git a/themes/sourcehut/address-object.html b/themes/sourcehut/address-object.html
index 1ab445f..6fb5f6c 100644
--- a/themes/sourcehut/address-object.html
+++ b/themes/sourcehut/address-object.html
@@ -1,4 +1,4 @@
-{{template "head.html"}}
+{{template "head.html" .Global}}
{{template "nav.html" .Global}}
{{$fn := .AddressObject.Card.Value "FN"}}
diff --git a/themes/sourcehut/calendar.html b/themes/sourcehut/calendar.html
index ec15ae8..d0cfac0 100644
--- a/themes/sourcehut/calendar.html
+++ b/themes/sourcehut/calendar.html
@@ -1,4 +1,4 @@
-{{template "head.html"}}
+{{template "head.html" .Global}}
{{template "nav.html" .Global}}
<div class="container-fluid">
diff --git a/themes/sourcehut/compose.html b/themes/sourcehut/compose.html
index 7538a36..8f73538 100644
--- a/themes/sourcehut/compose.html
+++ b/themes/sourcehut/compose.html
@@ -1,4 +1,4 @@
-{{template "head.html"}}
+{{template "head.html" .Global}}
{{template "nav.html" .Global}}
<div class="container-fluid">
diff --git a/themes/sourcehut/event.html b/themes/sourcehut/event.html
index a298ce1..3740166 100644
--- a/themes/sourcehut/event.html
+++ b/themes/sourcehut/event.html
@@ -1,4 +1,4 @@
-{{template "head.html"}}
+{{template "head.html" .Global}}
{{template "nav.html" .Global}}
{{$event := index .Event.Data.Events 0}}
diff --git a/themes/sourcehut/login.html b/themes/sourcehut/login.html
index 63edfd8..65605b4 100644
--- a/themes/sourcehut/login.html
+++ b/themes/sourcehut/login.html
@@ -1,4 +1,4 @@
-{{template "head.html"}}
+{{template "head.html" .Global}}
{{template "nav.html" .Global}}
<div class="container">
diff --git a/themes/sourcehut/mailbox.html b/themes/sourcehut/mailbox.html
index e360f25..58eb52b 100644
--- a/themes/sourcehut/mailbox.html
+++ b/themes/sourcehut/mailbox.html
@@ -1,4 +1,4 @@
-{{template "head.html"}}
+{{template "head.html" .Global}}
{{template "nav.html" .Global}}
<!-- TODO: Share tabs if reasonable -->
diff --git a/themes/sourcehut/message.html b/themes/sourcehut/message.html
index 1e4197f..077d33c 100644
--- a/themes/sourcehut/message.html
+++ b/themes/sourcehut/message.html
@@ -1,4 +1,4 @@
-{{template "head.html"}}
+{{template "head.html" .Global}}
{{template "nav.html" .Global}}
<div class="container-fluid">
diff --git a/themes/sourcehut/settings.html b/themes/sourcehut/settings.html
index 292d5cc..c197789 100644
--- a/themes/sourcehut/settings.html
+++ b/themes/sourcehut/settings.html
@@ -1,4 +1,4 @@
-{{template "head.html"}}
+{{template "head.html" .Global}}
{{template "nav.html" .Global}}
<div class="container-fluid">