2021-10-12 13:27:06 +00:00
|
|
|
{{#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}}
|
2021-05-25 15:02:38 +00:00
|
|
|
</div>
|
|
|
|
{{else}}
|
2021-10-12 13:27:06 +00:00
|
|
|
{{yield}}
|
2021-05-25 15:02:38 +00:00
|
|
|
{{/if}}
|