2013-12-26 21:30:36 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
abstract class DrydockLogController
|
|
|
|
extends DrydockController {
|
|
|
|
|
|
|
|
public function buildSideNavView() {
|
|
|
|
$nav = new AphrontSideNavFilterView();
|
|
|
|
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
|
|
|
|
|
|
|
id(new DrydockLogSearchEngine())
|
|
|
|
->setViewer($this->getRequest()->getUser())
|
|
|
|
->addNavigationItems($nav->getMenu());
|
|
|
|
|
|
|
|
$nav->selectFilter(null);
|
|
|
|
|
|
|
|
return $nav;
|
|
|
|
}
|
|
|
|
|
2015-01-06 21:34:58 +01:00
|
|
|
protected function buildApplicationCrumbs() {
|
2013-12-26 21:30:36 +01:00
|
|
|
$crumbs = parent::buildApplicationCrumbs();
|
|
|
|
$crumbs->addTextCrumb(
|
|
|
|
pht('Logs'),
|
|
|
|
$this->getApplicationURI('log/'));
|
|
|
|
return $crumbs;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|