Differential D10585 Diff 25583 src/applications/harbormaster/controller/HarbormasterBuildViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/controller/HarbormasterBuildViewController.php
Show First 20 Lines • Show All 293 Lines • ▼ Show 20 Lines | foreach ($logs as $log) { | ||||
->setHeader($header) | ->setHeader($header) | ||||
->setForm($log_view); | ->setForm($log_view); | ||||
if ($is_empty) { | if ($is_empty) { | ||||
$log_box = phutil_tag( | $log_box = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'style' => 'display: none', | 'style' => 'display: none', | ||||
'id' => $id), | 'id' => $id, | ||||
), | |||||
$log_box); | $log_box); | ||||
} | } | ||||
$log_boxes[] = $log_box; | $log_boxes[] = $log_box; | ||||
} | } | ||||
if ($empty_logs) { | if ($empty_logs) { | ||||
$hide_id = celerity_generate_unique_node_id(); | $hide_id = celerity_generate_unique_node_id(); | ||||
▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | return phutil_tag( | ||||
array( | array( | ||||
$link_25, | $link_25, | ||||
' - ', | ' - ', | ||||
$link_50, | $link_50, | ||||
' - ', | ' - ', | ||||
$link_100, | $link_100, | ||||
' - ', | ' - ', | ||||
$link_0, | $link_0, | ||||
' Lines')); | ' Lines', | ||||
)); | |||||
} | } | ||||
private function buildActionList(HarbormasterBuild $build) { | private function buildActionList(HarbormasterBuild $build) { | ||||
$request = $this->getRequest(); | $request = $this->getRequest(); | ||||
$viewer = $request->getUser(); | $viewer = $request->getUser(); | ||||
$id = $build->getID(); | $id = $build->getID(); | ||||
$list = id(new PhabricatorActionListView()) | $list = id(new PhabricatorActionListView()) | ||||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | $properties = id(new PHUIPropertyListView()) | ||||
->setObject($build) | ->setObject($build) | ||||
->setActionList($actions); | ->setActionList($actions); | ||||
$box->addPropertyList($properties); | $box->addPropertyList($properties); | ||||
$handles = id(new PhabricatorHandleQuery()) | $handles = id(new PhabricatorHandleQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withPHIDs(array( | ->withPHIDs(array( | ||||
$build->getBuildablePHID(), | $build->getBuildablePHID(), | ||||
$build->getBuildPlanPHID())) | $build->getBuildPlanPHID(), | ||||
)) | |||||
->execute(); | ->execute(); | ||||
$properties->addProperty( | $properties->addProperty( | ||||
pht('Buildable'), | pht('Buildable'), | ||||
$handles[$build->getBuildablePHID()]->renderLink()); | $handles[$build->getBuildablePHID()]->renderLink()); | ||||
$properties->addProperty( | $properties->addProperty( | ||||
pht('Build Plan'), | pht('Build Plan'), | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |