mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00: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:
parent
221222ad7a
commit
55d315a577
2 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue