github.com/hernad/nomad@v1.6.112/ui/app/templates/components/job-version.hbs (about)

     1  {{!
     2    Copyright (c) HashiCorp, Inc.
     3    SPDX-License-Identifier: MPL-2.0
     4  ~}}
     5  
     6  <div class="boxed-section-head is-light inline-definitions">
     7    Version #{{this.version.number}}
     8    <span class="bumper-left pair is-faded">
     9      <span class="term">Stable</span>
    10      <span class="badge is-light is-faded" data-test-version-stability><code>{{this.version.stable}}</code></span>
    11    </span>
    12    <span class="pair is-faded">
    13      <span class="term">Submitted</span>
    14      <span data-test-version-submit-time class="submit-date">{{format-ts this.version.submitTime}}</span>
    15    </span>
    16    <div class="pull-right">
    17      {{#unless this.isCurrent}}
    18        {{#if (can "run job" namespace=this.version.job.namespace)}}
    19          <TwoStepButton
    20            data-test-revert-to
    21            @classes={{hash
    22              idleButton="is-warning is-outlined"
    23              confirmButton="is-warning"}}
    24            @alignRight={{true}}
    25            @idleText="Revert Version"
    26            @cancelText="Cancel"
    27            @confirmText="Yes, Revert Version"
    28            @confirmationMessage="Are you sure you want to revert to this version?"
    29            @inlineText={{true}}
    30            @fadingBackground={{true}}
    31            @awaitingConfirmation={{this.revertTo.isRunning}}
    32            @onConfirm={{perform this.revertTo}} />
    33        {{else}}
    34          <button
    35            data-test-revert-to
    36            type="button"
    37            class="button is-warning is-outlined is-small tooltip"
    38            disabled
    39            aria-label="You don’t have permission to revert"
    40          >
    41            Revert
    42          </button>
    43        {{/if}}
    44      {{/unless}}
    45  
    46      {{#if this.version.diff}}
    47        <button class="button is-light is-small is-fixed-width" {{action "toggleDiff"}} type="button">{{this.changeCount}} {{pluralize "Change" this.changeCount}}</button>
    48      {{else}}
    49        <div class="is-fixed-width is-size-7 has-text-centered">No Changes</div>
    50      {{/if}}
    51    </div>
    52  </div>
    53  {{#if this.isOpen}}
    54    <div class="boxed-section-body is-dark">
    55      <JobDiff @diff={{this.version.diff}} @verbose={{this.verbose}} />
    56    </div>
    57  {{/if}}