Changeset View
Changeset View
Standalone View
Standalone View
src/panel/ProjectOpenTasksProfilePanel.php
Show All 21 Lines | public function getDisplayName( | ||||
return pht('Open Tasks'); | return pht('Open Tasks'); | ||||
} | } | ||||
protected function newNavigationMenuItems( | protected function newNavigationMenuItems( | ||||
PhabricatorProfilePanelConfiguration $config) { | PhabricatorProfilePanelConfiguration $config) { | ||||
$object = $config->getProfileObject(); | $object = $config->getProfileObject(); | ||||
$href = '/maniphest/?project='.$object->getPHID().'#R'; | $href = '/maniphest/?project='.$object->getPHID().'&statuses=open()#R'; | ||||
$item = $this->newItem() | $item = $this->newItem() | ||||
->setHref($href) | ->setHref($href) | ||||
->setName($this->getDisplayName($config)) | ->setName($this->getDisplayName($config)) | ||||
->setIcon('fa-anchor'); | ->setIcon('fa-anchor'); | ||||
return array( | return array( | ||||
$item, | $item, | ||||
); | ); | ||||
} | } | ||||
} | } |
Content licensed under Creative Commons Attribution-ShareAlike 3.0 (CC-BY-SA) unless otherwise noted; code licensed under GNU General Public License (GPL) or other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL