From aab1f866f6185329fca31a8bbe0dc74aa5416302 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 13 May 2020 13:04:43 -0400 Subject: mailbox: set title to "Inbox" rather than "INBOX" --- plugins/base/routes.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3