mailbox: set title to "Inbox" rather than "INBOX"
This commit is contained in:
parent
ce0b0a7eeb
commit
aab1f866f6
1 changed files with 6 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue