mirror of https://github.com/status-im/consul.git
15 lines
525 B
Handlebars
15 lines
525 B
Handlebars
{{#if @collapsible}}
|
|
<div class="collapsible-notices {{if this.collapsed 'collapsed'}}">
|
|
<div class="notices">
|
|
{{yield}}
|
|
</div>
|
|
{{#if this.collapsed}}
|
|
<button type="button" class="expand" {{on 'click' (set this 'collapsed' false)}}>{{t "components.app.collapsible-notices.expand"}}</button>
|
|
{{else}}
|
|
<button type="button" class="collapse" {{on 'click' (set this 'collapsed' true)}}>{{t "components.app.collapsible-notices.collapse"}}</button>
|
|
{{/if}}
|
|
</div>
|
|
{{else}}
|
|
{{yield}}
|
|
{{/if}}
|