3 final class PhabricatorDashboardConsoleController
4 extends PhabricatorDashboardController
{
6 public function shouldAllowPublic() {
10 public function handleRequest(AphrontRequest
$request) {
11 $viewer = $request->getViewer();
13 $menu = id(new PHUIObjectItemListView())
18 id(new PHUIObjectItemView())
19 ->setHeader(pht('Portals'))
20 ->setImageIcon('fa-compass')
25 'Portals are collections of dashboards, links, and other '.
26 'resources that can provide a high-level overview of a '.
30 id(new PHUIObjectItemView())
31 ->setHeader(pht('Dashboards'))
32 ->setImageIcon('fa-dashboard')
33 ->setHref($this->getApplicationURI('/'))
37 'Dashboards organize panels, creating a cohesive page for '.
38 'analysis or action.')));
41 id(new PHUIObjectItemView())
42 ->setHeader(pht('Panels'))
43 ->setImageIcon('fa-line-chart')
44 ->setHref($this->getApplicationURI('panel/'))
48 'Panels show queries, charts, and other information to provide '.
49 'insight on a particular topic.')));
51 $crumbs = $this->buildApplicationCrumbs();
52 $crumbs->addTextCrumb(pht('Console'));
53 $crumbs->setBorder(true);
55 $title = pht('Dashboard Console');
57 $box = id(new PHUIObjectBoxView())
58 ->setHeaderText($title)
59 ->setBackground(PHUIObjectBoxView
::WHITE_CONFIG
)
60 ->setObjectList($menu);
62 $launch_view = id(new PHUILauncherView())
65 $view = id(new PHUITwoColumnView())
66 ->setFooter($launch_view);
68 return $this->newPage()