2998deac50
This is mostly a direct application of the ember-angle-brackets-codemod. I manually restored newlines in multi-line component invocations, usually preserving file line length except for now-non-positional link-to @route. I needed to rename task to taskState in some cases to avoid Ember Concurrency naming conflicts.
29 lines
1.2 KiB
Handlebars
29 lines
1.2 KiB
Handlebars
<div class="boxed-section-head is-light inline-definitions">
|
|
<span>{{deployment.shortId}}</span>
|
|
<span class="bumper-left tag {{deployment.statusClass}}" data-test-deployment-status="{{deployment.statusClass}}">{{deployment.status}}</span>
|
|
{{#if deployment.requiresPromotion}}
|
|
<span data-test-promotion-required class="bumper-left badge is-warning is-hollow">Requires Promotion</span>
|
|
{{/if}}
|
|
<span class="pull-right">
|
|
<span class="pair is-faded">
|
|
<span class="term">Version</span>
|
|
<span class="has-emphasis" data-test-deployment-version>#{{deployment.version.number}}</span>
|
|
<span data-test-deployment-submit-time>|
|
|
<span class="tooltip" aria-label="{{format-ts deployment.version.submitTime}}">
|
|
{{moment-from-now deployment.version.submitTime}}
|
|
</span>
|
|
</span>
|
|
</span>
|
|
<button data-test-deployment-toggle-details class="button is-light is-compact pull-right" {{action (toggle "isOpen" this)}}>details</button>
|
|
</span>
|
|
</div>
|
|
{{#if isOpen}}
|
|
<div data-test-deployment-details class="boxed-section-body">
|
|
<JobDeploymentDetails @deployment={{deployment}} as |d|>
|
|
{{d.metrics}}
|
|
{{d.taskGroups}}
|
|
{{d.allocations}}
|
|
</JobDeploymentDetails>
|
|
</div>
|
|
{{/if}}
|