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