Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/view/DiffusionCommitGraphView.php
Show First 20 Lines • Show All 479 Lines • ▼ Show 20 Lines | final class DiffusionCommitGraphView | ||||
} | } | ||||
private function addBuildAction(PHUIObjectItemView $item, $hash) { | private function addBuildAction(PHUIObjectItemView $item, $hash) { | ||||
$is_disabled = true; | $is_disabled = true; | ||||
$buildable = null; | $buildable = null; | ||||
$commit = $this->getCommit($hash); | $commit = $this->getCommit($hash); | ||||
if (!$commit) { | if ($commit) { | ||||
$buildable = $this->getBuildable($commit); | $buildable = $this->getBuildable($commit); | ||||
} | } | ||||
if ($buildable) { | if ($buildable) { | ||||
$icon = $buildable->getStatusIcon(); | $icon = $buildable->getStatusIcon(); | ||||
$color = $buildable->getStatusColor(); | $color = $buildable->getStatusColor(); | ||||
$name = $buildable->getStatusDisplayName(); | $name = $buildable->getStatusDisplayName(); | ||||
$uri = $buildable->getURI(); | $uri = $buildable->getURI(); | ||||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |