diff --git a/src/applications/drydock/controller/DrydockLeaseViewController.php b/src/applications/drydock/controller/DrydockLeaseViewController.php index fa8e38dde1..3e7364180c 100644 --- a/src/applications/drydock/controller/DrydockLeaseViewController.php +++ b/src/applications/drydock/controller/DrydockLeaseViewController.php @@ -101,6 +101,16 @@ final class DrydockLeaseViewController extends DrydockController { pht('Resource'), phutil_escape_html($lease->getResourceID())); + $attributes = $lease->getAttributes(); + if ($attributes) { + $view->addSectionHeader(pht('Attributes')); + foreach ($attributes as $key => $value) { + $view->addProperty( + phutil_escape_html($key), + phutil_escape_html($value)); + } + } + return $view; } diff --git a/src/applications/drydock/controller/DrydockResourceViewController.php b/src/applications/drydock/controller/DrydockResourceViewController.php index 1004df042b..aa4005c957 100644 --- a/src/applications/drydock/controller/DrydockResourceViewController.php +++ b/src/applications/drydock/controller/DrydockResourceViewController.php @@ -93,6 +93,16 @@ final class DrydockResourceViewController extends DrydockController { pht('Resource Type'), phutil_escape_html($resource->getType())); + $attributes = $resource->getAttributes(); + if ($attributes) { + $view->addSectionHeader(pht('Attributes')); + foreach ($attributes as $key => $value) { + $view->addProperty( + phutil_escape_html($key), + phutil_escape_html($value)); + } + } + return $view; }