open-nomad/ui/app/templates/components/job-version.hbs
2018-07-11 09:49:44 -07:00

22 lines
861 B
Handlebars

<div class="boxed-section-head is-light inline-definitions">
Version #{{version.number}}
<span class="bumper-left pair is-faded">
<span class="term">Stable</span>
<span class="badge is-light is-faded" data-test-version-stability><code>{{version.stable}}</code></span>
</span>
<span class="pair is-faded">
<span class="term">Submitted</span>
<span data-test-version-submit-time class="submit-date">{{moment-format version.submitTime "MM/DD/YY HH:mm:ss"}}</span>
</span>
{{#if version.diff}}
<button class="button is-light is-compact pull-right" {{action "toggleDiff"}}>{{changeCount}} {{pluralize "Change" changeCount}}</button>
{{else}}
<span class="pull-right">No Changes</span>
{{/if}}
</div>
{{#if isOpen}}
<div class="boxed-section-body is-dark">
{{job-diff diff=version.diff verbose=verbose}}
</div>
{{/if}}