diff --git a/ui/app/templates/allocations.hbs b/ui/app/templates/allocations.hbs index a766b9ff6..87dfce6a7 100644 --- a/ui/app/templates/allocations.hbs +++ b/ui/app/templates/allocations.hbs @@ -1,6 +1,3 @@ -
- {{#global-header class="page-header"}} - {{app-breadcrumbs}} - {{/global-header}} +{{#page-layout}} {{outlet}} -
+{{/page-layout}} diff --git a/ui/app/templates/allocations/allocation/index.hbs b/ui/app/templates/allocations/allocation/index.hbs index 34389a657..590e3bfaf 100644 --- a/ui/app/templates/allocations/allocation/index.hbs +++ b/ui/app/templates/allocations/allocation/index.hbs @@ -1,100 +1,98 @@ -{{#gutter-menu class="page-body"}} -
-

- Allocation {{model.name}} - {{model.clientStatus}} - {{model.id}} -

+
+

+ Allocation {{model.name}} + {{model.clientStatus}} + {{model.id}} +

-
-
- Allocation Details - Job - {{#link-to "jobs.job" model.job (query-params jobNamespace=model.job.namespace.id) data-test-job-link}}{{model.job.name}}{{/link-to}} - - Client - {{#link-to "clients.client" model.node data-test-client-link}}{{model.node.shortId}}{{/link-to}} - +
+
+ Allocation Details + Job + {{#link-to "jobs.job" model.job (query-params jobNamespace=model.job.namespace.id) data-test-job-link}}{{model.job.name}}{{/link-to}} + + Client + {{#link-to "clients.client" model.node data-test-client-link}}{{model.node.shortId}}{{/link-to}} + +
+
+ +
+
+ Tasks +
+
+ {{#list-table + source=sortedStates + sortProperty=sortProperty + sortDescending=sortDescending + class="is-striped" as |t|}} + {{#t.head}} + + {{#t.sort-by prop="name"}}Name{{/t.sort-by}} + {{#t.sort-by prop="state"}}State{{/t.sort-by}} + Last Event + {{#t.sort-by prop="events.lastObject.time"}}Time{{/t.sort-by}} + Addresses + {{/t.head}} + {{#t.body as |row|}} + + + {{#if (not row.model.driverStatus.healthy)}} + + {{x-icon "warning" class="is-warning"}} + + {{/if}} + + + {{#link-to "allocations.allocation.task" row.model.allocation row.model class="is-primary"}} + {{row.model.name}} + {{/link-to}} + + {{row.model.state}} + + {{#if row.model.events.lastObject.message}} + {{row.model.events.lastObject.message}} + {{else}} + No message + {{/if}} + + {{moment-format row.model.events.lastObject.time "MM/DD/YY HH:mm:ss"}} + +
    + {{#with row.model.resources.networks.firstObject as |network|}} + {{#each network.reservedPorts as |port|}} +
  • + {{port.Label}}: + {{network.ip}}:{{port.Value}} +
  • + {{/each}} + {{#each network.dynamicPorts as |port|}} +
  • + {{port.Label}}: + {{network.ip}}:{{port.Value}} +
  • + {{/each}} + {{/with}} +
+ + + {{/t.body}} + {{/list-table}} +
+
+ + {{#if model.hasRescheduleEvents}} +
+
+ Reschedule Events +
+
+ {{reschedule-event-timeline allocation=model}}
- -
-
- Tasks -
-
- {{#list-table - source=sortedStates - sortProperty=sortProperty - sortDescending=sortDescending - class="is-striped" as |t|}} - {{#t.head}} - - {{#t.sort-by prop="name"}}Name{{/t.sort-by}} - {{#t.sort-by prop="state"}}State{{/t.sort-by}} - Last Event - {{#t.sort-by prop="events.lastObject.time"}}Time{{/t.sort-by}} - Addresses - {{/t.head}} - {{#t.body as |row|}} - - - {{#if (not row.model.driverStatus.healthy)}} - - {{x-icon "warning" class="is-warning"}} - - {{/if}} - - - {{#link-to "allocations.allocation.task" row.model.allocation row.model class="is-primary"}} - {{row.model.name}} - {{/link-to}} - - {{row.model.state}} - - {{#if row.model.events.lastObject.message}} - {{row.model.events.lastObject.message}} - {{else}} - No message - {{/if}} - - {{moment-format row.model.events.lastObject.time "MM/DD/YY HH:mm:ss"}} - -
    - {{#with row.model.resources.networks.firstObject as |network|}} - {{#each network.reservedPorts as |port|}} -
  • - {{port.Label}}: - {{network.ip}}:{{port.Value}} -
  • - {{/each}} - {{#each network.dynamicPorts as |port|}} -
  • - {{port.Label}}: - {{network.ip}}:{{port.Value}} -
  • - {{/each}} - {{/with}} -
- - - {{/t.body}} - {{/list-table}} -
-
- - {{#if model.hasRescheduleEvents}} -
-
- Reschedule Events -
-
- {{reschedule-event-timeline allocation=model}} -
-
- {{/if}} -
-{{/gutter-menu}} + {{/if}} +
diff --git a/ui/app/templates/allocations/allocation/task/index.hbs b/ui/app/templates/allocations/allocation/task/index.hbs index d24ec3819..6746fb05b 100644 --- a/ui/app/templates/allocations/allocation/task/index.hbs +++ b/ui/app/templates/allocations/allocation/task/index.hbs @@ -1,85 +1,83 @@ -{{#gutter-menu class="page-body"}} - {{partial "allocations/allocation/task/subnav"}} -
-

- {{model.name}} - {{model.state}} -

+{{partial "allocations/allocation/task/subnav"}} +
+

+ {{model.name}} + {{model.state}} +

-
-
- Task Details - - Started At - {{moment-format model.startedAt "MM/DD/YY HH:mm:ss"}} - - {{#if model.finishedAt}} - - Finished At - {{moment-format model.finishedAt "MM/DD/YY HH:mm:ss"}} - - {{/if}} +
+
+ Task Details + + Started At + {{moment-format model.startedAt "MM/DD/YY HH:mm:ss"}} + + {{#if model.finishedAt}} - Driver - {{model.task.driver}} + Finished At + {{moment-format model.finishedAt "MM/DD/YY HH:mm:ss"}} -
+ {{/if}} + + Driver + {{model.task.driver}} +
+
- {{#if ports.length}} -
-
- Addresses -
-
- {{#list-table source=ports as |t|}} - {{#t.head}} - Dynamic? - Name - Address - {{/t.head}} - {{#t.body as |row|}} - - {{if row.model.isDynamic "Yes" "No"}} - {{row.model.name}} - - - {{network.ip}}:{{row.model.port}} - - - - {{/t.body}} - {{/list-table}} -
-
- {{/if}} - -
+ {{#if ports.length}} +
- Recent Events + Addresses
- {{#list-table source=(reverse model.events) class="is-striped" as |t|}} + {{#list-table source=ports as |t|}} {{#t.head}} - Time - Type - Description + Dynamic? + Name + Address {{/t.head}} {{#t.body as |row|}} - - {{moment-format row.model.time "MM/DD/YY HH:mm:ss"}} - {{row.model.type}} - - {{#if row.model.message}} - {{row.model.message}} - {{else}} - No message - {{/if}} + + {{if row.model.isDynamic "Yes" "No"}} + {{row.model.name}} + + + {{network.ip}}:{{row.model.port}} + {{/t.body}} {{/list-table}}
-
-{{/gutter-menu}} + {{/if}} + +
+
+ Recent Events +
+
+ {{#list-table source=(reverse model.events) class="is-striped" as |t|}} + {{#t.head}} + Time + Type + Description + {{/t.head}} + {{#t.body as |row|}} + + {{moment-format row.model.time "MM/DD/YY HH:mm:ss"}} + {{row.model.type}} + + {{#if row.model.message}} + {{row.model.message}} + {{else}} + No message + {{/if}} + + + {{/t.body}} + {{/list-table}} +
+
+
diff --git a/ui/app/templates/allocations/allocation/task/logs.hbs b/ui/app/templates/allocations/allocation/task/logs.hbs index 6799e39d6..d9e2e8251 100644 --- a/ui/app/templates/allocations/allocation/task/logs.hbs +++ b/ui/app/templates/allocations/allocation/task/logs.hbs @@ -1,6 +1,4 @@ -{{#gutter-menu class="page-body"}} - {{partial "allocations/allocation/task/subnav"}} -
- {{task-log data-test-task-log allocation=model.allocation task=model.name}} -
-{{/gutter-menu}} +{{partial "allocations/allocation/task/subnav"}} +
+ {{task-log data-test-task-log allocation=model.allocation task=model.name}} +