--- a/src/pyams_portal/templates/pagelet.pt Fri Mar 26 16:32:52 2021 +0100
+++ b/src/pyams_portal/templates/pagelet.pt Thu Aug 05 09:27:48 2021 +0200
@@ -5,14 +5,17 @@
<div class="row" tal:repeat="row range(template_config.rows)">
<div class="slots">
<tal:loop repeat="slot_name template_config.get_slots(row)">
- <div class="slot"
- tal:define="slot_config template_config.get_slot_configuration(slot_name)"
+ <div tal:define="slot_config template_config.get_slot_configuration(slot_name)"
tal:condition="slot_config.visible"
- tal:attributes="class string:slot col ${slot_config.get_css_class()}">
- <div class="portlets">
- <div tal:repeat="portlet_id template_config.slot_config[slot_name].portlet_ids"
- class="portlet ${view.get_portlet_css_class(portlet_id)}">
- <tal:var replace="structure view.render_portlet(portlet_id)">Content</tal:var>
+ tal:omit-tag="not:slot_config.container_css_class"
+ class="${slot_config.container_css_class}">
+ <div class="slot"
+ tal:attributes="class string:slot col ${slot_config.get_css_class()}">
+ <div class="portlets">
+ <div tal:repeat="portlet_id template_config.slot_config[slot_name].portlet_ids"
+ class="portlet ${view.get_portlet_css_class(portlet_id)}">
+ <tal:var replace="structure view.render_portlet(portlet_id)">Content</tal:var>
+ </div>
</div>
</div>
</div>