diff --git a/ui/app/styles/components/dashboard-metric.scss b/ui/app/styles/components/dashboard-metric.scss index 3b6cfb8cb..f99ae030c 100644 --- a/ui/app/styles/components/dashboard-metric.scss +++ b/ui/app/styles/components/dashboard-metric.scss @@ -1,5 +1,7 @@ .dashboard-metric { - margin-top: 1.5em; + &:not(:last-child) { + margin-bottom: 1.5em; + } .metric { text-align: left; @@ -28,4 +30,17 @@ .annotation { margin-top: -0.75rem; } + + &.with-divider { + border-top: 1px solid $grey-blue; + padding-top: 1.5em; + } + + .pair { + font-size: $size-5; + } + + .is-faded { + color: darken($grey-blue, 20%); + } } diff --git a/ui/app/styles/core/columns.scss b/ui/app/styles/core/columns.scss index d912a37c3..f4cdd5e62 100644 --- a/ui/app/styles/core/columns.scss +++ b/ui/app/styles/core/columns.scss @@ -23,4 +23,8 @@ margin-left: auto; margin-right: auto; } + + &.is-flush { + margin-bottom: 0; + } } diff --git a/ui/app/templates/components/topo-viz.hbs b/ui/app/templates/components/topo-viz.hbs index 7f641443b..a81ef106a 100644 --- a/ui/app/templates/components/topo-viz.hbs +++ b/ui/app/templates/components/topo-viz.hbs @@ -11,7 +11,7 @@ {{/each}} {{#if this.activeAllocation}} - + {{#each this.activeEdges as |edge|}} {{/each}} diff --git a/ui/app/templates/topology.hbs b/ui/app/templates/topology.hbs index d8dc5044b..af7f36eeb 100644 --- a/ui/app/templates/topology.hbs +++ b/ui/app/templates/topology.hbs @@ -27,47 +27,54 @@
{{if this.activeAllocation "Allocation" "Cluster"}} Details
{{#if this.activeAllocation}} -

- Allocation: - {{this.activeAllocation.shortId}} -

-

Sibling Allocations: {{this.siblingAllocations.length}}

-

Unique Client Placements: {{this.uniqueActiveAllocationNodes.length}}

-

-

- Job: - - {{this.activeAllocation.job.name}} - -

-

- Client: - - {{this.activeAllocation.node.name}} ({{this.activeAllocation.node.shortId}}) - -

- - - {{else}} -
-
-

DCs

-

{{this.datacenters.length}}

-
-
-

Clients

-

{{this.model.nodes.length}}

-
-
-

Allocations

- {{! TODO: make sure that this is only the scheduled allocations }} -

{{this.model.allocations.length}}

-
+
+

+ Allocation: + {{this.activeAllocation.shortId}} +

+

Sibling Allocations: {{this.siblingAllocations.length}}

+

Unique Client Placements: {{this.uniqueActiveAllocationNodes.length}}

+
+
+

+ Job: + + {{this.activeAllocation.job.name}} + / {{this.activeAllocation.taskGroupName}} +

+

Type: {{this.activeAllocation.job.type}}

+

Priority: {{this.activeAllocation.job.priority}}

+
+
+

+ Client: + + {{this.activeAllocation.node.shortId}} + +

+

Name: {{this.activeAllocation.node.name}}

+

Address: {{this.activeAllocation.node.httpAddr}}

+
+
+
+ +
+ {{else}} +
+
+

{{this.model.nodes.length}} Clients

+
+
+ {{! TODO: make sure that this is only the scheduled allocations }} +

{{this.model.allocations.length}} Allocations

+
+
+

{{this.totalMemoryFormatted}} {{this.totalMemoryUnits}} of memory