Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14017409
D13964.id33699.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
977 B
Referenced Files
None
Subscribers
None
D13964.id33699.diff
View Options
diff --git a/src/applications/project/controller/PhabricatorProjectController.php b/src/applications/project/controller/PhabricatorProjectController.php
--- a/src/applications/project/controller/PhabricatorProjectController.php
+++ b/src/applications/project/controller/PhabricatorProjectController.php
@@ -81,6 +81,17 @@
$nav->addIcon(null, pht('Open Tasks'), 'fa-anchor', null, $query_uri);
}
+ $class = 'PhabricatorCalendarApplication';
+ if (PhabricatorApplication::isClassInstalledForViewer($class, $viewer)) {
+ $phid = $project->getPHID();
+
+ $query_uri = urisprintf(
+ '/calendar/?isCancelled=active&projects=%s#R',
+ $phid);
+
+ $nav->addIcon('calendar', pht('Calendar'), 'fa-calendar', null, $query_uri);
+ }
+
$nav->addIcon("feed/{$id}/", pht('Feed'), 'fa-newspaper-o');
$nav->addIcon("members/{$id}/", pht('Members'), 'fa-group');
$nav->addIcon("details/{$id}/", pht('Edit Details'), 'fa-pencil');
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 5, 5:10 PM (2 d, 23 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6744868
Default Alt Text
D13964.id33699.diff (977 B)
Attached To
Mode
D13964: Add calendar icon to project navigation view side bar
Attached
Detach File
Event Timeline
Log In to Comment