Differential D20358 Diff 48609 src/applications/project/menuitem/PhabricatorProjectPointsProfileMenuItem.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/menuitem/PhabricatorProjectPointsProfileMenuItem.php
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | return array( | ||||
->setValue( | ->setValue( | ||||
pht( | pht( | ||||
'This is a progress bar which shows how many points of work '. | 'This is a progress bar which shows how many points of work '. | ||||
'are complete within the milestone. It has no configurable '. | 'are complete within the milestone. It has no configurable '. | ||||
'settings.')), | 'settings.')), | ||||
); | ); | ||||
} | } | ||||
protected function newNavigationMenuItems( | protected function newMenuItemViewList( | ||||
PhabricatorProfileMenuItemConfiguration $config) { | PhabricatorProfileMenuItemConfiguration $config) { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$project = $config->getProfileObject(); | $project = $config->getProfileObject(); | ||||
$limit = 250; | $limit = 250; | ||||
$tasks = id(new ManiphestTaskQuery()) | $tasks = id(new ManiphestTaskQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
▲ Show 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | protected function newMenuItemViewList( | ||||
$bar = phutil_tag( | $bar = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'phui-profile-segment-bar', | 'class' => 'phui-profile-segment-bar', | ||||
), | ), | ||||
$bar); | $bar); | ||||
$item = $this->newItem() | $item = $this->newItemView() | ||||
->appendChild($bar); | ->newProgressBar($bar); | ||||
return array( | return array( | ||||
$item, | $item, | ||||
); | ); | ||||
} | } | ||||
} | } |