2018-04-19 17:14:59 +00:00
|
|
|
<h1 class="title">
|
|
|
|
{{or title job.name}}
|
|
|
|
<span class="bumper-left tag {{job.statusClass}}" data-test-job-status>{{job.status}}</span>
|
|
|
|
{{yield}}
|
|
|
|
{{#if (not (eq job.status "dead"))}}
|
|
|
|
{{two-step-button
|
2018-04-19 18:13:23 +00:00
|
|
|
data-test-stop
|
2018-04-19 17:14:59 +00:00
|
|
|
idleText="Stop"
|
|
|
|
cancelText="Cancel"
|
|
|
|
confirmText="Yes, Stop"
|
|
|
|
confirmationMessage="Are you sure you want to stop this job?"
|
2018-08-24 21:02:13 +00:00
|
|
|
awaitingConfirmation=stopJob.isRunning
|
2018-08-24 20:20:29 +00:00
|
|
|
onConfirm=(perform stopJob)}}
|
2018-08-24 20:17:45 +00:00
|
|
|
{{else}}
|
|
|
|
{{two-step-button
|
|
|
|
data-test-start
|
|
|
|
idleText="Start"
|
|
|
|
cancelText="Cancel"
|
|
|
|
confirmText="Yes, Start"
|
|
|
|
confirmationMessage="Are you sure you want to start this job?"
|
2018-08-24 21:02:13 +00:00
|
|
|
awaitingConfirmation=startJob.isRunning
|
2018-08-24 20:20:29 +00:00
|
|
|
onConfirm=(perform startJob)}}
|
2018-04-19 17:14:59 +00:00
|
|
|
{{/if}}
|
|
|
|
</h1>
|