Differential D21699 Diff 51675 src/applications/harbormaster/controller/HarbormasterBuildableActionController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/controller/HarbormasterBuildableActionController.php
Show All 37 Lines | public function handleRequest(AphrontRequest $request) { | ||||
$rows = array(); | $rows = array(); | ||||
$builds = $buildable->getBuilds(); | $builds = $buildable->getBuilds(); | ||||
foreach ($builds as $key => $build) { | foreach ($builds as $key => $build) { | ||||
$exception = null; | $exception = null; | ||||
try { | try { | ||||
$message->assertCanSendMessage($viewer, $build); | $message->assertCanSendMessage($viewer, $build); | ||||
$can_send[$key] = $build; | $can_send[$key] = $build; | ||||
} catch (HarbormasterRestartException $ex) { | } catch (HarbormasterMessageException $ex) { | ||||
$exception = $ex; | $exception = $ex; | ||||
} | } | ||||
if (!$exception) { | if (!$exception) { | ||||
$icon_icon = $message->getIcon(); | $icon_icon = $message->getIcon(); | ||||
$icon_color = 'green'; | $icon_color = 'green'; | ||||
$title = $message->getHarbormasterBuildMessageName(); | $title = $message->getHarbormasterBuildMessageName(); | ||||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |