open-consul/ui/packages/consul-ui/app/components/topology-metrics/notice/index.hbs

31 lines
871 B
Handlebars
Raw Normal View History

2021-04-13 19:21:19 +00:00
<Notice
class="topology-metrics-notice"
...attributes
2021-04-14 22:52:41 +00:00
@type={{@type}}
2021-04-13 19:21:19 +00:00
as |notice|>
<notice.Header>
<h3>
{{t (concat "components.consul.topology-metrics.notice." @for ".header")}}
</h3>
</notice.Header>
<notice.Body>
<p>
{{t (concat "components.consul.topology-metrics.notice." @for ".body")}}
</p>
</notice.Body>
{{#if @action}}
<notice.Footer>
<p>
{{#if @internal}}
<Action @href={{href-to (t (concat "components.consul.topology-metrics.notice." @for ".footer.URL"))}}>
{{t (concat "components.consul.topology-metrics.notice." @for ".footer.name")}}
</Action>
{{else}}
<Action @href={{@link}} @external={{true}}>
{{t (concat "components.consul.topology-metrics.notice." @for ".footer")}}
</Action>
{{/if}}
</p>
</notice.Footer>
{{/if}}
</Notice>