Differential D15770 Diff 37997 src/applications/calendar/controller/PhabricatorCalendarEventViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/controller/PhabricatorCalendarEventViewController.php
Show First 20 Lines • Show All 213 Lines • ▼ Show 20 Lines | if ($event->getIsGhostEvent()) { | ||||
$cancel_disabled = (!$can_edit || $can_reinstate); | $cancel_disabled = (!$can_edit || $can_reinstate); | ||||
$cancel_uri = $this->getApplicationURI("event/cancel/{$id}/{$index}/"); | $cancel_uri = $this->getApplicationURI("event/cancel/{$id}/{$index}/"); | ||||
} else if ($event->getIsRecurrenceException()) { | } else if ($event->getIsRecurrenceException()) { | ||||
$can_reinstate = $event->getIsParentCancelled(); | $can_reinstate = $event->getIsParentCancelled(); | ||||
$cancel_label = pht('Cancel This Instance'); | $cancel_label = pht('Cancel This Instance'); | ||||
$reinstate_label = pht('Reinstate This Instance'); | $reinstate_label = pht('Reinstate This Instance'); | ||||
$cancel_disabled = (!$can_edit || $can_reinstate); | $cancel_disabled = (!$can_edit || $can_reinstate); | ||||
} else if ($event->getIsRecurrenceParent()) { | } else if ($event->getIsRecurrenceParent()) { | ||||
$cancel_label = pht('Cancel Recurrence'); | $cancel_label = pht('Cancel All'); | ||||
$reinstate_label = pht('Reinstate Recurrence'); | $reinstate_label = pht('Reinstate All'); | ||||
$cancel_disabled = !$can_edit; | $cancel_disabled = !$can_edit; | ||||
} else { | } else { | ||||
$cancel_label = pht('Cancel Event'); | $cancel_label = pht('Cancel Event'); | ||||
$reinstate_label = pht('Reinstate Event'); | $reinstate_label = pht('Reinstate Event'); | ||||
$cancel_disabled = !$can_edit; | $cancel_disabled = !$can_edit; | ||||
} | } | ||||
if ($is_cancelled) { | if ($is_cancelled) { | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |