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/mailbox.html | 51 +++++++++++++++++++++++++++++++----------------- 1 file changed, 33 insertions(+), 18 deletions(-) (limited to 'themes/alps/mailbox.html') 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