aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-05-13 14:28:46 -0400
committerSimon Ser <contact@emersion.fr>2020-05-13 20:52:36 +0200
commit5a73ca6ebb437c5eed2a9863ab5513facacb6e93 (patch)
treec15ae0814d75be1dd98325c27e4965f063a29d0b
parent7456c9574cfe5cffb26aa2c8abe72682308d5fd5 (diff)
downloadalps-5a73ca6ebb437c5eed2a9863ab5513facacb6e93.tar.gz
alps-5a73ca6ebb437c5eed2a9863ab5513facacb6e93.zip
alps theme: if there's nothing to show, say so
-rw-r--r--themes/alps/address-book.html3
-rw-r--r--themes/alps/assets/style.css9
-rw-r--r--themes/alps/mailbox.html3
3 files changed, 15 insertions, 0 deletions
diff --git a/themes/alps/address-book.html b/themes/alps/address-book.html
index 60292bf..1e4c441 100644
--- a/themes/alps/address-book.html
+++ b/themes/alps/address-book.html
@@ -34,6 +34,9 @@
{{end}}
</div>
{{end}}
+ {{if not .AddressObjects}}
+ <p class="empty-list">Nothing here yet.</p>
+ {{end}}
</div>
</section>
diff --git a/themes/alps/assets/style.css b/themes/alps/assets/style.css
index c0867c1..b1c2ab7 100644
--- a/themes/alps/assets/style.css
+++ b/themes/alps/assets/style.css
@@ -366,6 +366,15 @@ main table tfoot {
margin-left: 0.3rem;
}
+.empty-list {
+ text-align: center;
+ grid-column-start: 1;
+ grid-column-end: 10;
+ font-size: 1.1rem;
+ color: #333;
+ margin-top: 1rem;
+}
+
input[type="submit"],
.button,
button,
diff --git a/themes/alps/mailbox.html b/themes/alps/mailbox.html
index 0225482..dfc79fe 100644
--- a/themes/alps/mailbox.html
+++ b/themes/alps/mailbox.html
@@ -55,6 +55,9 @@
{{ .Envelope.Date | formatdate }}
</div>
{{ end }}
+ {{if not .Messages}}
+ <p class="empty-list">Nothing here yet.</p>
+ {{end}}
</div>
</section>
<section class="actions">