In a horrendous hack, only print div if any classes/attributes to go on it

This commit is contained in:
benjamin melançon 2018-11-12 11:29:05 -05:00
parent 0cacaf0002
commit ce002857f7

View file

@ -190,7 +190,11 @@
<h3{{ title_attributes }}>{{ title }}</h3>
{% endif %}
{% for row in rows %}
<div{{ row.attributes }}>
{% if row.attributes|render %}
<div{{ row.attributes }}>
{% endif %}
{{ row.content }}
</div>
{% if row.attributes|render %}
</div>
{% endif %}
{% endfor %}