2020-03-24 23:22:16 +00:00
|
|
|
<h1 class="title with-flex">
|
2021-09-07 16:27:33 +00:00
|
|
|
<div data-test-job-name>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{or this.title this.job.name}}
|
2021-10-12 20:36:10 +00:00
|
|
|
{{#if @job.meta.structured.pack}}
|
|
|
|
<span data-test-pack-tag class="tag is-hollow">
|
|
|
|
{{x-icon "box" class= "test"}}
|
|
|
|
<span>Pack</span>
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
2020-07-09 20:19:07 +00:00
|
|
|
<span class="bumper-left tag {{this.job.statusClass}}" data-test-job-status>{{this.job.status}}</span>
|
2020-07-22 16:30:58 +00:00
|
|
|
{{yield}}
|
2020-03-24 23:22:16 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if (not (eq this.job.status "dead"))}}
|
2020-03-31 18:11:26 +00:00
|
|
|
<div class="two-step-button">
|
2020-07-09 20:19:07 +00:00
|
|
|
<Exec::OpenButton @job={{this.job}} />
|
2020-03-31 18:11:26 +00:00
|
|
|
</div>
|
2020-06-01 19:03:56 +00:00
|
|
|
<TwoStepButton
|
2020-03-24 23:22:16 +00:00
|
|
|
data-test-stop
|
2020-06-01 19:03:56 +00:00
|
|
|
@alignRight={{true}}
|
|
|
|
@idleText="Stop"
|
|
|
|
@cancelText="Cancel"
|
|
|
|
@confirmText="Yes, Stop"
|
|
|
|
@confirmationMessage="Are you sure you want to stop this job?"
|
2020-07-09 20:19:07 +00:00
|
|
|
@awaitingConfirmation={{this.stopJob.isRunning}}
|
|
|
|
@onConfirm={{perform this.stopJob}} />
|
2020-03-24 23:22:16 +00:00
|
|
|
{{else}}
|
2020-06-01 19:03:56 +00:00
|
|
|
<TwoStepButton
|
2020-03-24 23:22:16 +00:00
|
|
|
data-test-start
|
2020-06-01 19:03:56 +00:00
|
|
|
@alignRight={{true}}
|
|
|
|
@idleText="Start"
|
|
|
|
@cancelText="Cancel"
|
|
|
|
@confirmText="Yes, Start"
|
|
|
|
@confirmationMessage="Are you sure you want to start this job?"
|
2020-07-09 20:19:07 +00:00
|
|
|
@awaitingConfirmation={{this.startJob.isRunning}}
|
|
|
|
@onConfirm={{perform this.startJob}} />
|
2020-03-24 23:22:16 +00:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2018-04-19 17:14:59 +00:00
|
|
|
</h1>
|