Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14043410
D13846.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D13846.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
@@ -172,34 +172,26 @@
}
$details = $build_target->getDetails();
- if ($details) {
- $properties = new PHUIPropertyListView();
- foreach ($details as $key => $value) {
- $properties->addProperty($key, $value);
- }
- $target_box->addPropertyList($properties, pht('Configuration'));
+ $properties = new PHUIPropertyListView();
+ foreach ($details as $key => $value) {
+ $properties->addProperty($key, $value);
}
+ $target_box->addPropertyList($properties, pht('Configuration'));
$variables = $build_target->getVariables();
- if ($variables) {
- $properties = new PHUIPropertyListView();
- $properties->addRawContent($this->buildProperties($variables));
- $target_box->addPropertyList($properties, pht('Variables'));
- }
+ $properties = new PHUIPropertyListView();
+ $properties->addRawContent($this->buildProperties($variables));
+ $target_box->addPropertyList($properties, pht('Variables'));
$artifacts = $this->buildArtifacts($build_target);
- if ($artifacts) {
- $properties = new PHUIPropertyListView();
- $properties->addRawContent($artifacts);
- $target_box->addPropertyList($properties, pht('Artifacts'));
- }
+ $properties = new PHUIPropertyListView();
+ $properties->addRawContent($artifacts);
+ $target_box->addPropertyList($properties, pht('Artifacts'));
$build_messages = idx($messages, $build_target->getPHID(), array());
- if ($build_messages) {
- $properties = new PHUIPropertyListView();
- $properties->addRawContent($this->buildMessages($build_messages));
- $target_box->addPropertyList($properties, pht('Messages'));
- }
+ $properties = new PHUIPropertyListView();
+ $properties->addRawContent($this->buildMessages($build_messages));
+ $target_box->addPropertyList($properties, pht('Messages'));
$properties = new PHUIPropertyListView();
$properties->addProperty(
@@ -243,11 +235,8 @@
->withBuildTargetPHIDs(array($build_target->getPHID()))
->execute();
- if (count($artifacts) === 0) {
- return null;
- }
-
$list = id(new PHUIObjectItemListView())
+ ->setNoDataString(pht('This target has no associated artifacts.'))
->setFlush(true);
foreach ($artifacts as $artifact) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 13, 10:01 AM (18 h, 22 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6719529
Default Alt Text
D13846.diff (2 KB)
Attached To
Mode
D13846: Always show build target tabs, even if they have no data
Attached
Detach File
Event Timeline
Log In to Comment