Path: blob/master/src/applications/dashboard/controller/PhabricatorDashboardConsoleController.php
12242 views
<?php12final class PhabricatorDashboardConsoleController3extends PhabricatorDashboardController {45public function shouldAllowPublic() {6return true;7}89public function handleRequest(AphrontRequest $request) {10$viewer = $request->getViewer();1112$menu = id(new PHUIObjectItemListView())13->setUser($viewer)14->setBig(true);1516$menu->addItem(17id(new PHUIObjectItemView())18->setHeader(pht('Portals'))19->setImageIcon('fa-compass')20->setHref('/portal/')21->setClickable(true)22->addAttribute(23pht(24'Portals are collections of dashboards, links, and other '.25'resources that can provide a high-level overview of a '.26'project.')));2728$menu->addItem(29id(new PHUIObjectItemView())30->setHeader(pht('Dashboards'))31->setImageIcon('fa-dashboard')32->setHref($this->getApplicationURI('/'))33->setClickable(true)34->addAttribute(35pht(36'Dashboards organize panels, creating a cohesive page for '.37'analysis or action.')));3839$menu->addItem(40id(new PHUIObjectItemView())41->setHeader(pht('Panels'))42->setImageIcon('fa-line-chart')43->setHref($this->getApplicationURI('panel/'))44->setClickable(true)45->addAttribute(46pht(47'Panels show queries, charts, and other information to provide '.48'insight on a particular topic.')));4950$crumbs = $this->buildApplicationCrumbs();51$crumbs->addTextCrumb(pht('Console'));52$crumbs->setBorder(true);5354$title = pht('Dashboard Console');5556$box = id(new PHUIObjectBoxView())57->setHeaderText($title)58->setBackground(PHUIObjectBoxView::WHITE_CONFIG)59->setObjectList($menu);6061$launch_view = id(new PHUILauncherView())62->appendChild($box);6364$view = id(new PHUITwoColumnView())65->setFooter($launch_view);6667return $this->newPage()68->setTitle($title)69->setCrumbs($crumbs)70->appendChild($view);71}7273}747576