aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/base/routes.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/base/routes.go b/plugins/base/routes.go
index 780cffb..3b47668 100644
--- a/plugins/base/routes.go
+++ b/plugins/base/routes.go
@@ -142,6 +142,10 @@ func handleGetMailbox(ctx *alps.Context) error {
title = "Inbox"
}
+ if mbox.Unseen > 0 {
+ title = fmt.Sprintf("(%d) %s", mbox.Unseen, title)
+ }
+
return ctx.Render(http.StatusOK, "mailbox.html", &MailboxRenderData{
BaseRenderData: *alps.NewBaseRenderData(ctx).WithTitle(title),
Mailbox: mbox,