Use set rather than macro
This commit is contained in:
parent
cac7679fb2
commit
29655e45dd
@ -42,18 +42,18 @@
|
|||||||
}}
|
}}
|
||||||
</span>
|
</span>
|
||||||
<span class="icon-link icon-link--large accordion-table__item__toggler">
|
<span class="icon-link icon-link--large accordion-table__item__toggler">
|
||||||
{% macro OpenEnvironmentsButton() %}
|
{% set open_environments_button %}
|
||||||
{{ "common.show" | translate }} Environments ({{ members_list | length }})
|
{{ "common.show" | translate }} Environments ({{ members_list | length }})
|
||||||
{% endmacro %}
|
{% endset %}
|
||||||
|
|
||||||
{% macro CloseEnvironmentsButton() %}
|
{% set close_environments_button %}
|
||||||
{{ "common.hide" | translate }} Environments ({{ members_list | length }})
|
{{ "common.hide" | translate }} Environments ({{ members_list | length }})
|
||||||
{% endmacro %}
|
{% endset %}
|
||||||
|
|
||||||
{{
|
{{
|
||||||
ToggleButton(
|
ToggleButton(
|
||||||
open_html=OpenEnvironmentsButton(),
|
open_html=open_environments_button,
|
||||||
close_html=CloseEnvironmentsButton(),
|
close_html=close_environments_button,
|
||||||
section_name="environments"
|
section_name="environments"
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user