mailbox: set title to "Inbox" rather than "INBOX"

This commit is contained in:
Drew DeVault 2020-05-13 13:04:43 -04:00 committed by Simon Ser
parent ce0b0a7eeb
commit aab1f866f6
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -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,