host_organization = Organization.objects.get(is_host=True)
linked_organizations_content = host_organization.organizations_content.all()
linked_organizations_footer = host_organization.organizations_footer.all()
+ research_slug = "recherche"
+
return {'CURRENT_SEASON': CURRENT_SEASON,
'CURRENT_SEASON_STYLED': CURRENT_SEASON_STYLED,
'NEWSLETTER_SUBSCRIBING_URL': NEWSLETTER_SUBSCRIBING_URL,
'host_organization': host_organization,
'LINKED_ORGA_CONTENT' : linked_organizations_content,
- 'LINKED_ORGA_FOOTER' : linked_organizations_footer
+ 'LINKED_ORGA_FOOTER' : linked_organizations_footer,
+ 'RESEARCH_SLUG' : research_slug
}
</div>
{% endeditable %}
{% endif %}-->
-
- {% if LINKED_ORGA_CONTENT %}
+ {% if LINKED_ORGA_CONTENT and RESEARCH_SLUG == page.departmentpage.slug %}
{% include 'core/inc/linked_organization_content.html' %}
{% endif %}
{% endblock %}
{% block page_content %}
- {% if LINKED_ORGA_CONTENT %}
- {% include 'core/inc/linked_organization_content.html' %}
- {% endif %}
-
+ {% 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.projecttopicpage.sub_title %}
{% editable page.projecttopicpage.sub_title %}
<div class="chapo">
{% endblock %}
{% block page_content %}
-
- {% if LINKED_ORGA_CONTENT %}
- {% include 'core/inc/linked_organization_content.html' %}
- {% endif %}
-
+ {% 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.teampage.sub_title %}
{% editable page.teampage.sub_title %}
<div class="chapo">
<h1 class="dotted">{{ project.title }}</h1>
{% endeditable %}
- {% if LINKED_ORGA_CONTENT %}
- {% include 'core/inc/linked_organization_content.html' %}
- {% endif %}
+ {% 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 project.description %}
{% editable project.description %}