2017-09-19 14:47:10 +00:00
|
|
|
|
<div class="boxed-section-head is-light inline-definitions">
|
2020-07-09 20:19:07 +00:00
|
|
|
|
Version #{{this.version.number}}
|
2018-01-05 20:59:36 +00:00
|
|
|
|
<span class="bumper-left pair is-faded">
|
2017-09-19 14:47:10 +00:00
|
|
|
|
<span class="term">Stable</span>
|
2020-07-09 20:19:07 +00:00
|
|
|
|
<span class="badge is-light is-faded" data-test-version-stability><code>{{this.version.stable}}</code></span>
|
2017-09-19 14:47:10 +00:00
|
|
|
|
</span>
|
2018-01-05 20:59:36 +00:00
|
|
|
|
<span class="pair is-faded">
|
2017-09-19 14:47:10 +00:00
|
|
|
|
<span class="term">Submitted</span>
|
2020-07-09 20:19:07 +00:00
|
|
|
|
<span data-test-version-submit-time class="submit-date">{{format-ts this.version.submitTime}}</span>
|
2017-09-19 14:47:10 +00:00
|
|
|
|
</span>
|
2021-04-20 13:33:16 +00:00
|
|
|
|
<div class="pull-right">
|
|
|
|
|
{{#unless this.isCurrent}}
|
2021-07-14 20:27:24 +00:00
|
|
|
|
{{#if (can "run job" namespace=this.version.job.namespace)}}
|
2021-04-20 13:33:16 +00:00
|
|
|
|
<TwoStepButton
|
|
|
|
|
data-test-revert-to
|
|
|
|
|
@classes={{hash
|
|
|
|
|
idleButton="is-warning is-outlined"
|
|
|
|
|
confirmButton="is-warning"}}
|
|
|
|
|
@alignRight={{true}}
|
|
|
|
|
@idleText="Revert"
|
|
|
|
|
@cancelText="Cancel"
|
|
|
|
|
@confirmText="Yes, Revert"
|
|
|
|
|
@confirmationMessage="Are you sure you want to revert to this version?"
|
|
|
|
|
@inlineText={{true}}
|
|
|
|
|
@fadingBackground={{true}}
|
|
|
|
|
@awaitingConfirmation={{this.revertTo.isRunning}}
|
|
|
|
|
@onConfirm={{perform this.revertTo}} />
|
|
|
|
|
{{else}}
|
|
|
|
|
<button
|
|
|
|
|
data-test-revert-to
|
|
|
|
|
type="button"
|
|
|
|
|
class="button is-warning is-outlined is-small tooltip"
|
|
|
|
|
disabled
|
|
|
|
|
aria-label="You don’t have permission to revert"
|
|
|
|
|
>
|
|
|
|
|
Revert
|
|
|
|
|
</button>
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{/unless}}
|
|
|
|
|
|
|
|
|
|
{{#if this.version.diff}}
|
|
|
|
|
<button class="button is-light is-small is-fixed-width" {{action "toggleDiff"}} type="button">{{this.changeCount}} {{pluralize "Change" this.changeCount}}</button>
|
|
|
|
|
{{else}}
|
|
|
|
|
<div class="is-fixed-width is-size-7 has-text-centered">No Changes</div>
|
|
|
|
|
{{/if}}
|
|
|
|
|
</div>
|
2017-09-19 14:47:10 +00:00
|
|
|
|
</div>
|
2020-07-09 20:19:07 +00:00
|
|
|
|
{{#if this.isOpen}}
|
2017-09-19 14:47:10 +00:00
|
|
|
|
<div class="boxed-section-body is-dark">
|
2020-07-09 20:19:07 +00:00
|
|
|
|
<JobDiff @diff={{this.version.diff}} @verbose={{this.verbose}} />
|
2017-09-19 14:47:10 +00:00
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|