mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 20:40:56 +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,9 +1013,16 @@ abstract class HeraldAdapter {
|
|||
$target = array($target);
|
||||
}
|
||||
foreach ($target as $index => $val) {
|
||||
$handle = idx($handles, $val);
|
||||
if ($handle) {
|
||||
$target[$index] = $handle->renderLink();
|
||||
switch ($action->getAction()) {
|
||||
case self::ACTION_FLAG:
|
||||
$target[$index] = PhabricatorFlagColor::getColorName($val);
|
||||
break;
|
||||
default:
|
||||
$handle = idx($handles, $val);
|
||||
if ($handle) {
|
||||
$target[$index] = $handle->renderLink();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
$target = phutil_implode_html(', ', $target);
|
||||
|
|
Loading…
Reference in a new issue