1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 09:20:58 +01:00

Revising Flag UI

Summary:
Re-adding side nav (feels less spacy now).

Replaced header with crumb. Looks nicer with the filter imo.

Test Plan: {F38201}

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5517
This commit is contained in:
Anh Nhan Nguyen 2013-04-01 06:28:38 -07:00 committed by epriestley
parent 6e197fe91c
commit cdcd49e4ee

View file

@ -7,6 +7,16 @@ final class PhabricatorFlagListController extends PhabricatorFlagController {
$user = $request->getUser();
$nav = new AphrontSideNavFilterView();
$nav->setBaseURI(new PhutilURI('/flag/view/'));
$nav->addLabel(pht('Flags'));
$nav->addFilter('all', pht('Your Flags'));
$nav->selectFilter('all', 'all');
$crumbs = $this->buildApplicationCrumbs();
$crumbs->addCrumb(id(new PhabricatorCrumbView)
->setName(pht('Flags'))
->setHref($request->getRequestURI()));
$nav->setCrumbs($crumbs);
$filter_form = new AphrontFormView();
$filter_form->setUser($user);
@ -26,6 +36,7 @@ final class PhabricatorFlagListController extends PhabricatorFlagController {
$filter = new AphrontListFilterView();
$filter->appendChild($filter_form);
$nav->appendChild($filter);
$query = new PhabricatorFlagQuery();
$query->withOwnerPHIDs(array($user->getPHID()));
@ -56,11 +67,6 @@ final class PhabricatorFlagListController extends PhabricatorFlagController {
$view->setFlags($flags);
$view->setUser($user);
$header = new PhabricatorHeaderView();
$header->setHeader(pht('Flags'));
$nav->appendChild($header);
$nav->appendChild($filter);
$nav->appendChild($view);
return $this->buildApplicationPage(