1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-04-02 07:28:17 +02:00
phorge-phorge/src/applications/phrequent/controller/PhrequentController.php
Gareth Evans eaa4362979 Updates to phrequent's landing page
Summary:
https://secure.phabricator.com/D5554#comment-4

Implemented the changes outlined above.

Test Plan: Go to the page, click the new nav links, try the user filter

Reviewers: epriestley, hach-que

CC: hach-que, aran, Korvin

Differential Revision: https://secure.phabricator.com/D5789
2013-04-29 12:01:02 -07:00

20 lines
577 B
PHP

<?php
abstract class PhrequentController extends PhabricatorController {
protected function buildNav($view) {
$nav = new AphrontSideNavFilterView();
$nav->setBaseURI(new PhutilURI('/phrequent/view/'));
$nav->addLabel(pht('User Times'));
$nav->addFilter('current', pht('Currently Tracking'));
$nav->addFilter('recent', pht('Recent Activity'));
$nav->addLabel('All Times');
$nav->addFilter('allcurrent', pht('Currently Tracking'));
$nav->addFilter('allrecent', pht('Recent Activity'));
$nav->selectFilter($view);
return $nav;
}
}