From b34f6e2fb0d89466be95927eabe7e5d0fa590e48 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 26 Jan 2015 12:44:09 -0800 Subject: [PATCH] Remove extra links in ProjectListItems Summary: With the new magic controller switcher, these links are needed. Test Plan: Look at list of Projects Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11510 --- .../query/PhabricatorProjectSearchEngine.php | 35 +------------------ 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/src/applications/project/query/PhabricatorProjectSearchEngine.php b/src/applications/project/query/PhabricatorProjectSearchEngine.php index f9d0964eda..28013ec4dc 100644 --- a/src/applications/project/query/PhabricatorProjectSearchEngine.php +++ b/src/applications/project/query/PhabricatorProjectSearchEngine.php @@ -219,36 +219,6 @@ final class PhabricatorProjectSearchEngine foreach ($projects as $key => $project) { $id = $project->getID(); - $profile_uri = $this->getApplicationURI("profile/{$id}/"); - $workboards_uri = $this->getApplicationURI("board/{$id}/"); - $members_uri = $this->getApplicationURI("members/{$id}/"); - $profile_url = phutil_tag( - 'a', - array( - 'href' => $profile_uri, - ), - pht('Profile')); - $workboards_url = phutil_tag( - 'a', - array( - 'href' => $workboards_uri, - ), - pht('Workboard')); - - $members_class = null; - $members_sigil = null; - if (!isset($can_edit_projects[$key])) { - $members_class = 'disabled'; - $members_sigil = 'workflow'; - } - $members_url = javelin_tag( - 'a', - array( - 'href' => $members_uri, - 'class' => $members_class, - 'sigil' => $members_sigil, - ), - pht('Members')); $tag_list = id(new PHUIHandleTagListView()) ->setSlim(true) @@ -258,10 +228,7 @@ final class PhabricatorProjectSearchEngine ->setHeader($project->getName()) ->setHref($this->getApplicationURI("view/{$id}/")) ->setImageURI($project->getProfileImageURI()) - ->addAttribute($tag_list) - ->addAttribute($profile_url) - ->addAttribute($workboards_url) - ->addAttribute($members_url); + ->addAttribute($tag_list); if ($project->getStatus() == PhabricatorProjectStatus::STATUS_ARCHIVED) { $item->addIcon('delete-grey', pht('Archived'));