From 9e2c420461cef709811ac84f958fae20b93b800b Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 22 Oct 2020 12:29:55 -0400 Subject: Categorize and normalize folder listing --- themes/alps/assets/style.css | 3 ++- themes/alps/mailbox.html | 51 ++++++++++++++++++++++++++++---------------- 2 files changed, 35 insertions(+), 19 deletions(-) (limited to 'themes/alps') diff --git a/themes/alps/assets/style.css b/themes/alps/assets/style.css index 6d107de..2ba4af7 100644 --- a/themes/alps/assets/style.css +++ b/themes/alps/assets/style.css @@ -127,7 +127,8 @@ footer { text-align: right; } aside { flex: 0 0 180px; } -aside a { width: 100%; display: block; padding: 0.4rem 0 0.4rem 0.5rem; } +aside a, +aside .noselect { width: 100%; display: block; padding: 0.4rem 0 0.4rem 0.5rem; } aside a.active { font-weight: bold; color: black; text-decoration: none; } aside img { display: block; } main { diff --git a/themes/alps/mailbox.html b/themes/alps/mailbox.html index 4582726..e09f2b7 100644 --- a/themes/alps/mailbox.html +++ b/themes/alps/mailbox.html @@ -1,28 +1,43 @@ {{template "head.html" .}} {{template "nav.html" .}} +{{ define "mbox-link" }} +{{ if not (.HasAttr "\\Noselect") }} + + {{- if eq .Name "INBOX" -}} + Inbox + {{- else -}} + {{ .Name }} + {{- end -}} + {{- if .HasAttr "\\HasChildren" }}/{{ end }} + + {{ if and (ne .Unseen -1) (ne .Unseen 0) }}({{ .Unseen }}){{ end }} + +{{ else }} + + {{.Name}}{{- if .HasAttr "\\HasChildren" }}/{{ end }} + +{{ end }} +{{ end }} +
-- cgit v1.2.3