mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
[Redesign] Update Drydock UI
Summary: Ref T8099, Updates Drydock with new StatusIcon over barColor. Making a guess on best icons, feel free to change. Test Plan: Review Drydock UI in sandbox. Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T8341, T8099 Differential Revision: https://secure.phabricator.com/D13053
This commit is contained in:
parent
e81ec738f3
commit
cf34185f2e
4 changed files with 18 additions and 14 deletions
|
@ -61,10 +61,14 @@ final class DrydockConsoleController extends DrydockController {
|
|||
$crumbs = $this->buildApplicationCrumbs();
|
||||
$crumbs->addTextCrumb(pht('Console'));
|
||||
|
||||
$box = id(new PHUIObjectBoxView())
|
||||
->setHeaderText(pht('Drydock Console'))
|
||||
->setObjectList($menu);
|
||||
|
||||
return $this->buildApplicationPage(
|
||||
array(
|
||||
$crumbs,
|
||||
$menu,
|
||||
$box,
|
||||
),
|
||||
array(
|
||||
'title' => pht('Drydock Console'),
|
||||
|
|
|
@ -42,9 +42,9 @@ final class DrydockLeaseListView extends AphrontView {
|
|||
$item->setEpoch($lease->getDateCreated());
|
||||
|
||||
if ($lease->isActive()) {
|
||||
$item->setBarColor('green');
|
||||
$item->setStatusIcon('fa-dot-circle green');
|
||||
} else {
|
||||
$item->setBarColor('red');
|
||||
$item->setStatusIcon('fa-dot-circle red');
|
||||
}
|
||||
|
||||
$view->addItem($item);
|
||||
|
|
|
@ -43,16 +43,16 @@ final class DrydockLogListView extends AphrontView {
|
|||
$table->setDeviceReadyTable(true);
|
||||
$table->setHeaders(
|
||||
array(
|
||||
'Resource',
|
||||
'Lease',
|
||||
'Message',
|
||||
'Date',
|
||||
pht('Resource'),
|
||||
pht('Lease'),
|
||||
pht('Message'),
|
||||
pht('Date'),
|
||||
));
|
||||
$table->setShortHeaders(
|
||||
array(
|
||||
'R',
|
||||
'L',
|
||||
'Message',
|
||||
pht('R'),
|
||||
pht('L'),
|
||||
pht('Message'),
|
||||
'',
|
||||
));
|
||||
$table->setColumnClasses(
|
||||
|
|
|
@ -27,16 +27,16 @@ final class DrydockResourceListView extends AphrontView {
|
|||
|
||||
switch ($resource->getStatus()) {
|
||||
case DrydockResourceStatus::STATUS_PENDING:
|
||||
$item->setBarColor('yellow');
|
||||
$item->setStatusIcon('fa-dot-circle yellow');
|
||||
break;
|
||||
case DrydockResourceStatus::STATUS_OPEN:
|
||||
$item->setBarColor('green');
|
||||
$item->setStatusIcon('fa-dot-circle green');
|
||||
break;
|
||||
case DrydockResourceStatus::STATUS_DESTROYED:
|
||||
$item->setBarColor('black');
|
||||
$item->setStatusIcon('fa-times-circle black');
|
||||
break;
|
||||
default:
|
||||
$item->setBarColor('red');
|
||||
$item->setStatusIcon('fa-dot-circle red');
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue