diff options
author | Drew DeVault <sir@cmpwn.com> | 2020-05-13 13:04:43 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-05-13 19:49:20 +0200 |
commit | aab1f866f6185329fca31a8bbe0dc74aa5416302 (patch) | |
tree | 0005b193ba1b5d70b5bdb8dcf80b2a0c9e651ae2 /plugins | |
parent | ce0b0a7eeb35049a921e160920a7c279327db0ca (diff) | |
download | alps-aab1f866f6185329fca31a8bbe0dc74aa5416302.tar.gz alps-aab1f866f6185329fca31a8bbe0dc74aa5416302.zip |
mailbox: set title to "Inbox" rather than "INBOX"
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/base/routes.go | 7 |
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, |