3 final class AlmanacConsoleController
extends AlmanacController
{
5 public function shouldAllowPublic() {
9 public function handleRequest(AphrontRequest
$request) {
10 $viewer = $request->getViewer();
12 $menu = id(new PHUIObjectItemListView())
17 id(new PHUIObjectItemView())
18 ->setHeader(pht('Devices'))
19 ->setHref($this->getApplicationURI('device/'))
20 ->setImageIcon('fa-server')
24 'Create an inventory of physical and virtual hosts and '.
28 id(new PHUIObjectItemView())
29 ->setHeader(pht('Services'))
30 ->setHref($this->getApplicationURI('service/'))
31 ->setImageIcon('fa-plug')
35 'Create and update services, and map them to interfaces on '.
39 id(new PHUIObjectItemView())
40 ->setHeader(pht('Networks'))
41 ->setHref($this->getApplicationURI('network/'))
42 ->setImageIcon('fa-globe')
46 'Manage public and private networks.')));
49 id(new PHUIObjectItemView())
50 ->setHeader(pht('Namespaces'))
51 ->setHref($this->getApplicationURI('namespace/'))
52 ->setImageIcon('fa-asterisk')
55 pht('Control who can create new named services and devices.')));
57 $docs_uri = PhabricatorEnv
::getDoclink(
58 'Almanac User Guide');
61 id(new PHUIObjectItemView())
62 ->setHeader(pht('Documentation'))
64 ->setImageIcon('fa-book')
66 ->addAttribute(pht('Browse documentation for Almanac.')));
68 $crumbs = $this->buildApplicationCrumbs();
69 $crumbs->addTextCrumb(pht('Console'));
70 $crumbs->setBorder(true);
72 $box = id(new PHUIObjectBoxView())
73 ->setHeaderText(pht('Almanac Console'))
74 ->setBackground(PHUIObjectBoxView
::WHITE_CONFIG
)
75 ->setObjectList($menu);
77 $launcher_view = id(new PHUILauncherView())
80 $view = id(new PHUITwoColumnView())
81 ->setFooter($launcher_view);
83 return $this->newPage()
84 ->setTitle(pht('Almanac Console'))