Commit f6cde109 authored by Eric Bremner's avatar Eric Bremner
Browse files

RT#1184659: only printing out blocks that have content

parent ccf9835d
...@@ -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 %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment