Differential D14717 Diff 35594 src/applications/maniphest/application/PhabricatorManiphestApplication.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/application/PhabricatorManiphestApplication.php
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | public function getRemarkupRules() { | ||||
); | ); | ||||
} | } | ||||
public function getRoutes() { | public function getRoutes() { | ||||
return array( | return array( | ||||
'/T(?P<id>[1-9]\d*)' => 'ManiphestTaskDetailController', | '/T(?P<id>[1-9]\d*)' => 'ManiphestTaskDetailController', | ||||
'/maniphest/' => array( | '/maniphest/' => array( | ||||
'(?:query/(?P<queryKey>[^/]+)/)?' => 'ManiphestTaskListController', | '(?:query/(?P<queryKey>[^/]+)/)?' => 'ManiphestTaskListController', | ||||
$this->getEditRoutePattern('edit/') | |||||
=> 'ManiphestTaskEditController', | |||||
'report/(?:(?P<view>\w+)/)?' => 'ManiphestReportController', | 'report/(?:(?P<view>\w+)/)?' => 'ManiphestReportController', | ||||
'batch/' => 'ManiphestBatchEditController', | 'batch/' => 'ManiphestBatchEditController', | ||||
'task/' => array( | 'task/' => array( | ||||
'descriptionpreview/' | 'descriptionpreview/' | ||||
=> 'PhabricatorMarkupPreviewController', | => 'PhabricatorMarkupPreviewController', | ||||
), | ), | ||||
'transaction/' => array( | 'transaction/' => array( | ||||
'save/' => 'ManiphestTransactionSaveController', | 'save/' => 'ManiphestTransactionSaveController', | ||||
'preview/(?P<id>[1-9]\d*)/' | 'preview/(?P<id>[1-9]\d*)/' | ||||
=> 'ManiphestTransactionPreviewController', | => 'ManiphestTransactionPreviewController', | ||||
), | ), | ||||
'export/(?P<key>[^/]+)/' => 'ManiphestExportController', | 'export/(?P<key>[^/]+)/' => 'ManiphestExportController', | ||||
'subpriority/' => 'ManiphestSubpriorityController', | 'subpriority/' => 'ManiphestSubpriorityController', | ||||
$this->getEditRoutePattern('editpro/') | |||||
=> 'ManiphestTaskEditProController', | |||||
), | ), | ||||
); | ); | ||||
} | } | ||||
public function loadStatus(PhabricatorUser $user) { | public function loadStatus(PhabricatorUser $user) { | ||||
$status = array(); | $status = array(); | ||||
if (!$user->isLoggedIn()) { | if (!$user->isLoggedIn()) { | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |