1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52:41 +01:00

Add "Calendar Event" and "Pholio Mock" to quick create menu

Summary: Ref T3623. Also dropped "New" from everything, since the "Create a new:" label contextualizes that.

Test Plan: Clicked all the stuff in the menu.

Reviewers: chad

Reviewed By: chad

CC: aran

Maniphest Tasks: T3623

Differential Revision: https://secure.phabricator.com/D8103
This commit is contained in:
epriestley 2014-01-29 15:41:30 -08:00
parent 22ccb037b9
commit 45ba8e1072
5 changed files with 27 additions and 3 deletions

View file

@ -55,4 +55,16 @@ final class PhabricatorApplicationCalendar extends PhabricatorApplication {
);
}
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;
}
}

View file

@ -54,7 +54,7 @@ final class PhabricatorApplicationConpherence extends PhabricatorApplication {
$items = array();
$item = id(new PHUIListItemView())
->setName(pht('New Conpherence Thread'))
->setName(pht('Conpherence Thread'))
->setIcon('new')
->setWorkflow(true)
->setHref($this->getBaseURI().'new/');

View file

@ -94,7 +94,7 @@ final class PhabricatorApplicationManiphest extends PhabricatorApplication {
$items = array();
$item = id(new PHUIListItemView())
->setName(pht('New Maniphest Task'))
->setName(pht('Maniphest Task'))
->setIcon('new')
->setHref($this->getBaseURI().'task/create/');
$items[] = $item;

View file

@ -54,7 +54,7 @@ final class PhabricatorApplicationPaste extends PhabricatorApplication {
$items = array();
$item = id(new PHUIListItemView())
->setName(pht('New Paste'))
->setName(pht('Paste'))
->setIcon('new')
->setHref($this->getBaseURI().'create/');
$items[] = $item;

View file

@ -70,4 +70,16 @@ final class PhabricatorApplicationPholio extends PhabricatorApplication {
);
}
public function getQuickCreateItems(PhabricatorUser $viewer) {
$items = array();
$item = id(new PHUIListItemView())
->setName(pht('Pholio Mock'))
->setIcon('new')
->setHref($this->getBaseURI().'new/');
$items[] = $item;
return $items;
}
}