mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-02 02:40:58 +01:00
Herald - make flag color display
Summary: It used to say "Mark with flag 7" or whatever, and now it says "Mark with flag Checkered" Test Plan: noted previous rule I made was more understandable Reviewers: epriestley Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D8158
This commit is contained in:
parent
a4871d034a
commit
0cc1f50170
1 changed files with 10 additions and 3 deletions
|
@ -1013,10 +1013,17 @@ abstract class HeraldAdapter {
|
||||||
$target = array($target);
|
$target = array($target);
|
||||||
}
|
}
|
||||||
foreach ($target as $index => $val) {
|
foreach ($target as $index => $val) {
|
||||||
|
switch ($action->getAction()) {
|
||||||
|
case self::ACTION_FLAG:
|
||||||
|
$target[$index] = PhabricatorFlagColor::getColorName($val);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
$handle = idx($handles, $val);
|
$handle = idx($handles, $val);
|
||||||
if ($handle) {
|
if ($handle) {
|
||||||
$target[$index] = $handle->renderLink();
|
$target[$index] = $handle->renderLink();
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$target = phutil_implode_html(', ', $target);
|
$target = phutil_implode_html(', ', $target);
|
||||||
return $target;
|
return $target;
|
||||||
|
|
Loading…
Reference in a new issue