2017-10-30 20:39:15 +00:00
|
|
|
{{#global-header class="page-header"}}
|
2017-12-20 01:25:35 +00:00
|
|
|
<li><a href="#">Allocations</a></li>
|
|
|
|
<li class="is-active">
|
|
|
|
{{#link-to "allocations.allocation" model}}{{model.shortId}}{{/link-to}}
|
|
|
|
</li>
|
2017-10-30 20:39:15 +00:00
|
|
|
{{/global-header}}
|
|
|
|
{{#gutter-menu class="page-body"}}
|
|
|
|
<section class="section">
|
2017-10-30 21:16:08 +00:00
|
|
|
<h1 class="title">
|
|
|
|
Allocation {{model.name}}
|
|
|
|
<span class="bumper-left tag {{model.statusClass}}">{{model.clientStatus}}</span>
|
|
|
|
<span class="tag is-hollow is-small no-text-transform">{{model.id}}</span>
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<div class="boxed-section is-small">
|
|
|
|
<div class="boxed-section-body inline-definitions">
|
|
|
|
<span class="label">Allocation Details</span>
|
|
|
|
<span class="pair job-link"><span class="term">Job</span>
|
|
|
|
{{#link-to "jobs.job" model.job (query-params jobNamespace=model.job.namespace.id)}}{{model.job.name}}{{/link-to}}
|
|
|
|
</span>
|
|
|
|
<span class="pair node-link"><span class="term">Client</span>
|
|
|
|
{{#link-to "clients.client" model.node}}{{model.node.shortId}}{{/link-to}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-30 20:39:15 +00:00
|
|
|
|
2017-10-31 04:02:40 +00:00
|
|
|
<div class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
2017-10-30 20:39:15 +00:00
|
|
|
Tasks
|
|
|
|
</div>
|
2017-10-31 04:02:40 +00:00
|
|
|
<div class="boxed-section-body is-full-bleed">
|
|
|
|
{{#list-table
|
|
|
|
source=sortedStates
|
|
|
|
sortProperty=sortProperty
|
|
|
|
sortDescending=sortDescending
|
|
|
|
class="is-striped tasks" as |t|}}
|
|
|
|
{{#t.head}}
|
|
|
|
{{#t.sort-by prop="name"}}Name{{/t.sort-by}}
|
|
|
|
{{#t.sort-by prop="state"}}State{{/t.sort-by}}
|
|
|
|
<th>Last Event</th>
|
|
|
|
{{#t.sort-by prop="events.lastObject.time"}}Time{{/t.sort-by}}
|
|
|
|
<th>Addresses</th>
|
|
|
|
{{/t.head}}
|
|
|
|
{{#t.body as |row|}}
|
2017-10-30 20:39:15 +00:00
|
|
|
<tr>
|
2017-10-31 04:02:40 +00:00
|
|
|
<td>
|
|
|
|
{{#link-to "allocations.allocation.task" row.model.allocation row.model}}
|
|
|
|
{{row.model.task.name}}
|
|
|
|
{{/link-to}}
|
|
|
|
</td>
|
|
|
|
<td>{{row.model.state}}</td>
|
|
|
|
<td>
|
|
|
|
{{#if row.model.events.lastObject.displayMessage}}
|
|
|
|
{{row.model.events.lastObject.displayMessage}}
|
|
|
|
{{else}}
|
|
|
|
<em>No message</em>
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
2017-12-06 03:12:18 +00:00
|
|
|
<td>{{moment-format row.model.events.lastObject.time "MM/DD/YY HH:mm:ss"}}</td>
|
2017-10-31 04:02:40 +00:00
|
|
|
<td>
|
|
|
|
<ul>
|
|
|
|
{{#each row.model.resources.networks.firstObject.reservedPorts as |port|}}
|
|
|
|
<li>
|
|
|
|
<strong>{{port.Label}}:</strong>
|
|
|
|
<a href="http://{{row.model.allocation.node.address}}:{{port.Value}}" target="_blank">{{row.model.allocation.node.address}}:{{port.Value}}</a>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
{{#each row.model.resources.networks.firstObject.dynamicPorts as |port|}}
|
|
|
|
<li>
|
|
|
|
<strong>{{port.Label}}:</strong>
|
|
|
|
<a href="http://{{row.model.allocation.node.address}}:{{port.Value}}" target="_blank">{{row.model.allocation.node.address}}:{{port.Value}}</a>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
</td>
|
2017-10-30 20:39:15 +00:00
|
|
|
</tr>
|
2017-10-31 04:02:40 +00:00
|
|
|
{{/t.body}}
|
|
|
|
{{/list-table}}
|
2017-10-30 20:39:15 +00:00
|
|
|
</div>
|
2017-10-31 04:02:40 +00:00
|
|
|
</div>
|
2017-10-30 20:39:15 +00:00
|
|
|
</section>
|
|
|
|
{{/gutter-menu}}
|