aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-05-13 13:04:43 -0400
committerSimon Ser <contact@emersion.fr>2020-05-13 19:49:20 +0200
commitaab1f866f6185329fca31a8bbe0dc74aa5416302 (patch)
tree0005b193ba1b5d70b5bdb8dcf80b2a0c9e651ae2
parentce0b0a7eeb35049a921e160920a7c279327db0ca (diff)
downloadalps-aab1f866f6185329fca31a8bbe0dc74aa5416302.tar.gz
alps-aab1f866f6185329fca31a8bbe0dc74aa5416302.zip
mailbox: set title to "Inbox" rather than "INBOX"
-rw-r--r--plugins/base/routes.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/base/routes.go b/plugins/base/routes.go
index a389495..780cffb 100644
--- a/plugins/base/routes.go
+++ b/plugins/base/routes.go
@@ -137,8 +137,13 @@ func handleGetMailbox(ctx *alps.Context) error {
}
}
+ title := mbox.Name
+ if title == "INBOX" {
+ title = "Inbox"
+ }
+
return ctx.Render(http.StatusOK, "mailbox.html", &MailboxRenderData{
- BaseRenderData: *alps.NewBaseRenderData(ctx).WithTitle(mbox.Name),
+ BaseRenderData: *alps.NewBaseRenderData(ctx).WithTitle(title),
Mailbox: mbox,
Mailboxes: mailboxes,
Messages: msgs,