1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 00:32:42 +01:00

Normalize Calendar sidebar

Summary: Removes unneeded filters. Also - how do I get it to highlight the firs nav item? I assumed '' would match.

Test Plan: Review calendar app

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4547
This commit is contained in:
Chad Little 2013-01-21 10:39:30 -08:00
parent be1ee3c530
commit 7137492e4a
3 changed files with 5 additions and 7 deletions

View file

@ -51,11 +51,11 @@ final class PhabricatorCalendarBrowseController
} }
$nav = $this->buildSideNavView(); $nav = $this->buildSideNavView();
$nav->selectFilter('edit'); $nav->selectFilter('/');
$nav->appendChild( $nav->appendChild(
array( array(
$this->getNoticeView(), $this->getNoticeView(),
'<div style="padding: 2em;">', '<div style="padding: 20px;">',
$month_view, $month_view,
'</div>', '</div>',
)); ));

View file

@ -7,12 +7,10 @@ abstract class PhabricatorCalendarController extends PhabricatorController {
$nav = new AphrontSideNavFilterView(); $nav = new AphrontSideNavFilterView();
$nav->setBaseURI(new PhutilURI($this->getApplicationURI())); $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
$nav->addFilter('', pht('Calendar'), $this->getApplicationURI()); $nav->addLabel(pht('Calendar'));
$nav->addFilter('/', pht('View All'));
$nav->addLabel(pht('Create Events'));
$nav->addFilter('status/create/', pht('New Status')); $nav->addFilter('status/create/', pht('New Status'));
$nav->addLabel(pht('Your Events'));
if ($status && $status->getID()) { if ($status && $status->getID()) {
$nav->addFilter('status/edit/'.$status->getID().'/', pht('Edit Status')); $nav->addFilter('status/edit/'.$status->getID().'/', pht('Edit Status'));
} }

View file

@ -125,7 +125,7 @@ final class PhabricatorCalendarEditStatusController
} else { } else {
$submit->addCancelButton( $submit->addCancelButton(
$this->getApplicationURI('status/delete/'.$status->getID().'/'), $this->getApplicationURI('status/delete/'.$status->getID().'/'),
'Delete Status' pht('Delete Status')
); );
} }
$form->appendChild($submit); $form->appendChild($submit);