Page MenuHomePhabricator

D10094.id.diff
No OneTemporary

D10094.id.diff

diff --git a/src/applications/harbormaster/controller/HarbormasterBuildViewController.php b/src/applications/harbormaster/controller/HarbormasterBuildViewController.php
--- a/src/applications/harbormaster/controller/HarbormasterBuildViewController.php
+++ b/src/applications/harbormaster/controller/HarbormasterBuildViewController.php
@@ -353,11 +353,27 @@
}
private function getStatus(HarbormasterBuild $build) {
+ $status_view = new PHUIStatusListView();
+
+ $item = new PHUIStatusItemView();
+
if ($build->isStopping()) {
- return pht('Stopping');
+ $status_name = pht('Stopping');
+ $icon = PHUIStatusItemView::ICON_RIGHT;
+ $color = 'dark';
+ } else {
+ $status = $build->getBuildStatus();
+ $status_name =
+ HarbormasterBuild::getBuildStatusName($status);
+ $icon = HarbormasterBuild::getBuildStatusIcon($status);
+ $color = HarbormasterBuild::getBuildStatusColor($status);
}
- return HarbormasterBuild::getBuildStatusName($build->getBuildStatus());
+ $item->setTarget($status_name);
+ $item->setIcon($icon, $color);
+ $status_view->addItem($item);
+
+ return $status_view;
}
private function buildMessages(array $messages) {

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 22, 11:30 PM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6736301
Default Alt Text
D10094.id.diff (1 KB)

Event Timeline