diff --git a/src/applications/notification/controller/PhabricatorNotificationPanelController.php b/src/applications/notification/controller/PhabricatorNotificationPanelController.php index c0129429d3..f97fd77dc1 100644 --- a/src/applications/notification/controller/PhabricatorNotificationPanelController.php +++ b/src/applications/notification/controller/PhabricatorNotificationPanelController.php @@ -1,64 +1,64 @@ getRequest(); $user = $request->getUser(); $query = new PhabricatorNotificationQuery(); $query->setViewer($user); $query->setUserPHID($user->getPHID()); $query->setLimit(15); $stories = $query->execute(); if ($stories) { $builder = new PhabricatorNotificationBuilder($stories); $notifications_view = $builder->buildView(); $content = $notifications_view->render(); } else { $content = phutil_tag_div( 'phabricator-notification no-notifications', pht('You have no notifications.')); } $content = hsprintf( '
%s %s
'. '%s'. '
%s
', phutil_tag( 'a', array( 'href' => '/notification/', ), pht('Notifications')), javelin_tag( 'a', array( 'sigil' => 'workflow', 'href' => '/notification/clear/', 'class' => 'phabricator-notification-clear-all' ), - pht('Clear All Notifications')), + pht('Mark All Read')), $content, phutil_tag( 'a', array( 'href' => '/notification/', ), pht('View All Notifications'))); $unread_count = id(new PhabricatorFeedStoryNotification()) ->countUnread($user); $json = array( 'content' => $content, 'number' => (int)$unread_count, ); return id(new AphrontAjaxResponse())->setContent($json); } }