open-nomad/ui/app/templates/components/job-page/parts/task-groups.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

27 lines
976 B
Handlebars

<div class="boxed-section">
<div class="boxed-section-head">
Task Groups
</div>
<div class="boxed-section-body is-full-bleed">
<ListTable
@source={{sortedTaskGroups}}
@sortProperty={{sortProperty}}
@sortDescending={{sortDescending}} as |t|>
<t.head>
<t.sort-by @prop="name">Name</t.sort-by>
<t.sort-by @prop="count">Count</t.sort-by>
<t.sort-by @prop="queuedOrStartingAllocs" @class="is-3">Allocation Status</t.sort-by>
<t.sort-by @prop="volumes.length">Volume</t.sort-by>
<t.sort-by @prop="reservedCPU">Reserved CPU</t.sort-by>
<t.sort-by @prop="reservedMemory">Reserved Memory</t.sort-by>
<t.sort-by @prop="reservedEphemeralDisk">Reserved Disk</t.sort-by>
</t.head>
<t.body as |row|>
<TaskGroupRow data-test-task-group
@taskGroup={{row.model}}
@onClick={{action gotoTaskGroup row.model}} />
</t.body>
</ListTable>
</div>
</div>