diff options
Diffstat (limited to 'themes/alps/message.html')
-rw-r--r-- | themes/alps/message.html | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/themes/alps/message.html b/themes/alps/message.html index 521e835..1d74489 100644 --- a/themes/alps/message.html +++ b/themes/alps/message.html @@ -32,7 +32,6 @@ <aside> <!-- the logo image, dimensions 200x32 may be present or not --> <a href="/compose" class="new">Compose Mail</a> - {{$current := .Mailbox}} {{range .Mailboxes}} <a href="{{.URL}}" {{ if eq $current.Name .Name }}class="active"{{ end }}> @@ -41,9 +40,15 @@ {{else}} {{.Name}} {{end}} - {{ if eq $current.Name .Name }} - {{ if $current.Unseen }}({{ $current.Unseen }}){{ end }} + + {{ $unseen := 0 }} + {{ if eq .Name "INBOX" }} + {{ $unseen = $.Inbox.Unseen }} + {{ end }} + {{ if eq .Name $.Mailbox.Name }} + {{ $unseen = $.Mailbox.Unseen }} {{ end }} + {{ if $unseen }}({{ $unseen }}){{ end }} </a> {{end}} </aside> |