mirror of
https://github.com/status-im/consul.git
synced 2025-01-13 07:14:37 +00:00
99c51c9f86
Various ember addons produced deprecation messages, some in the browser console and some in terminal. Upgrading and replacing some of these has reduced this. Upgrades: - ember-collection - ember-computed-style Replacements: - ember-pluralize replaced with ember-inflector - ember-cli-format-number replaced with custom helper using standard `toLocaleString` Removing ember-cli-format-number also meant some further changes related to decimal places in the tomography graph, done using `toFixed` The ExternalSources background-images have also now been escaped correctly preventing in-development `console` warnings. The only deprecation warnings are now from ember-block-slots, only in terminal, making for a better development experience overall, especially now we have an empty browser console Also adds a `callIfType` 'helper util' which is a util specifically for helpers (it conforms to a helper argument signature) to be expanded upon later.
32 lines
1011 B
Handlebars
32 lines
1011 B
Handlebars
<header class={{if service 'with-service' }}>
|
|
<strong>{{address}}</strong>
|
|
<a href={{href}}>
|
|
<span>{{name}}</span>
|
|
<em>{{service}}</em>
|
|
</a>
|
|
</header>
|
|
{{! its important to keep this <ul> with no whitespace so we can use :empty in css }}
|
|
<ul>{{#if status }}
|
|
<li class={{status}}>
|
|
<a href={{href}}>
|
|
<strong>{{status}}</strong>
|
|
</a>
|
|
</li>
|
|
{{ else }}
|
|
{{#each unhealthy as |check| }}
|
|
<li class={{check.Status}}>
|
|
<a href={{href}}>
|
|
<strong>{{ check.Status }}</strong>
|
|
<span>{{ check.Name }}</span>
|
|
</a>
|
|
</li>
|
|
{{/each}}
|
|
{{#if (gt healthy.length 0)}}
|
|
<li class="passing">
|
|
<a href={{href}}>
|
|
<strong>{{healthy.length}}</strong>
|
|
<span>other passing {{pluralize healthy.length 'check' without-count=true}}</span>
|
|
</a>
|
|
</li>
|
|
{{/if}}
|
|
{{/if}}</ul> |