github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/ui/app/templates/components/job-page/parts/title.hbs (about) 1 <h1 class="title with-flex"> 2 <div> 3 {{or this.title this.job.name}} 4 <span class="bumper-left tag {{this.job.statusClass}}" data-test-job-status>{{this.job.status}}</span> 5 {{yield}} 6 </div> 7 <div> 8 {{#if (not (eq this.job.status "dead"))}} 9 <div class="two-step-button"> 10 <Exec::OpenButton @job={{this.job}} /> 11 </div> 12 <TwoStepButton 13 data-test-stop 14 @alignRight={{true}} 15 @idleText="Stop" 16 @cancelText="Cancel" 17 @confirmText="Yes, Stop" 18 @confirmationMessage="Are you sure you want to stop this job?" 19 @awaitingConfirmation={{this.stopJob.isRunning}} 20 @onConfirm={{perform this.stopJob}} /> 21 {{else}} 22 <TwoStepButton 23 data-test-start 24 @alignRight={{true}} 25 @idleText="Start" 26 @cancelText="Cancel" 27 @confirmText="Yes, Start" 28 @confirmationMessage="Are you sure you want to start this job?" 29 @awaitingConfirmation={{this.startJob.isRunning}} 30 @onConfirm={{perform this.startJob}} /> 31 {{/if}} 32 </div> 33 </h1>