mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 14:30:56 +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:
parent
6d5c9e897d
commit
45a5ea7bf5
1 changed files with 8 additions and 0 deletions
|
@ -119,6 +119,14 @@ final class DrydockLeaseViewController extends DrydockLeaseController {
|
|||
pht('Resource Type'),
|
||||
$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();
|
||||
if ($resource_phid) {
|
||||
$resource_display = $viewer->renderHandle($resource_phid);
|
||||
|
|
Loading…
Reference in a new issue