Skip to content
Snippets Groups Projects
Commit f6cde109 authored by Eric Bremner's avatar Eric Bremner
Browse files

RT#1184659: only printing out blocks that have content

parent ccf9835d
No related branches found
No related tags found
1 merge request!53RT#1184659: Only output blocks that have content
...@@ -37,16 +37,18 @@ ...@@ -37,16 +37,18 @@
{{ attach_library('uw_theme_admin/uw_layout_builder') }} {{ attach_library('uw_theme_admin/uw_layout_builder') }}
{% endif %} {% endif %}
<div{{ attributes.addClass(classes) }}> {% if content %}
{% if admin_label %} <div{{ attributes.addClass(classes) }}>
<div class="uw-admin-label">{{ admin_label }}</div> {% if admin_label %}
{% endif %} <div class="uw-admin-label">{{ admin_label }}</div>
{{ title_prefix }} {% endif %}
{% if label %} {{ title_prefix }}
<h2{{ title_attributes }}>{{ label }}</h2> {% if label %}
{% endif %} <h2{{ title_attributes }}>{{ label }}</h2>
{{ title_suffix }} {% endif %}
{% block content %} {{ title_suffix }}
{{ content }} {% block content %}
{% endblock %} {{ content }}
</div> {% endblock %}
</div>
{% endif %}
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