mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Calendar event monograms, part 1. Event default URL should be install/E{id} instead of install/calendar/view/{id}
Summary: Ref T7928, Calendar event monograms, part 1. Default event URL should be install/E{id} Test Plan: Create calendar event, event should open with install/E{id} URL. Edit event and cancel edit, URL should remain install/E{id}. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Maniphest Tasks: T7928 Differential Revision: https://secure.phabricator.com/D12578
This commit is contained in:
parent
fad75f939d
commit
7a9c1ea0b4
3 changed files with 3 additions and 5 deletions
|
@ -34,6 +34,7 @@ final class PhabricatorCalendarApplication extends PhabricatorApplication {
|
|||
|
||||
public function getRoutes() {
|
||||
return array(
|
||||
'/E(?P<id>[1-9]\d*)' => 'PhabricatorCalendarEventViewController',
|
||||
'/calendar/' => array(
|
||||
'' => 'PhabricatorCalendarViewController',
|
||||
'all/' => 'PhabricatorCalendarBrowseController',
|
||||
|
@ -46,8 +47,6 @@ final class PhabricatorCalendarApplication extends PhabricatorApplication {
|
|||
=> 'PhabricatorCalendarEventEditController',
|
||||
'delete/(?P<id>[1-9]\d*)/'
|
||||
=> 'PhabricatorCalendarEventDeleteController',
|
||||
'view/(?P<id>[1-9]\d*)/'
|
||||
=> 'PhabricatorCalendarEventViewController',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
|
@ -163,8 +163,7 @@ final class PhabricatorCalendarEventEditController
|
|||
if ($this->isCreate()) {
|
||||
$submit->addCancelButton($this->getApplicationURI());
|
||||
} else {
|
||||
$submit->addCancelButton(
|
||||
$this->getApplicationURI('event/view/'.$status->getID().'/'));
|
||||
$submit->addCancelButton('/E'.$status->getID());
|
||||
}
|
||||
|
||||
if ($request->isAjax()) {
|
||||
|
|
|
@ -117,7 +117,7 @@ final class PHUICalendarListView extends AphrontTagView {
|
|||
array(
|
||||
'sigil' => 'has-tooltip',
|
||||
'class' => 'phui-calendar-item-link',
|
||||
'href' => '/calendar/event/view/'.$event->getEventID().'/',
|
||||
'href' => '/E'.$event->getEventID(),
|
||||
'meta' => array(
|
||||
'tip' => $tip,
|
||||
'size' => 200,
|
||||
|
|
Loading…
Reference in a new issue