From 55d315a577025deb510d36baa3f4b8316f760471 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 19 Mar 2014 19:27:37 -0700 Subject: [PATCH] Show project profile images in project list view Summary: Ref T4400. Adds project images to spice this UI up a bit. Test Plan: Looked at list. Reviewers: chad, btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T4400 Differential Revision: https://secure.phabricator.com/D8570 --- .../project/controller/PhabricatorProjectListController.php | 4 ++-- .../project/query/PhabricatorProjectSearchEngine.php | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/applications/project/controller/PhabricatorProjectListController.php b/src/applications/project/controller/PhabricatorProjectListController.php index 743375c4a7..018e581b9a 100644 --- a/src/applications/project/controller/PhabricatorProjectListController.php +++ b/src/applications/project/controller/PhabricatorProjectListController.php @@ -37,14 +37,14 @@ final class PhabricatorProjectListController $item = id(new PHUIObjectItemView()) ->setHeader($project->getName()) - ->setHref($this->getApplicationURI("view/{$id}/")); + ->setHref($this->getApplicationURI("view/{$id}/")) + ->setImageURI($project->getProfileImageURI()); if ($project->getStatus() == PhabricatorProjectStatus::STATUS_ARCHIVED) { $item->addIcon('delete-grey', pht('Archived')); $item->setDisabled(true); } - $list->addItem($item); } diff --git a/src/applications/project/query/PhabricatorProjectSearchEngine.php b/src/applications/project/query/PhabricatorProjectSearchEngine.php index 8d485b2931..3f3e146611 100644 --- a/src/applications/project/query/PhabricatorProjectSearchEngine.php +++ b/src/applications/project/query/PhabricatorProjectSearchEngine.php @@ -21,7 +21,8 @@ final class PhabricatorProjectSearchEngine } public function buildQueryFromSavedQuery(PhabricatorSavedQuery $saved) { - $query = id(new PhabricatorProjectQuery()); + $query = id(new PhabricatorProjectQuery()) + ->needImages(true); $member_phids = $saved->getParameter('memberPHIDs', array()); if ($member_phids && is_array($member_phids)) {