open-nomad/ui/app/templates/components/reschedule-event-row.hbs
Buck Doyle 2998deac50
Convert to angle bracket invocation (#8075)
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.
2020-06-01 14:03:56 -05:00

47 lines
1.6 KiB
Handlebars

<li class="timeline-note">
{{#if label}}
<strong data-test-reschedule-label>{{label}}</strong>
{{/if}}
{{format-ts time}}
</li>
<li class="timeline-object" data-test-allocation={{allocation.id}}>
<div class="boxed-section">
{{#unless linkToAllocation}}
<div class="boxed-section-head" data-test-row-heading>
This Allocation
</div>
{{/unless}}
<div class="boxed-section-body inline-definitions">
<div class="columns">
<div class="column is-centered is-minimum">
<span data-test-allocation-status class="tag {{allocation.statusClass}}">
{{allocation.clientStatus}}
</span>
</div>
<div class="column">
<div class="boxed-section-row">
<span class="pair">
<span class="term">Allocation</span>
{{#if linkToAllocation}}
<LinkTo @route="allocations.allocation" @model={{allocation.id}}>
<code data-test-allocation-link>{{allocation.shortId}}</code>
</LinkTo>
{{else}}
<code data-test-allocation-link>{{allocation.shortId}}</code>
{{/if}}
</span>
<span class="pair">
<span class="term">Client</span>
<span>
<LinkTo @route="clients.client" @model={{allocation.node.id}} data-test-node-link>
<code>{{allocation.node.id}}</code>
</LinkTo>
</span>
</span>
</div>
</div>
</div>
</div>
</div>
</li>