Allow projects to be filtered by icon and color

Summary: Ref T5819. Implements basic icon and color filtering for projects.

Test Plan: {F189350}

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T5819

Differential Revision: https://secure.phabricator.com/D10230
This commit is contained in:
epriestley
2014-08-12 08:04:38 -07:00
parent 9309723ac4
commit 94389fcd9f
6 changed files with 120 additions and 14 deletions

View File

@@ -144,11 +144,7 @@ final class PhabricatorProjectEditDetailsController
->setError($e_name));
$field_list->appendFieldsToForm($form);
$shades = PHUITagView::getShadeMap();
$shades = array_select_keys(
$shades,
array(PhabricatorProject::DEFAULT_COLOR)) + $shades;
unset($shades[PHUITagView::COLOR_DISABLED]);
$shades = PhabricatorProjectIcon::getColorMap();
$icon_uri = $this->getApplicationURI('icon/'.$project->getID().'/');
$icon_display = PhabricatorProjectIcon::renderIconForChooser($v_icon);