mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 00:02:41 +01:00
ba81aa1dfe
Summary: Ref T3623. These are obsoleted by the global quick-create menu, so we can simplify the app launcher. Test Plan: Looked at app launcher, grepped for everything. Reviewers: chad Reviewed By: chad CC: chad, aran Maniphest Tasks: T3623 Differential Revision: https://secure.phabricator.com/D8104
66 lines
1.6 KiB
PHP
66 lines
1.6 KiB
PHP
<?php
|
|
|
|
final class PhabricatorApplicationCalendar extends PhabricatorApplication {
|
|
|
|
public function getShortDescription() {
|
|
return pht('Dates and Stuff');
|
|
}
|
|
|
|
public function getFlavorText() {
|
|
return pht('Never miss an episode ever again.');
|
|
}
|
|
|
|
public function getBaseURI() {
|
|
return '/calendar/';
|
|
}
|
|
|
|
public function getIconName() {
|
|
return 'calendar';
|
|
}
|
|
|
|
public function getTitleGlyph() {
|
|
// Unicode has a calendar character but it's in some distant code plane,
|
|
// use "keyboard" since it looks vaguely similar.
|
|
return "\xE2\x8C\xA8";
|
|
}
|
|
|
|
public function getApplicationGroup() {
|
|
return self::GROUP_COMMUNICATION;
|
|
}
|
|
|
|
public function isBeta() {
|
|
return true;
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/calendar/' => array(
|
|
'' => 'PhabricatorCalendarBrowseController',
|
|
'status/' => array(
|
|
'' => 'PhabricatorCalendarViewStatusController',
|
|
'create/' =>
|
|
'PhabricatorCalendarEditStatusController',
|
|
'delete/(?P<id>[1-9]\d*)/' =>
|
|
'PhabricatorCalendarDeleteStatusController',
|
|
'edit/(?P<id>[1-9]\d*)/' =>
|
|
'PhabricatorCalendarEditStatusController',
|
|
'view/(?P<phid>[^/]+)/' =>
|
|
'PhabricatorCalendarViewStatusController',
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
public function getQuickCreateItems(PhabricatorUser $viewer) {
|
|
$items = array();
|
|
|
|
$item = id(new PHUIListItemView())
|
|
->setName(pht('Calendar Event'))
|
|
->setIcon('new')
|
|
->setHref($this->getBaseURI().'status/create/');
|
|
$items[] = $item;
|
|
|
|
return $items;
|
|
}
|
|
|
|
}
|