Differential D10172 Diff 24495 src/applications/harbormaster/controller/HarbormasterBuildActionController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/controller/HarbormasterBuildActionController.php
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | switch ($command) { | ||||
} else { | } else { | ||||
$body = pht( | $body = pht( | ||||
'You can not restart this build.'); | 'You can not restart this build.'); | ||||
} | } | ||||
} | } | ||||
break; | break; | ||||
case HarbormasterBuildCommand::COMMAND_STOP: | case HarbormasterBuildCommand::COMMAND_STOP: | ||||
if ($can_issue) { | if ($can_issue) { | ||||
$title = pht('Really stop build?'); | $title = pht('Really pause build?'); | ||||
$body = pht( | $body = pht( | ||||
'If you stop this build, work will halt once the current steps '. | 'If you pause this build, work will halt once the current steps '. | ||||
'complete. You can resume the build later.'); | 'complete. You can resume the build later.'); | ||||
$submit = pht('Stop Build'); | $submit = pht('Pause Build'); | ||||
} else { | } else { | ||||
$title = pht('Unable to Stop Build'); | $title = pht('Unable to Pause Build'); | ||||
if ($build->isComplete()) { | if ($build->isComplete()) { | ||||
$body = pht( | $body = pht( | ||||
'This build is already complete. You can not stop a completed '. | 'This build is already complete. You can not pause a completed '. | ||||
'build.'); | 'build.'); | ||||
} else if ($build->isStopped()) { | } else if ($build->isStopped()) { | ||||
$body = pht( | $body = pht( | ||||
'This build is already stopped. You can not stop a build which '. | 'This build is already paused. You can not pause a build which '. | ||||
'has already been stopped.'); | 'has already been paused.'); | ||||
} else if ($build->isStopping()) { | } else if ($build->isStopping()) { | ||||
$body = pht( | $body = pht( | ||||
'This build is already stopping. You can not reissue a stop '. | 'This build is already pausing. You can not reissue a pause '. | ||||
'command to a stopping build.'); | 'command to a pausing build.'); | ||||
} else { | } else { | ||||
$body = pht( | $body = pht( | ||||
'This build can not be stopped.'); | 'This build can not be paused.'); | ||||
} | } | ||||
} | } | ||||
break; | break; | ||||
case HarbormasterBuildCommand::COMMAND_RESUME: | case HarbormasterBuildCommand::COMMAND_RESUME: | ||||
if ($can_issue) { | if ($can_issue) { | ||||
$title = pht('Really resume build?'); | $title = pht('Really resume build?'); | ||||
$body = pht( | $body = pht( | ||||
'Work will continue on the build. Really resume?'); | 'Work will continue on the build. Really resume?'); | ||||
Show All 30 Lines |