From c44858f11b2e51049363470c7efd86e67538f79b Mon Sep 17 00:00:00 2001 From: Chad Little Date: Wed, 14 Jan 2015 11:17:22 -0800 Subject: [PATCH] Add back edit project link on profile page Summary: We still seem to reach for this, though may be time to remove Wiki? Test Plan: view link Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11393 --- .../controller/PhabricatorProjectProfileController.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/applications/project/controller/PhabricatorProjectProfileController.php b/src/applications/project/controller/PhabricatorProjectProfileController.php index 7dae2e9fe1..3e5fe19fac 100644 --- a/src/applications/project/controller/PhabricatorProjectProfileController.php +++ b/src/applications/project/controller/PhabricatorProjectProfileController.php @@ -157,6 +157,13 @@ final class PhabricatorProjectProfileController $project, PhabricatorPolicyCapability::CAN_EDIT); + $view->addAction( + id(new PhabricatorActionView()) + ->setName(pht('Edit Project')) + ->setIcon('fa-pencil') + ->setHref($this->getApplicationURI("edit/{$id}/"))); + + $action = null; if (!$project->isUserMember($viewer->getPHID())) { $can_join = PhabricatorPolicyFilter::hasCapability(