Summary: This adds in the create flow for the Project board columns on the super secret board page which totally doesn't do anything right now. Test Plan: 1. Apply diff. 2. Go to super secret page. 3. Click link close to top with a way too long name. 4. Enter a name for the column. 5. Enjoy a new column briefly before realising you cannot remove it. 6. Stay happy! Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: tmaroschik, Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7925
66 lines
1.8 KiB
PHP
66 lines
1.8 KiB
PHP
<?php
|
|
|
|
final class PhabricatorApplicationProject extends PhabricatorApplication {
|
|
|
|
public function getName() {
|
|
return pht('Projects');
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return pht('Organize Work');
|
|
}
|
|
|
|
public function getBaseURI() {
|
|
return '/project/';
|
|
}
|
|
|
|
public function getIconName() {
|
|
return 'projects';
|
|
}
|
|
|
|
public function getFlavorText() {
|
|
return pht('Group stuff into big piles.');
|
|
}
|
|
|
|
public function getApplicationGroup() {
|
|
return self::GROUP_ORGANIZATION;
|
|
}
|
|
|
|
public function getRemarkupRules() {
|
|
return array(
|
|
new ProjectRemarkupRule(),
|
|
);
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/project/' => array(
|
|
'(?:query/(?P<queryKey>[^/]+)/)?' => 'PhabricatorProjectListController',
|
|
'filter/(?P<filter>[^/]+)/' => 'PhabricatorProjectListController',
|
|
'edit/(?P<id>[1-9]\d*)/' => 'PhabricatorProjectProfileEditController',
|
|
'members/(?P<id>[1-9]\d*)/'
|
|
=> 'PhabricatorProjectMembersEditController',
|
|
'view/(?P<id>[1-9]\d*)/(?:(?P<page>\w+)/)?'
|
|
=> 'PhabricatorProjectProfileController',
|
|
'picture/(?P<id>[1-9]\d*)/' =>
|
|
'PhabricatorProjectProfilePictureController',
|
|
'create/' => 'PhabricatorProjectCreateController',
|
|
'board/(?P<id>[1-9]\d*)/' => 'PhabricatorProjectBoardController',
|
|
'board/(?P<projectID>[1-9]\d*)/edit/(?:(?P<id>\d+)/)?'
|
|
=> 'PhabricatorProjectBoardEditController',
|
|
'update/(?P<id>[1-9]\d*)/(?P<action>[^/]+)/'
|
|
=> 'PhabricatorProjectUpdateController',
|
|
'history/(?P<id>[1-9]\d*)/' => 'PhabricatorProjectHistoryController',
|
|
),
|
|
);
|
|
}
|
|
|
|
protected function getCustomCapabilities() {
|
|
return array(
|
|
ProjectCapabilityCreateProjects::CAPABILITY => array(
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|