2018-07-30 21:32:17 +00:00
|
|
|
{{#if job.latestDeployment}}
|
|
|
|
<div class="boxed-section {{if job.latestDeployment.isRunning "is-info"}}" data-test-active-deployment>
|
2018-01-25 17:31:48 +00:00
|
|
|
<div class="boxed-section-head">
|
|
|
|
<div class="boxed-section-row">
|
2018-07-30 21:32:17 +00:00
|
|
|
{{if job.latestDeployment.isRunning "Active" "Latest"}} Deployment
|
|
|
|
<span class="badge is-white {{if job.latestDeployment.isRunning "is-subtle"}} bumper-left" data-test-active-deployment-stat="id">{{job.latestDeployment.shortId}}</span>
|
|
|
|
{{#if job.latestDeployment.version.submitTime}}
|
|
|
|
<span class="pull-right submit-time" data-test-active-deployment-stat="submit-time">{{moment-from-now job.latestDeployment.version.submitTime}}</span>
|
2018-01-25 17:31:48 +00:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-row">
|
2018-07-30 21:32:17 +00:00
|
|
|
<span class="tag is-outlined {{job.latestDeployment.statusClass}}" data-test-deployment-status="{{job.latestDeployment.statusClass}}">
|
|
|
|
{{job.latestDeployment.status}}
|
|
|
|
</span>
|
|
|
|
{{#if job.latestDeployment.requiresPromotion}}
|
2018-08-24 22:34:07 +00:00
|
|
|
<button
|
2018-08-24 23:32:08 +00:00
|
|
|
data-test-promote-canary
|
2018-08-24 22:34:07 +00:00
|
|
|
type="button"
|
|
|
|
class="button is-warning is-small pull-right {{if promote.isRunning "is-loading"}}"
|
|
|
|
disabled={{promote.isRunning}}
|
|
|
|
onclick={{perform promote}}>Promote Canary</button>
|
2018-01-25 17:31:48 +00:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body with-foot">
|
2018-07-30 21:32:17 +00:00
|
|
|
{{#job-deployment-details deployment=job.latestDeployment as |d|}}
|
2018-01-25 17:31:48 +00:00
|
|
|
{{d.metrics}}
|
|
|
|
{{#if isShowingDeploymentDetails}}
|
2018-07-17 18:07:22 +00:00
|
|
|
{{d.taskGroups}}
|
2018-01-25 17:31:48 +00:00
|
|
|
{{d.allocations}}
|
|
|
|
{{/if}}
|
|
|
|
{{/job-deployment-details}}
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-foot">
|
|
|
|
<a class="pull-right" {{action (toggle "isShowingDeploymentDetails" this)}} data-test-deployment-toggle-details>
|
|
|
|
{{if isShowingDeploymentDetails "Hide" "Show"}} deployment task groups and allocations
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|