577dbef70a
* Move almost everything to use %frames * Fix pill styles of ACL types * Remove horizontal scrollbars from dom recycling scroller component * Make text areas look ok in Firefox * Remove ember-bulma-css * New form elements, break out %toggle * %button design tweaks * %form-element design tweaks * Better hashicorp logo * Small screen CSS improvements (#4624) 1. Reduce header size when there are no breadcrumbs 2. Make the filters toggleable, closed by default 3. Reduce the size of the footer on small screens 4. Hide all non-primary columns for forms 5. Slightly change the layout of various items, mainly buttons within forms 6. Make some confirmation dialogs work vertically on small screens. Guessing we might be better just using native confirmations on small screens
57 lines
1.8 KiB
Handlebars
57 lines
1.8 KiB
Handlebars
{{#app-view class="node list"}}
|
|
{{#block-slot 'header'}}
|
|
<h1>
|
|
Nodes
|
|
</h1>
|
|
<label for="toolbar-toggle"></label>
|
|
{{/block-slot}}
|
|
{{#block-slot 'toolbar'}}
|
|
{{#if (gt items.length 0) }}
|
|
{{catalog-filter filters=healthFilters search=filters.s status=filters.status onchange=(action 'filter')}}
|
|
{{/if}}
|
|
{{/block-slot}}
|
|
{{#block-slot 'content'}}
|
|
{{#if (gt unhealthy.length 0) }}
|
|
<div class="unhealthy">
|
|
<h2>Unhealthy Nodes</h2>
|
|
<div>
|
|
{{! think about 2 differing views here }}
|
|
<ol>
|
|
{{#each unhealthy as |item|}}
|
|
{{healthchecked-resource
|
|
tagName='li'
|
|
data-test-node=item.Node
|
|
href=(href-to 'dc.nodes.show' item.Node)
|
|
name=item.Node
|
|
address=item.Address
|
|
checks=item.Checks
|
|
}}
|
|
{{/each}}
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
{{#if (gt healthy.length 0) }}
|
|
<div class="healthy">
|
|
<h2>Healthy Nodes</h2>
|
|
{{#list-collection
|
|
items=healthy
|
|
cell-layout=(percentage-columns-layout healthy.length columns 92) as |item index|
|
|
}}
|
|
{{healthchecked-resource
|
|
data-test-node=item.Node
|
|
href=(href-to 'dc.nodes.show' item.Node)
|
|
name=item.Node
|
|
address=item.Address
|
|
status=item.Checks.[0].Status
|
|
}}
|
|
{{/list-collection}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if (and (eq healthy.length 0) (eq unhealthy.length 0)) }}
|
|
<p>
|
|
There are no nodes.
|
|
</p>
|
|
{{/if}}
|
|
{{/block-slot}}
|
|
{{/app-view}} |