Page MenuHomePhabricator

D8254.id19636.diff
No OneTemporary

D8254.id19636.diff

diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -1109,6 +1109,7 @@
'PhabricatorApplicationMailingLists' => 'applications/mailinglists/application/PhabricatorApplicationMailingLists.php',
'PhabricatorApplicationManiphest' => 'applications/maniphest/application/PhabricatorApplicationManiphest.php',
'PhabricatorApplicationMetaMTA' => 'applications/metamta/application/PhabricatorApplicationMetaMTA.php',
+ 'PhabricatorApplicationNotifications' => 'applications/notification/application/PhabricatorApplicationNotifications.php',
'PhabricatorApplicationNuance' => 'applications/nuance/application/PhabricatorApplicationNuance.php',
'PhabricatorApplicationOwners' => 'applications/owners/application/PhabricatorApplicationOwners.php',
'PhabricatorApplicationPHIDTypeApplication' => 'applications/meta/phid/PhabricatorApplicationPHIDTypeApplication.php',
@@ -3748,6 +3749,7 @@
'PhabricatorApplicationMailingLists' => 'PhabricatorApplication',
'PhabricatorApplicationManiphest' => 'PhabricatorApplication',
'PhabricatorApplicationMetaMTA' => 'PhabricatorApplication',
+ 'PhabricatorApplicationNotifications' => 'PhabricatorApplication',
'PhabricatorApplicationNuance' => 'PhabricatorApplication',
'PhabricatorApplicationOwners' => 'PhabricatorApplication',
'PhabricatorApplicationPHIDTypeApplication' => 'PhabricatorPHIDType',
diff --git a/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php b/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php
--- a/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php
+++ b/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php
@@ -48,15 +48,6 @@
'keyboardshortcut/' => 'PhabricatorHelpKeyboardShortcutController',
),
- '/notification/' => array(
- '(?:(?P<filter>all|unread)/)?'
- => 'PhabricatorNotificationListController',
- 'panel/' => 'PhabricatorNotificationPanelController',
- 'individual/' => 'PhabricatorNotificationIndividualController',
- 'status/' => 'PhabricatorNotificationStatusController',
- 'clear/' => 'PhabricatorNotificationClearController',
- ),
-
'/debug/' => 'PhabricatorDebugController',
);
}
diff --git a/src/applications/notification/application/PhabricatorApplicationNotifications.php b/src/applications/notification/application/PhabricatorApplicationNotifications.php
new file mode 100644
--- /dev/null
+++ b/src/applications/notification/application/PhabricatorApplicationNotifications.php
@@ -0,0 +1,30 @@
+<?php
+
+final class PhabricatorApplicationNotifications extends PhabricatorApplication {
+
+ public function getBaseURI() {
+ return '/notification/';
+ }
+
+ public function getShortDescription() {
+ return pht('Beep Beep Bloop');
+ }
+
+ public function getRoutes() {
+ return array(
+ '/notification/' => array(
+ '(?:(?P<filter>all|unread)/)?'
+ => 'PhabricatorNotificationListController',
+ 'panel/' => 'PhabricatorNotificationPanelController',
+ 'individual/' => 'PhabricatorNotificationIndividualController',
+ 'status/' => 'PhabricatorNotificationStatusController',
+ 'clear/' => 'PhabricatorNotificationClearController',
+ ),
+ );
+ }
+
+ public function shouldAppearInLaunchView() {
+ return false;
+ }
+
+}
diff --git a/src/applications/notification/controller/PhabricatorNotificationStatusController.php b/src/applications/notification/controller/PhabricatorNotificationStatusController.php
--- a/src/applications/notification/controller/PhabricatorNotificationStatusController.php
+++ b/src/applications/notification/controller/PhabricatorNotificationStatusController.php
@@ -20,10 +20,16 @@
phutil_escape_html_newlines($ex->getMessage())));
}
- return $this->buildStandardPageResponse(
- $status,
+ $crumbs = $this->buildApplicationCrumbs();
+ $crumbs->addTextCrumb(pht('Status'));
+
+ return $this->buildApplicationPage(
+ array(
+ $crumbs,
+ $status,
+ ),
array(
- 'title' => 'Aphlict Server Status',
+ 'title' => pht('Notification Server Status'),
));
}
@@ -53,10 +59,10 @@
'wide',
));
- $panel = new AphrontPanelView();
- $panel->setHeader('Server Status');
- $panel->appendChild($table);
+ $box = id(new PHUIObjectBoxView())
+ ->setHeaderText(pht('Server Status'))
+ ->appendChild($table);
- return $panel;
+ return $box;
}
}

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 22, 1:37 AM (19 h, 8 s)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6916910
Default Alt Text
D8254.id19636.diff (4 KB)

Event Timeline