github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/app/templates/components/job-page/parts/title.hbs (about) 1 <h1 class="title with-flex"> 2 <div data-test-job-name> 3 {{or this.title this.job.name}} 4 {{#if @job.meta.structured.pack}} 5 <span data-test-pack-tag class="tag is-hollow"> 6 {{x-icon "box" class= "test"}} 7 <span>Pack</span> 8 </span> 9 {{/if}} 10 <span class="bumper-left tag {{this.job.statusClass}}" data-test-job-status>{{this.job.status}}</span> 11 {{yield}} 12 </div> 13 <div> 14 {{#if (not (eq this.job.status "dead"))}} 15 <div class="two-step-button"> 16 <Exec::OpenButton @job={{this.job}} /> 17 </div> 18 <TwoStepButton 19 data-test-stop 20 @alignRight={{true}} 21 @idleText="Stop Job" 22 @cancelText="Cancel" 23 @confirmText="Yes, Stop Job" 24 @confirmationMessage="Are you sure you want to stop this job?" 25 @awaitingConfirmation={{this.stopJob.isRunning}} 26 @onConfirm={{perform this.stopJob}} /> 27 {{else}} 28 <TwoStepButton 29 data-test-purge 30 @alignRight={{true}} 31 @idleText="Purge Job" 32 @cancelText="Cancel" 33 @confirmText="Yes, Purge Job" 34 @confirmationMessage="Are you sure? You cannot undo this action." 35 @awaitingConfirmation={{this.purgeJob.isRunning}} 36 @onConfirm={{perform this.purgeJob}} /> 37 <TwoStepButton 38 data-test-start 39 @alignRight={{true}} 40 @idleText="Start Job" 41 @cancelText="Cancel" 42 @confirmText="Yes, Start Job" 43 @confirmationMessage="Are you sure you want to start this job?" 44 @awaitingConfirmation={{this.startJob.isRunning}} 45 @onConfirm={{perform this.startJob}} /> 46 {{/if}} 47 </div> 48 </h1>