Differential D9700 Diff 23293 src/applications/notification/controller/PhabricatorNotificationPanelController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/notification/controller/PhabricatorNotificationPanelController.php
| Show All 19 Lines | if ($stories) { | ||||
| $notifications_view = $builder->buildView(); | $notifications_view = $builder->buildView(); | ||||
| $content = $notifications_view->render(); | $content = $notifications_view->render(); | ||||
| } else { | } else { | ||||
| $content = phutil_tag_div( | $content = phutil_tag_div( | ||||
| 'phabricator-notification no-notifications', | 'phabricator-notification no-notifications', | ||||
| pht('You have no notifications.')); | pht('You have no notifications.')); | ||||
| } | } | ||||
| $content = hsprintf( | $notifications_link = phutil_tag( | ||||
| '<div class="phabricator-notification-header">%s %s</div>'. | |||||
| '%s'. | |||||
| '<div class="phabricator-notification-view-all">%s</div>', | |||||
| phutil_tag( | |||||
| 'a', | 'a', | ||||
| array( | array( | ||||
| 'href' => '/notification/', | 'href' => '/notification/', | ||||
| ), | ), | ||||
| pht('Notifications')), | pht('Notifications')); | ||||
| $connection_status = new PhabricatorNotificationStatusView(); | |||||
| $header = phutil_tag( | |||||
| 'div', | |||||
| array( | |||||
| 'class' => 'phabricator-notification-header', | |||||
| ), | |||||
| array( | |||||
| $connection_status, | |||||
| $notifications_link, | |||||
| )); | |||||
| $content = hsprintf( | |||||
| '%s'. | |||||
| '%s'. | |||||
| '<div class="phabricator-notification-view-all">%s %s %s</div>', | |||||
| $header, | |||||
| $content, | |||||
| javelin_tag( | javelin_tag( | ||||
| 'a', | 'a', | ||||
| array( | array( | ||||
| 'sigil' => 'workflow', | 'sigil' => 'workflow', | ||||
| 'href' => '/notification/clear/', | 'href' => '/notification/clear/', | ||||
| 'class' => 'phabricator-notification-clear-all' | 'class' => 'phabricator-notification-clear-all' | ||||
| ), | ), | ||||
| pht('Mark All Read')), | pht('Mark All Read')), | ||||
| $content, | " \xC2\xB7 ", | ||||
| phutil_tag( | phutil_tag( | ||||
| 'a', | 'a', | ||||
| array( | array( | ||||
| 'href' => '/notification/', | 'href' => '/notification/', | ||||
| ), | ), | ||||
| pht('View All Notifications'))); | pht('View All Notifications'))); | ||||
| $unread_count = id(new PhabricatorFeedStoryNotification()) | $unread_count = id(new PhabricatorFeedStoryNotification()) | ||||
| Show All 10 Lines | |||||