Page MenuHomePhabricator

D13053.diff
No OneTemporary

D13053.diff

diff --git a/src/applications/drydock/controller/DrydockConsoleController.php b/src/applications/drydock/controller/DrydockConsoleController.php
--- a/src/applications/drydock/controller/DrydockConsoleController.php
+++ b/src/applications/drydock/controller/DrydockConsoleController.php
@@ -61,10 +61,14 @@
$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'),
diff --git a/src/applications/drydock/view/DrydockLeaseListView.php b/src/applications/drydock/view/DrydockLeaseListView.php
--- a/src/applications/drydock/view/DrydockLeaseListView.php
+++ b/src/applications/drydock/view/DrydockLeaseListView.php
@@ -42,9 +42,9 @@
$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);
diff --git a/src/applications/drydock/view/DrydockLogListView.php b/src/applications/drydock/view/DrydockLogListView.php
--- a/src/applications/drydock/view/DrydockLogListView.php
+++ b/src/applications/drydock/view/DrydockLogListView.php
@@ -43,16 +43,16 @@
$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(
diff --git a/src/applications/drydock/view/DrydockResourceListView.php b/src/applications/drydock/view/DrydockResourceListView.php
--- a/src/applications/drydock/view/DrydockResourceListView.php
+++ b/src/applications/drydock/view/DrydockResourceListView.php
@@ -27,16 +27,16 @@
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;
}

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 22, 10:55 AM (18 h, 58 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6918129
Default Alt Text
D13053.diff (2 KB)

Event Timeline