diff --git a/assets/javascripts/mailcatcher.js.coffee b/assets/javascripts/mailcatcher.js.coffee index 29d13f0..5982d6f 100644 --- a/assets/javascripts/mailcatcher.js.coffee +++ b/assets/javascripts/mailcatcher.js.coffee @@ -190,6 +190,8 @@ class MailCatcher .append($("").text(message.subject or "No subject").toggleClass("blank", !message.subject)) .append($("").text(@formatDate(message.created_at))) .prependTo($("#messages tbody")) + title = $('head title') + title.text(title.text().replace(/^\(\d*\)/, "(#{@messagesCount()})")) scrollToRow: (row) -> relativePosition = row.offset().top - $("#messages").offset().top diff --git a/views/index.haml b/views/index.haml index 037bce1..6949981 100644 --- a/views/index.haml +++ b/views/index.haml @@ -1,7 +1,7 @@ !!! %html.mailcatcher %head - %title MailCatcher + %title (0) MailCatcher %link{:href => "/favicon.ico", :rel => "shortcut icon"} = stylesheet_tag "mailcatcher" = javascript_tag "mailcatcher"