Don't display left column if no boxes are displayed
authorJuliette Belin <juliette.belin@logilab.fr>
Wed, 01 Mar 2017 18:14:28 +0100
changeset 206 3c3f5adeb0c6
parent 205 3771783067ae
child 207 80eb000ff2ea
Don't display left column if no boxes are displayed
cubicweb_sherpa/views/templates/maintemplate.jinja2.html
--- a/cubicweb_sherpa/views/templates/maintemplate.jinja2.html	Thu Mar 02 15:50:20 2017 +0100
+++ b/cubicweb_sherpa/views/templates/maintemplate.jinja2.html	Wed Mar 01 18:14:28 2017 +0100
@@ -40,12 +40,17 @@
     </div>
   </nav>
   <div id="{{page_id}}" class="container-fluid" role="main">
+
+    {% if boxes %}
     <aside id="aside-main-left" class="col-md-2 cwjs-aside">
       {% for box_html in boxes %}
       {{ box_html|safe}}
       {% endfor %}
     </aside>
     <div class="col-md-10 page-content">
+    {% else %}
+    <div class="col-md-12 page-content">
+    {% endif %}
       <div id="pageContent">
       {{ application_message|safe }}
       {{ contextual_components|safe }}