forked from phacility/phabricator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPhabricatorHomeApplication.php
47 lines (35 loc) · 1 KB
/
PhabricatorHomeApplication.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
final class PhabricatorHomeApplication extends PhabricatorApplication {
const DASHBOARD_DEFAULT = 'dashboard:default';
public function getBaseURI() {
return '/home/';
}
public function getName() {
return pht('Home');
}
public function getShortDescription() {
return pht('Command Center');
}
public function getIcon() {
return 'fa-home';
}
public function getRoutes() {
return array(
'/' => 'PhabricatorHomeMenuItemController',
// NOTE: If you visit "/" on mobile, you get just the menu. If you visit
// "/home/" on mobile, you get the content. From the normal desktop
// UI, there's no difference between these pages.
'/(?P<content>home)/' => array(
'' => 'PhabricatorHomeMenuItemController',
'menu/' => $this->getProfileMenuRouting(
'PhabricatorHomeMenuItemController'),
),
);
}
public function isLaunchable() {
return false;
}
public function getApplicationOrder() {
return 9;
}
}