ソースを参照

mailbox: show unseen message count in page title

master
Drew DeVault 4年前
committed by Simon Ser
コミット
2d86413876
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: FDE7BE0E88F5E48
1個のファイルの変更4行の追加0行の削除
  1. +4
    -0
      plugins/base/routes.go

+ 4
- 0
plugins/base/routes.go ファイルの表示

@@ -142,6 +142,10 @@ func handleGetMailbox(ctx *alps.Context) error {
title = "Inbox"
}

if mbox.Unseen > 0 {
title = fmt.Sprintf("(%d) %s", mbox.Unseen, title)
}

return ctx.Render(http.StatusOK, "mailbox.html", &MailboxRenderData{
BaseRenderData: *alps.NewBaseRenderData(ctx).WithTitle(title),
Mailbox: mbox,


読み込み中…
キャンセル
保存