Differential D15703 Diff 37833 src/applications/notification/controller/PhabricatorNotificationPanelController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/notification/controller/PhabricatorNotificationPanelController.php
Show All 38 Lines | public function handleRequest(AphrontRequest $request) { | ||||
$notifications_link = phutil_tag( | $notifications_link = phutil_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
'href' => '/notification/', | 'href' => '/notification/', | ||||
), | ), | ||||
pht('Notifications')); | pht('Notifications')); | ||||
if (PhabricatorEnv::getEnvConfig('notification.enabled')) { | |||||
$connection_status = new PhabricatorNotificationStatusView(); | $connection_status = new PhabricatorNotificationStatusView(); | ||||
} else { | |||||
$connection_status = phutil_tag( | |||||
'a', | |||||
array( | |||||
'href' => PhabricatorEnv::getDoclink( | |||||
'Notifications User Guide: Setup and Configuration'), | |||||
), | |||||
pht('Notification Server not enabled.')); | |||||
} | |||||
$connection_ui = phutil_tag( | $connection_ui = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'phabricator-notification-footer', | 'class' => 'phabricator-notification-footer', | ||||
), | ), | ||||
$connection_status); | $connection_status); | ||||
$header = phutil_tag( | $header = phutil_tag( | ||||
Show All 26 Lines |