Differential D15392 Diff 37115 src/applications/drydock/controller/DrydockBlueprintViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/controller/DrydockBlueprintViewController.php
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | $view->addAction( | ||||
->setDisabled(!$can_edit)); | ->setDisabled(!$can_edit)); | ||||
return $view; | return $view; | ||||
} | } | ||||
private function buildPropertyListView( | private function buildPropertyListView( | ||||
DrydockBlueprint $blueprint, | DrydockBlueprint $blueprint, | ||||
PhabricatorActionListView $actions) { | PhabricatorActionListView $actions) { | ||||
$viewer = $this->getViewer(); | |||||
$view = id(new PHUIPropertyListView()) | |||||
->setUser($viewer) | |||||
->setObject($blueprint); | |||||
$view = new PHUIPropertyListView(); | |||||
$view->setActionList($actions); | $view->setActionList($actions); | ||||
$view->addProperty( | $view->addProperty( | ||||
pht('Type'), | pht('Type'), | ||||
$blueprint->getImplementation()->getBlueprintName()); | $blueprint->getImplementation()->getBlueprintName()); | ||||
return $view; | return $view; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |