1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +01:00

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
This commit is contained in:
epriestley 2014-03-19 19:27:37 -07:00
parent 221222ad7a
commit 55d315a577
2 changed files with 4 additions and 3 deletions

View file

@ -37,14 +37,14 @@ final class PhabricatorProjectListController
$item = id(new PHUIObjectItemView()) $item = id(new PHUIObjectItemView())
->setHeader($project->getName()) ->setHeader($project->getName())
->setHref($this->getApplicationURI("view/{$id}/")); ->setHref($this->getApplicationURI("view/{$id}/"))
->setImageURI($project->getProfileImageURI());
if ($project->getStatus() == PhabricatorProjectStatus::STATUS_ARCHIVED) { if ($project->getStatus() == PhabricatorProjectStatus::STATUS_ARCHIVED) {
$item->addIcon('delete-grey', pht('Archived')); $item->addIcon('delete-grey', pht('Archived'));
$item->setDisabled(true); $item->setDisabled(true);
} }
$list->addItem($item); $list->addItem($item);
} }

View file

@ -21,7 +21,8 @@ final class PhabricatorProjectSearchEngine
} }
public function buildQueryFromSavedQuery(PhabricatorSavedQuery $saved) { public function buildQueryFromSavedQuery(PhabricatorSavedQuery $saved) {
$query = id(new PhabricatorProjectQuery()); $query = id(new PhabricatorProjectQuery())
->needImages(true);
$member_phids = $saved->getParameter('memberPHIDs', array()); $member_phids = $saved->getParameter('memberPHIDs', array());
if ($member_phids && is_array($member_phids)) { if ($member_phids && is_array($member_phids)) {