From f6cde1093ed7774e41efe3749f1d939e877514e8 Mon Sep 17 00:00:00 2001 From: Eric Bremner Date: Fri, 1 Oct 2021 19:03:53 +0000 Subject: [PATCH] RT#1184659: only printing out blocks that have content --- templates/blocks/block.html.twig | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/templates/blocks/block.html.twig b/templates/blocks/block.html.twig index 2a980e0..eb8af38 100644 --- a/templates/blocks/block.html.twig +++ b/templates/blocks/block.html.twig @@ -37,16 +37,18 @@ {{ attach_library('uw_theme_admin/uw_layout_builder') }} {% endif %} - - {% if admin_label %} -
{{ admin_label }}
- {% endif %} - {{ title_prefix }} - {% if label %} - {{ label }} - {% endif %} - {{ title_suffix }} - {% block content %} - {{ content }} - {% endblock %} - +{% if content %} + + {% if admin_label %} +
{{ admin_label }}
+ {% endif %} + {{ title_prefix }} + {% if label %} + {{ label }} + {% endif %} + {{ title_suffix }} + {% block content %} + {{ content }} + {% endblock %} + +{% endif %} -- GitLab