private function buildPropertyList(HarbormasterBuild $build) { $viewer = $this->getViewer(); $properties = id(new PHUIPropertyListView())->setUser($viewer); $handles = id(new PhabricatorHandleQuery())->setViewer($viewer)->withPHIDs(array($build->getBuildablePHID(), $build->getBuildPlanPHID()))->execute(); $properties->addProperty(pht('Buildable'), $handles[$build->getBuildablePHID()]->renderLink()); $properties->addProperty(pht('Build Plan'), $handles[$build->getBuildPlanPHID()]->renderLink()); $properties->addProperty(pht('Restarts'), $build->getBuildGeneration()); $properties->addProperty(pht('Status'), $this->getStatus($build)); return id(new PHUIObjectBoxView())->setHeaderText(pht('Properties'))->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)->appendChild($properties); }