aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-11-19 11:17:40 -0500
committerDrew DeVault <sir@cmpwn.com>2020-11-19 11:17:40 -0500
commitcb37df882edc51ed47f4b353ce42eabd80416b19 (patch)
tree42b060f231d5d976626f6a04b9e3160f974066f0 /themes
parent405c18d21388f1cc6f8b7349186efb3fa44eef87 (diff)
downloadalps-cb37df882edc51ed47f4b353ce42eabd80416b19.tar.gz
alps-cb37df882edc51ed47f4b353ce42eabd80416b19.zip
Add notices on action completion
Diffstat (limited to 'themes')
-rw-r--r--themes/alps/assets/style.css7
-rw-r--r--themes/alps/mailbox.html2
-rw-r--r--themes/alps/nav.html6
3 files changed, 14 insertions, 1 deletions
diff --git a/themes/alps/assets/style.css b/themes/alps/assets/style.css
index e07f4e2..e4a0d35 100644
--- a/themes/alps/assets/style.css
+++ b/themes/alps/assets/style.css
@@ -118,6 +118,13 @@ header nav div { float: right; }
header nav div > a{ margin-left: 1rem; }
header a.active { font-weight: bold; color: black; text-decoration: none; }
+header .notice {
+ color: #0c5460;
+ background-color: #d1ecf1;
+ border: 1px solid #bee5eb;
+ padding: 0.5rem;
+ text-align: center;
+}
footer { text-align: right; }
diff --git a/themes/alps/mailbox.html b/themes/alps/mailbox.html
index 9a4c9ce..a3a2e6a 100644
--- a/themes/alps/mailbox.html
+++ b/themes/alps/mailbox.html
@@ -21,7 +21,7 @@
{{ $classes = printf "%s %s" $classes "message-list-deleted" }}
{{ end }}
- {{ if not (.HasFlag "\\Deleted") }}
+ {{ if and (not (.HasFlag "\\Deleted")) .Envelope }}
<div class="message-list-checkbox {{$classes}}">
<input type="checkbox" name="uids" value="{{.Uid}}" form="messages-form">
</div>
diff --git a/themes/alps/nav.html b/themes/alps/nav.html
index d7eee9c..8fccea4 100644
--- a/themes/alps/nav.html
+++ b/themes/alps/nav.html
@@ -30,4 +30,10 @@
</div>
{{ end }}
</nav>
+ {{ if .GlobalData.Notice }}
+ <div class="notice">
+ {{ .GlobalData.Notice }}
+ <a href="{{.GlobalData.URL.String}}">Dismiss</a>
+ </div>
+ {{ end }}
</header>