2012-08-07 11:54:49 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
final class PhabricatorApplicationProject extends PhabricatorApplication {
|
|
|
|
|
|
|
|
|
|
public function getName() {
|
2013-02-13 09:22:14 -08:00
|
|
|
return pht('Projects');
|
2012-08-07 11:54:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getShortDescription() {
|
2014-05-29 12:17:54 -07:00
|
|
|
return pht('Create Groups, Tags, and Projects');
|
2012-08-07 11:54:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getBaseURI() {
|
|
|
|
|
return '/project/';
|
|
|
|
|
}
|
|
|
|
|
|
Use application icons for "Eye" menu and Crumbs
Summary:
Issues here:
- Need an application-sized "eye", or a "home" icon for "Phabricator Home".
- Some of the "apps_lb_2x" sliced images are the "_dark_" versions, not the light versions.
- If you slice an application-sized "logout" (power off) icon and application-sized "help" (questionmark in circle) icon I can replace the current menu icons and nearly get rid of "autosprite".
- To replace the icons on /applications/, the non-retina size is "4x", so we'd need "8x" for retina. Alternatively I can reduce the icon sizes by 50%.
- The "Help", "Settings" and "Logout" items currently have a "glowing" hover state, which needs a variant (or we can drop it).
- The /applications/ icons have a white hover state (or we can drop it).
- The 1x application (14x14) icons aren't used anywhere right now, should they be? Maybe in the feed in the future, etc?
- The "apps-2x" and "apps-large" sheets are the same image, but getting them to actually use the same file is a bit tricky, so I just left them separate for now.
Test Plan:
{F26698}
{F26699}
Reviewers: chad
Reviewed By: chad
CC: aran
Maniphest Tasks: T1960
Differential Revision: https://secure.phabricator.com/D4108
2012-12-07 13:37:28 -08:00
|
|
|
public function getIconName() {
|
2012-08-14 14:23:55 -07:00
|
|
|
return 'projects';
|
|
|
|
|
}
|
|
|
|
|
|
2012-10-03 15:16:26 -07:00
|
|
|
public function getFlavorText() {
|
|
|
|
|
return pht('Group stuff into big piles.');
|
|
|
|
|
}
|
|
|
|
|
|
2013-05-18 02:46:39 -07:00
|
|
|
public function getRemarkupRules() {
|
|
|
|
|
return array(
|
|
|
|
|
new ProjectRemarkupRule(),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2012-08-07 11:54:49 -07:00
|
|
|
public function getRoutes() {
|
|
|
|
|
return array(
|
|
|
|
|
'/project/' => array(
|
2013-07-22 08:34:35 -07:00
|
|
|
'(?:query/(?P<queryKey>[^/]+)/)?' => 'PhabricatorProjectListController',
|
2012-08-07 11:54:49 -07:00
|
|
|
'filter/(?P<filter>[^/]+)/' => 'PhabricatorProjectListController',
|
2014-02-16 20:17:52 -08:00
|
|
|
'edit/(?P<id>[1-9]\d*)/' => 'PhabricatorProjectEditMainController',
|
|
|
|
|
'details/(?P<id>[1-9]\d*)/'
|
|
|
|
|
=> 'PhabricatorProjectEditDetailsController',
|
2014-02-10 14:30:47 -08:00
|
|
|
'archive/(?P<id>[1-9]\d*)/' =>
|
|
|
|
|
'PhabricatorProjectArchiveController',
|
2012-10-05 16:06:16 -07:00
|
|
|
'members/(?P<id>[1-9]\d*)/'
|
|
|
|
|
=> 'PhabricatorProjectMembersEditController',
|
2014-03-19 19:30:27 -07:00
|
|
|
'members/(?P<id>[1-9]\d*)/remove/'
|
|
|
|
|
=> 'PhabricatorProjectMembersRemoveController',
|
2014-02-16 20:17:52 -08:00
|
|
|
'view/(?P<id>[1-9]\d*)/'
|
2012-08-07 11:54:49 -07:00
|
|
|
=> 'PhabricatorProjectProfileController',
|
2013-10-17 09:32:34 -07:00
|
|
|
'picture/(?P<id>[1-9]\d*)/' =>
|
2014-02-16 20:17:52 -08:00
|
|
|
'PhabricatorProjectEditPictureController',
|
2014-05-23 10:41:24 -07:00
|
|
|
'icon/(?P<id>[1-9]\d*)/' =>
|
|
|
|
|
'PhabricatorProjectEditIconController',
|
2012-08-07 11:54:49 -07:00
|
|
|
'create/' => 'PhabricatorProjectCreateController',
|
2014-05-20 11:42:05 -07:00
|
|
|
'board/(?P<id>[1-9]\d*)/'.
|
|
|
|
|
'(?P<filter>filter/)?'.
|
|
|
|
|
'(?:query/(?P<queryKey>[^/]+)/)?' =>
|
|
|
|
|
'PhabricatorProjectBoardViewController',
|
2014-01-13 12:24:36 -08:00
|
|
|
'move/(?P<id>[1-9]\d*)/' => 'PhabricatorProjectMoveController',
|
2014-01-09 16:09:38 -08:00
|
|
|
'board/(?P<projectID>[1-9]\d*)/edit/(?:(?P<id>\d+)/)?'
|
|
|
|
|
=> 'PhabricatorProjectBoardEditController',
|
2014-03-18 10:40:31 -07:00
|
|
|
'board/(?P<projectID>[1-9]\d*)/delete/(?:(?P<id>\d+)/)?'
|
|
|
|
|
=> 'PhabricatorProjectBoardDeleteController',
|
2014-03-26 14:40:47 -07:00
|
|
|
'board/(?P<projectID>[1-9]\d*)/column/(?:(?P<id>\d+)/)?'
|
|
|
|
|
=> 'PhabricatorProjectColumnDetailController',
|
2012-10-05 16:06:16 -07:00
|
|
|
'update/(?P<id>[1-9]\d*)/(?P<action>[^/]+)/'
|
2012-08-07 11:54:49 -07:00
|
|
|
=> 'PhabricatorProjectUpdateController',
|
2013-10-22 13:49:37 -07:00
|
|
|
'history/(?P<id>[1-9]\d*)/' => 'PhabricatorProjectHistoryController',
|
2014-05-19 12:40:57 -07:00
|
|
|
'(?P<action>watch|unwatch)/(?P<id>[1-9]\d*)/'
|
|
|
|
|
=> 'PhabricatorProjectWatchController',
|
2014-05-22 15:16:16 -07:00
|
|
|
|
|
|
|
|
),
|
|
|
|
|
'/tag/' => array(
|
|
|
|
|
'(?P<slug>[^/]+)/' => 'PhabricatorProjectProfileController',
|
2012-08-07 11:54:49 -07:00
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2013-10-10 04:29:07 -07:00
|
|
|
protected function getCustomCapabilities() {
|
|
|
|
|
return array(
|
|
|
|
|
ProjectCapabilityCreateProjects::CAPABILITY => array(
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2012-08-07 11:54:49 -07:00
|
|
|
}
|