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:
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() {
|
public function getRoutes() {
|
||||||
return array(
|
return array(
|
||||||
|
'/E(?P<id>[1-9]\d*)' => 'PhabricatorCalendarEventViewController',
|
||||||
'/calendar/' => array(
|
'/calendar/' => array(
|
||||||
'' => 'PhabricatorCalendarViewController',
|
'' => 'PhabricatorCalendarViewController',
|
||||||
'all/' => 'PhabricatorCalendarBrowseController',
|
'all/' => 'PhabricatorCalendarBrowseController',
|
||||||
|
@ -46,8 +47,6 @@ final class PhabricatorCalendarApplication extends PhabricatorApplication {
|
||||||
=> 'PhabricatorCalendarEventEditController',
|
=> 'PhabricatorCalendarEventEditController',
|
||||||
'delete/(?P<id>[1-9]\d*)/'
|
'delete/(?P<id>[1-9]\d*)/'
|
||||||
=> 'PhabricatorCalendarEventDeleteController',
|
=> 'PhabricatorCalendarEventDeleteController',
|
||||||
'view/(?P<id>[1-9]\d*)/'
|
|
||||||
=> 'PhabricatorCalendarEventViewController',
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -163,8 +163,7 @@ final class PhabricatorCalendarEventEditController
|
||||||
if ($this->isCreate()) {
|
if ($this->isCreate()) {
|
||||||
$submit->addCancelButton($this->getApplicationURI());
|
$submit->addCancelButton($this->getApplicationURI());
|
||||||
} else {
|
} else {
|
||||||
$submit->addCancelButton(
|
$submit->addCancelButton('/E'.$status->getID());
|
||||||
$this->getApplicationURI('event/view/'.$status->getID().'/'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request->isAjax()) {
|
if ($request->isAjax()) {
|
||||||
|
|
|
@ -117,7 +117,7 @@ final class PHUICalendarListView extends AphrontTagView {
|
||||||
array(
|
array(
|
||||||
'sigil' => 'has-tooltip',
|
'sigil' => 'has-tooltip',
|
||||||
'class' => 'phui-calendar-item-link',
|
'class' => 'phui-calendar-item-link',
|
||||||
'href' => '/calendar/event/view/'.$event->getEventID().'/',
|
'href' => '/E'.$event->getEventID(),
|
||||||
'meta' => array(
|
'meta' => array(
|
||||||
'tip' => $tip,
|
'tip' => $tip,
|
||||||
'size' => 200,
|
'size' => 200,
|
||||||
|
|
Loading…
Reference in a new issue