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

Left nav should no longer offer to create Calendar event and create event page should no longer show left nav.

Summary: Closes T7934, Left nav should no longer offer to create Calendar event and create event page should no longer show left nav.

Test Plan: Open Calendar, left nav should be missing the Create Event option, create event, create view should no longer show left nav.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T7934

Differential Revision: https://secure.phabricator.com/D12638
This commit is contained in:
lkassianik 2015-04-30 16:18:15 -07:00
parent 16504ed5a7
commit 5ca0070446
2 changed files with 2 additions and 12 deletions

View file

@ -10,7 +10,6 @@ abstract class PhabricatorCalendarController extends PhabricatorController {
$nav->addLabel(pht('Calendar'));
$nav->addFilter('/', pht('My Events'));
$nav->addFilter('all/', pht('View All'));
$nav->addFilter('event/create/', pht('Create Event'));
if ($status && $status->getID()) {
$nav->addFilter('event/edit/'.$status->getID().'/', pht('Edit Event'));

View file

@ -37,7 +37,6 @@ final class PhabricatorCalendarEventEditController
$end_value = $end_time->readValueFromRequest($request);
$start_value = $start_time->readValueFromRequest($request);
$submit_label = pht('Create');
$filter = 'event/create/';
$page_title = pht('Create Event');
$redirect = 'created';
$subscribers = array();
@ -59,9 +58,7 @@ final class PhabricatorCalendarEventEditController
$end_time->setValue($event->getDateTo());
$start_time->setValue($event->getDateFrom());
$submit_label = pht('Update');
$filter = 'event/edit/'.$event->getID().'/';
$page_title = pht('Update Event');
$redirect = 'updated';
$subscribers = PhabricatorSubscribersQuery::loadSubscribersForPHID(
$event->getPHID());
@ -245,9 +242,6 @@ final class PhabricatorCalendarEventEditController
->setFormErrors($errors)
->setForm($form);
$nav = $this->buildSideNavView($event);
$nav->selectFilter($filter);
$crumbs = $this->buildApplicationCrumbs();
if (!$this->isCreate()) {
@ -261,14 +255,11 @@ final class PhabricatorCalendarEventEditController
->setValidationException($validation_exception)
->appendChild($form);
$nav->appendChild(
return $this->buildApplicationPage(
array(
$crumbs,
$object_box,
));
return $this->buildApplicationPage(
$nav,
),
array(
'title' => $page_title,
));