mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
Add headericons a little more consistently
Summary: I kinda like these to differentiate the headers and different object types. Somethings duplicitive, but helps orient the clean header a bit. Test Plan: Review each in sandbox. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D15394
This commit is contained in:
parent
ac72927832
commit
ba5b32f5bb
3 changed files with 5 additions and 2 deletions
|
@ -46,7 +46,8 @@ final class PhabricatorCountdownViewController
|
||||||
->setHeader($title)
|
->setHeader($title)
|
||||||
->setUser($viewer)
|
->setUser($viewer)
|
||||||
->setPolicyObject($countdown)
|
->setPolicyObject($countdown)
|
||||||
->setStatus($icon, $color, $status);
|
->setStatus($icon, $color, $status)
|
||||||
|
->setHeaderIcon('fa-rocket');
|
||||||
|
|
||||||
$actions = $this->buildActionListView($countdown);
|
$actions = $this->buildActionListView($countdown);
|
||||||
$properties = $this->buildPropertyListView($countdown);
|
$properties = $this->buildPropertyListView($countdown);
|
||||||
|
|
|
@ -31,6 +31,7 @@ final class PonderQuestionViewController extends PonderController {
|
||||||
$header->setHeader($question->getTitle());
|
$header->setHeader($question->getTitle());
|
||||||
$header->setUser($viewer);
|
$header->setUser($viewer);
|
||||||
$header->setPolicyObject($question);
|
$header->setPolicyObject($question);
|
||||||
|
$header->setHeaderIcon('fa-university');
|
||||||
|
|
||||||
if ($question->getStatus() == PonderQuestionStatus::STATUS_OPEN) {
|
if ($question->getStatus() == PonderQuestionStatus::STATUS_OPEN) {
|
||||||
$header->setStatus('fa-square-o', 'bluegrey', pht('Open'));
|
$header->setStatus('fa-square-o', 'bluegrey', pht('Open'));
|
||||||
|
|
|
@ -43,7 +43,8 @@ final class PhabricatorSlowvotePollController
|
||||||
->setHeader($poll->getQuestion())
|
->setHeader($poll->getQuestion())
|
||||||
->setUser($viewer)
|
->setUser($viewer)
|
||||||
->setStatus($header_icon, $header_color, $header_name)
|
->setStatus($header_icon, $header_color, $header_name)
|
||||||
->setPolicyObject($poll);
|
->setPolicyObject($poll)
|
||||||
|
->setHeaderIcon('fa-bar-chart');
|
||||||
|
|
||||||
$actions = $this->buildActionView($poll);
|
$actions = $this->buildActionView($poll);
|
||||||
$properties = $this->buildPropertyView($poll);
|
$properties = $this->buildPropertyView($poll);
|
||||||
|
|
Loading…
Reference in a new issue