1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-26 07:20:57 +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->selectFilter('edit');
$nav->selectFilter('/');
$nav->appendChild(
array(
$this->getNoticeView(),
'<div style="padding: 2em;">',
'<div style="padding: 20px;">',
$month_view,
'</div>',
));

View file

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

View file

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