github.com/manicqin/nomad@v0.9.5/ui/app/templates/components/job-page/parts/title.hbs (about)

     1  <h1 class="title">
     2    {{or title job.name}}
     3    <span class="bumper-left tag {{job.statusClass}}" data-test-job-status>{{job.status}}</span>
     4    {{yield}}
     5    {{#if (not (eq job.status "dead"))}}
     6      {{two-step-button
     7        data-test-stop
     8        idleText="Stop"
     9        cancelText="Cancel"
    10        confirmText="Yes, Stop"
    11        confirmationMessage="Are you sure you want to stop this job?"
    12        awaitingConfirmation=stopJob.isRunning
    13        onConfirm=(perform stopJob)}}
    14    {{else}}
    15      {{two-step-button
    16        data-test-start
    17        idleText="Start"
    18        cancelText="Cancel"
    19        confirmText="Yes, Start"
    20        confirmationMessage="Are you sure you want to start this job?"
    21        awaitingConfirmation=startJob.isRunning
    22        onConfirm=(perform startJob)}}
    23    {{/if}}
    24  </h1>