Page MenuHomePhabricator

D13964.id33699.diff
No OneTemporary

D13964.id33699.diff

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

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)

Event Timeline