]> git.parisson.com Git - mezzo.git/commitdiff
Linked orga : add logo in custom page too
authorEmilie <zawadzki@ircam.fr>
Thu, 1 Dec 2016 17:59:10 +0000 (18:59 +0100)
committerEmilie <zawadzki@ircam.fr>
Thu, 1 Dec 2016 17:59:10 +0000 (18:59 +0100)
app/templates/pages/custompage.html

index ae57217b1881307718a0067ac52235fec6268a29..e8c93f872b0270d3b7bc87a2003f0442ab961d51 100644 (file)
 
     {% block page_content %}
 
+        {% with page.get_ascendants|last as top_level_parent %}
+            {% if LINKED_ORGA_CONTENT and RESEARCH_SLUG == top_level_parent.slug %}
+                {% include 'core/inc/linked_organization_content.html' %}
+            {% endif %}
+        {% endwith %}
+
         {% if page.custompage.sub_title %}
             {% editable page.custompage.sub_title %}
                 <div class="chapo">