1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +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:
lkassianik 2015-04-27 14:26:25 -07:00
parent fad75f939d
commit 7a9c1ea0b4
3 changed files with 3 additions and 5 deletions

View file

@ -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',
),
),
);

View file

@ -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()) {

View file

@ -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,