2012-08-05 23:12:43 +02:00
|
|
|
<?php
|
|
|
|
|
2014-07-23 02:03:09 +02:00
|
|
|
final class PhabricatorSettingsApplication extends PhabricatorApplication {
|
2012-08-05 23:12:43 +02:00
|
|
|
|
|
|
|
public function getBaseURI() {
|
|
|
|
return '/settings/';
|
|
|
|
}
|
|
|
|
|
2014-07-23 15:52:50 +02:00
|
|
|
public function getName() {
|
|
|
|
return pht('Settings');
|
|
|
|
}
|
|
|
|
|
2012-08-05 23:12:43 +02:00
|
|
|
public function getShortDescription() {
|
2014-05-29 21:17:54 +02:00
|
|
|
return pht('User Preferences');
|
2012-08-05 23:12:43 +02:00
|
|
|
}
|
|
|
|
|
2015-01-25 08:41:43 +01:00
|
|
|
public function getFontIcon() {
|
|
|
|
return 'fa-wrench';
|
|
|
|
}
|
|
|
|
|
2013-01-29 18:14:03 +01:00
|
|
|
public function canUninstall() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
(Redesign) Clean up older "Tile" code
Summary:
This does some backend cleanup of the tile stuff, and some general cleanup of other application things:
- Users who haven't customized preferences get a small, specific set of pinned applications: Differential, Maniphest, Diffusion, Audit, Phriction, Projects (and, for administrators, Auth, Config and People).
- Old tile size methods are replaced with `isPinnnedByDefault()`.
- Shortened some short descriptions.
- `shouldAppearInLaunchView()` replaced by less ambiguous `isLaunchable()`.
- Added a marker for third-party / extension applications.
Test Plan: Faked away my preferences and viewed the home page, saw a smaller set of default pins.
Reviewers: chad
Reviewed By: chad
Subscribers: epriestley
Differential Revision: https://secure.phabricator.com/D9358
2014-06-04 00:47:27 +02:00
|
|
|
public function isLaunchable() {
|
2014-05-29 21:17:54 +02:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2012-08-05 23:12:43 +02:00
|
|
|
public function getRoutes() {
|
|
|
|
return array(
|
|
|
|
'/settings/' => array(
|
2014-04-02 21:06:05 +02:00
|
|
|
'(?:(?P<id>\d+)/)?(?:panel/(?P<key>[^/]+)/)?'
|
|
|
|
=> 'PhabricatorSettingsMainController',
|
2012-08-13 21:37:18 +02:00
|
|
|
'adjust/' => 'PhabricatorSettingsAdjustController',
|
2012-08-05 23:12:43 +02:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2012-10-04 00:46:19 +02:00
|
|
|
public function getApplicationGroup() {
|
|
|
|
return self::GROUP_UTILITIES;
|
|
|
|
}
|
|
|
|
|
2012-08-05 23:12:43 +02:00
|
|
|
}
|