mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-14 10:52:41 +01:00
e7f8e79742
Summary: Ref T6822. Test Plan: Visual inspection. These methods are only called from within `PhabricatorController` subclasses. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6822 Differential Revision: https://secure.phabricator.com/D11241
27 lines
626 B
PHP
27 lines
626 B
PHP
<?php
|
|
|
|
abstract class DrydockLeaseController
|
|
extends DrydockController {
|
|
|
|
public function buildSideNavView() {
|
|
$nav = new AphrontSideNavFilterView();
|
|
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
|
|
|
id(new DrydockLeaseSearchEngine())
|
|
->setViewer($this->getRequest()->getUser())
|
|
->addNavigationItems($nav->getMenu());
|
|
|
|
$nav->selectFilter(null);
|
|
|
|
return $nav;
|
|
}
|
|
|
|
protected function buildApplicationCrumbs() {
|
|
$crumbs = parent::buildApplicationCrumbs();
|
|
$crumbs->addTextCrumb(
|
|
pht('Leases'),
|
|
$this->getApplicationURI('lease/'));
|
|
return $crumbs;
|
|
}
|
|
|
|
}
|