mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 04:20:55 +01:00
Fix header icons in Pholio
Summary: Uses FontAwesome Test Plan: Open/Close a Pholio Mock in my sandbox. Reviewers: lpriestley, epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9220
This commit is contained in:
parent
f9f4fe67fb
commit
c7380b6023
1 changed files with 5 additions and 3 deletions
|
@ -68,17 +68,19 @@ final class PholioMockViewController extends PholioController {
|
||||||
$title = $mock->getName();
|
$title = $mock->getName();
|
||||||
|
|
||||||
if ($mock->isClosed()) {
|
if ($mock->isClosed()) {
|
||||||
$header_icon = 'oh-closed';
|
$header_icon = 'fa-ban';
|
||||||
$header_name = pht('Closed');
|
$header_name = pht('Closed');
|
||||||
|
$header_color = 'dark';
|
||||||
} else {
|
} else {
|
||||||
$header_icon = 'open';
|
$header_icon = 'fa-square-o';
|
||||||
$header_name = pht('Open');
|
$header_name = pht('Open');
|
||||||
|
$header_color = 'bluegrey';
|
||||||
}
|
}
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
->setHeader($title)
|
->setHeader($title)
|
||||||
->setUser($user)
|
->setUser($user)
|
||||||
->setStatus($header_icon, '', $header_name)
|
->setStatus($header_icon, $header_color, $header_name)
|
||||||
->setPolicyObject($mock);
|
->setPolicyObject($mock);
|
||||||
|
|
||||||
$actions = $this->buildActionView($mock);
|
$actions = $this->buildActionView($mock);
|
||||||
|
|
Loading…
Reference in a new issue