Show a count (like "(3)") in the page title corresponding to unread notifications/messages

Summary: Fixes T5368. Synchronizes the page title to reflect unread counts in the notification and Conphernece messages menus.

Test Plan: {F201083}

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T5368

Differential Revision: https://secure.phabricator.com/D10457
This commit is contained in:
epriestley
2014-09-10 10:17:49 -07:00
parent bee1e09fd1
commit 568b0e06e7
4 changed files with 70 additions and 12 deletions

View File

@@ -349,6 +349,8 @@ final class PhabricatorMainMenuView extends AphrontView {
'dropdownID' => $message_dropdown_id,
'loadingText' => pht('Loading...'),
'uri' => '/conpherence/panel/',
'countType' => 'messages',
'countNumber' => $message_count_number,
));
$message_notification_dropdown = javelin_tag(
@@ -428,6 +430,8 @@ final class PhabricatorMainMenuView extends AphrontView {
'dropdownID' => $dropdown_id,
'loadingText' => pht('Loading...'),
'uri' => '/notification/panel/',
'countType' => 'notifications',
'countNumber' => $count_number,
));
$notification_dropdown = javelin_tag(