Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14028850
D10094.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10094.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 4:46 PM (20 h, 54 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6736301
Default Alt Text
D10094.diff (1 KB)
Attached To
Mode
D10094: Show status icon on build view
Attached
Detach File
Event Timeline
Log In to Comment