diff options
author | Alex Auvolat <alex@adnab.me> | 2021-03-08 17:01:23 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-09-28 17:39:48 +0200 |
commit | 54d085f7f3f0a8f6da83cc599c19c593b1412dc3 (patch) | |
tree | 6421f2ec6b992da5cbf5e1dfbc40f7ac4e5eeb29 | |
parent | 1988b2a15860c21da7d2f57aa2e8fae2108b81c8 (diff) | |
download | alps-54d085f7f3f0a8f6da83cc599c19c593b1412dc3.tar.gz alps-54d085f7f3f0a8f6da83cc599c19c593b1412dc3.zip |
(Patch by Florian Le Minioux) Fix HTTP 500 when missing some folders
-rw-r--r-- | themes/alps/util.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/themes/alps/util.html b/themes/alps/util.html index 9cdfd86..b0022ec 100644 --- a/themes/alps/util.html +++ b/themes/alps/util.html @@ -32,12 +32,12 @@ ">Compose mail</a> </li> {{ with .CategorizedMailboxes }} - {{ with .Common.Inbox }}{{ template "mbox-link" . }}{{ end }} - {{ with .Common.Drafts }}{{ template "mbox-link" . }}{{ end }} - {{ with .Common.Sent }}{{ template "mbox-link" . }}{{ end }} - {{ with .Common.Junk }}{{ template "mbox-link" . }}{{ end }} - {{ with .Common.Trash }}{{ template "mbox-link" . }}{{ end }} - {{ with .Common.Archive }}{{ template "mbox-link" . }}{{ end }} + {{ if .Common.Inbox.Info }}{{ with .Common.Inbox }}{{ template "mbox-link" . }}{{ end }}{{ end }} + {{ if .Common.Drafts.Info }}{{ with .Common.Drafts }}{{ template "mbox-link" . }}{{ end }}{{ end }} + {{ if .Common.Sent.Info }}{{ with .Common.Sent }}{{ template "mbox-link" . }}{{ end }}{{ end }} + {{ if .Common.Junk.Info }}{{ with .Common.Junk }}{{ template "mbox-link" . }}{{ end }}{{ end }} + {{ if .Common.Trash.Info }}{{ with .Common.Trash }}{{ template "mbox-link" . }}{{ end }}{{ end }} + {{ if .Common.Archive.Info }}{{ with .Common.Archive }}{{ template "mbox-link" . }}{{ end }}{{ end }} {{ if .Additional }} <hr /> {{ range .Additional }} |