Differential D12638 Diff 30344 src/applications/calendar/controller/PhabricatorCalendarController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/controller/PhabricatorCalendarController.php
<?php | <?php | ||||
abstract class PhabricatorCalendarController extends PhabricatorController { | abstract class PhabricatorCalendarController extends PhabricatorController { | ||||
protected function buildSideNavView(PhabricatorCalendarEvent $status = null) { | protected function buildSideNavView(PhabricatorCalendarEvent $status = null) { | ||||
$nav = new AphrontSideNavFilterView(); | $nav = new AphrontSideNavFilterView(); | ||||
$nav->setBaseURI(new PhutilURI($this->getApplicationURI())); | $nav->setBaseURI(new PhutilURI($this->getApplicationURI())); | ||||
$nav->addLabel(pht('Calendar')); | $nav->addLabel(pht('Calendar')); | ||||
$nav->addFilter('/', pht('My Events')); | $nav->addFilter('/', pht('My Events')); | ||||
$nav->addFilter('all/', pht('View All')); | $nav->addFilter('all/', pht('View All')); | ||||
$nav->addFilter('event/create/', pht('Create Event')); | |||||
if ($status && $status->getID()) { | if ($status && $status->getID()) { | ||||
$nav->addFilter('event/edit/'.$status->getID().'/', pht('Edit Event')); | $nav->addFilter('event/edit/'.$status->getID().'/', pht('Edit Event')); | ||||
} | } | ||||
$nav->addFilter('event/', pht('Upcoming Events')); | $nav->addFilter('event/', pht('Upcoming Events')); | ||||
return $nav; | return $nav; | ||||
} | } | ||||
Show All 18 Lines |