2013-02-15 16:47:14 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
abstract class PhabricatorTokenController extends PhabricatorController {
|
|
|
|
|
|
|
|
protected function buildSideNav() {
|
|
|
|
$nav = new AphrontSideNavFilterView();
|
|
|
|
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
|
|
|
|
2013-03-22 20:29:49 +01:00
|
|
|
$nav->addLabel(pht('Tokens'));
|
2013-02-15 16:47:14 +01:00
|
|
|
$nav->addFilter('given/', pht('Tokens Given'));
|
2013-03-22 00:04:29 +01:00
|
|
|
$nav->addFilter('leaders/', pht('Leader Board'));
|
2013-02-15 16:47:14 +01:00
|
|
|
|
|
|
|
return $nav;
|
|
|
|
}
|
|
|
|
|
2015-01-06 21:34:58 +01:00
|
|
|
protected function buildApplicationMenu() {
|
2013-03-22 20:29:49 +01:00
|
|
|
return $this->buildSideNav()->getMenu();
|
|
|
|
}
|
|
|
|
|
2015-01-06 21:34:58 +01:00
|
|
|
protected function buildApplicationCrumbs() {
|
2013-03-22 20:29:49 +01:00
|
|
|
$crumbs = parent::buildApplicationCrumbs();
|
|
|
|
return $crumbs;
|
|
|
|
}
|
|
|
|
|
2013-02-15 16:47:14 +01:00
|
|
|
}
|