Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14394024
D10893.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
957 B
Referenced Files
None
Subscribers
None
D10893.diff
View Options
diff --git a/src/applications/project/application/PhabricatorProjectApplication.php b/src/applications/project/application/PhabricatorProjectApplication.php
--- a/src/applications/project/application/PhabricatorProjectApplication.php
+++ b/src/applications/project/application/PhabricatorProjectApplication.php
@@ -92,6 +92,24 @@
);
}
+ public function getQuickCreateItems(PhabricatorUser $viewer) {
+ $can_create = PhabricatorPolicyFilter::hasCapability(
+ $viewer,
+ $this,
+ ProjectCreateProjectsCapability::CAPABILITY);
+
+ $items = array();
+ if ($can_create) {
+ $item = id(new PHUIListItemView())
+ ->setName(pht('Project'))
+ ->setIcon('fa-briefcase')
+ ->setHref($this->getBaseURI().'create/');
+ $items[] = $item;
+ }
+
+ return $items;
+ }
+
protected function getCustomCapabilities() {
return array(
ProjectCreateProjectsCapability::CAPABILITY => array(),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 1:29 AM (18 h, 15 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6920111
Default Alt Text
D10893.diff (957 B)
Attached To
Mode
D10893: Add Project to quick create menu
Attached
Detach File
Event Timeline
Log In to Comment