Skip to content
Snippets Groups Projects
Unverified Commit b260aebe authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Make the initially visible block in the expander optional

If there is no "general" block defined in the expander, it just won't show.
parent 8b4b2138
No related branches found
No related tags found
No related merge requests found
<div class="expandable{% if expanded %} expanded{% endif %}"> <div class="expandable{% if expanded %} expanded{% endif %}">
{% if block('general') is defined %}
<div class="general"> <div class="general">
{%- block general%}{% endblock %} {{- block("general") }}
</div> </div>
{% endif %}
<a tabindex="0" class="expander"></a> <a tabindex="0" class="expander"></a>
<div class="content"> <div class="content">
{%- block content %}{% endblock %} {%- block content %}{% endblock %}
</div> </div>
</div> </div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment