mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-04 11:51:02 +01:00
Minor Token updates.
Summary: Add mobile menu, dust Test Plan: test mobile, click menu Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5417
This commit is contained in:
parent
4ffc2a1d00
commit
84c3f5475b
2 changed files with 11 additions and 0 deletions
|
@ -7,10 +7,20 @@ abstract class PhabricatorTokenController extends PhabricatorController {
|
||||||
$nav = new AphrontSideNavFilterView();
|
$nav = new AphrontSideNavFilterView();
|
||||||
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
||||||
|
|
||||||
|
$nav->addLabel(pht('Tokens'));
|
||||||
$nav->addFilter('given/', pht('Tokens Given'));
|
$nav->addFilter('given/', pht('Tokens Given'));
|
||||||
$nav->addFilter('leaders/', pht('Leader Board'));
|
$nav->addFilter('leaders/', pht('Leader Board'));
|
||||||
|
|
||||||
return $nav;
|
return $nav;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function buildApplicationMenu() {
|
||||||
|
return $this->buildSideNav()->getMenu();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function buildApplicationCrumbs() {
|
||||||
|
$crumbs = parent::buildApplicationCrumbs();
|
||||||
|
return $crumbs;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,6 +72,7 @@ final class PhabricatorTokenGivenController extends PhabricatorTokenController {
|
||||||
array(
|
array(
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'device' => true,
|
'device' => true,
|
||||||
|
'dust' => true,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue