[PATCH 7 of 8 sherpa] Fix main template to avoid some class vanishing when pageContent element is replaced

Sylvain Thenault sylvain.thenault at logilab.fr
Tue Feb 28 17:08:21 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1488297833 -3600
#      Tue Feb 28 17:03:53 2017 +0100
# Node ID 409f9cbc02c5daa6409dcd6552e9061da52d795b
# Parent  480948c69272de9cb8097f9a45de461d73751c94
Fix main template to avoid some class vanishing when pageContent element is replaced

when e.g. some facets are selected.

diff --git a/cubicweb_sherpa/views/templates/maintemplate.jinja2.html b/cubicweb_sherpa/views/templates/maintemplate.jinja2.html
--- a/cubicweb_sherpa/views/templates/maintemplate.jinja2.html
+++ b/cubicweb_sherpa/views/templates/maintemplate.jinja2.html
@@ -43,14 +43,16 @@
     <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" id="pageContent">
+    <div class="col-md-10 page-content">
+      <div id="pageContent">
       {{ application_message|safe }}
       {{ contextual_components|safe }}
       {{ page_content|safe }}
+      </div>
     </div>
   </div>
   <div class="container-fluid">
     <footer role="contentinfo" id="pagefooter">
       <section class="links">


More information about the saem-devel mailing list