Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/controller/ManiphestReportController.php
Show All 29 Lines | if ($request->isFormPost()) { | ||||
return id(new AphrontRedirectResponse())->setURI($uri); | return id(new AphrontRedirectResponse())->setURI($uri); | ||||
} | } | ||||
$nav = new AphrontSideNavFilterView(); | $nav = new AphrontSideNavFilterView(); | ||||
$nav->setBaseURI(new PhutilURI('/maniphest/report/')); | $nav->setBaseURI(new PhutilURI('/maniphest/report/')); | ||||
$nav->addLabel(pht('Open Tasks')); | $nav->addLabel(pht('Open Tasks')); | ||||
$nav->addFilter('user', pht('By User')); | $nav->addFilter('user', pht('By User')); | ||||
$nav->addFilter('project', pht('By Project')); | $nav->addFilter('project', pht('By Project')); | ||||
$class = 'PhabricatorFactApplication'; | |||||
if (PhabricatorApplication::isClassInstalledForViewer($class, $viewer)) { | |||||
$nav->addLabel(pht('Burnup')); | $nav->addLabel(pht('Burnup')); | ||||
$nav->addFilter('burn', pht('Burnup Rate')); | $nav->addFilter('burn', pht('Burnup Rate')); | ||||
} | |||||
$this->view = $nav->selectFilter($this->view, 'user'); | $this->view = $nav->selectFilter($this->view, 'user'); | ||||
require_celerity_resource('maniphest-report-css'); | require_celerity_resource('maniphest-report-css'); | ||||
switch ($this->view) { | switch ($this->view) { | ||||
case 'burn': | case 'burn': | ||||
$core = $this->renderBurn(); | $core = $this->renderBurn(); | ||||
▲ Show 20 Lines • Show All 839 Lines • Show Last 20 Lines |