1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Show lease owner in Drydock UI

Summary: Replaces D13687. Leases track an owner but don't currently show it.

Test Plan:
Looked at a lease.

{F851223}

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D14191
This commit is contained in:
epriestley 2015-09-29 09:51:06 -07:00
parent 6d5c9e897d
commit 45a5ea7bf5

View file

@ -119,6 +119,14 @@ final class DrydockLeaseViewController extends DrydockLeaseController {
pht('Resource Type'), pht('Resource Type'),
$lease->getResourceType()); $lease->getResourceType());
$owner_phid = $lease->getOwnerPHID();
if ($owner_phid) {
$owner_display = $viewer->renderHandle($owner_phid);
} else {
$owner_display = phutil_tag('em', array(), pht('No Owner'));
}
$view->addProperty(pht('Owner'), $owner_display);
$resource_phid = $lease->getResourcePHID(); $resource_phid = $lease->getResourcePHID();
if ($resource_phid) { if ($resource_phid) {
$resource_display = $viewer->renderHandle($resource_phid); $resource_display = $viewer->renderHandle($resource_phid);