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

Fix app icons in homepage settings

Summary: These were blank, from last week's shenanigans.

Test Plan: View homepage settings, see icons.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D16447
This commit is contained in:
Chad Little 2016-08-25 03:06:46 +00:00 committed by chad
parent 605210bc95
commit 2c9a93eda7

View file

@ -152,20 +152,12 @@ final class PhabricatorHomePreferencesSettingsPanel
$icon = $application->getIcon(); $icon = $application->getIcon();
if (!$icon) { if (!$icon) {
$icon = 'application'; $icon = 'fa-globe';
} }
$icon_view = javelin_tag(
'span',
array(
'class' => 'phui-icon-view phui-font-fa '.$icon,
'aural' => false,
),
'');
$item = id(new PHUIObjectItemView()) $item = id(new PHUIObjectItemView())
->setHeader($application->getName()) ->setHeader($application->getName())
->setImageIcon($icon_view) ->setImageIcon($icon)
->addAttribute($application->getShortDescription()) ->addAttribute($application->getShortDescription())
->setGrippable(true); ->setGrippable(true);