open-nomad/ui/app/templates/components/job-version.hbs
Alex Dadgar e5ec915ac3 sync
2017-09-19 10:08:23 -05:00

22 lines
847 B
Handlebars

<div class="boxed-section-head is-light inline-definitions">
Version #{{version.number}}
<span class="bumper-left pair is-faded version-stability">
<span class="term">Stable</span>
<span class="badge is-light is-faded"><code>{{version.stable}}</code></span>
</span>
<span class="pair is-faded version-submit-date">
<span class="term">Submitted</span>
<span class="submit-date">{{moment-format version.submitTime "MM/DD/YY HH:mm:ss [UTC]"}}</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}}