mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-28 17:52:43 +01:00
28 lines
615 B
PHP
28 lines
615 B
PHP
|
<?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;
|
||
|
}
|
||
|
|
||
|
public function buildApplicationCrumbs() {
|
||
|
$crumbs = parent::buildApplicationCrumbs();
|
||
|
$crumbs->addTextCrumb(
|
||
|
pht('Logs'),
|
||
|
$this->getApplicationURI('log/'));
|
||
|
return $crumbs;
|
||
|
}
|
||
|
|
||
|
}
|