Page MenuHomePhabricator

D10094.diff
No OneTemporary

D10094.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
Mon, Oct 21, 10:01 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6736301
Default Alt Text
D10094.diff (1 KB)

Event Timeline