strasbourg 2018: inherit from standard combo template to reduce specificities

This commit is contained in:
Frédéric Péters 2020-04-11 11:54:21 +02:00
parent c13b39ae26
commit 0f696b9805
1 changed files with 2 additions and 42 deletions

View File

@ -1,51 +1,11 @@
{% extends theme_base_filename %}
{% extends "combo/page_template.html" %}
{% load static i18n combo gadjo %}
{% block extra_top_head %}
{{ block.super }}
<script src="{{site_base}}{% xstatic 'jquery' 'jquery.min.js' %}"></script>
{% skeleton_extra_placeholder extra-top-head %}
{% end_skeleton_extra_placeholder %}
{% endblock %}
{% block extra_scripts %}
<script src="{{site_base}}{% static 'js/combo.public.js' %}?{% start_timestamp %}"></script>
<script src="{{site_base}}{% static 'js/combo.back.js' %}?{% start_timestamp %}"></script>
<script src="{{site_base}}/__services.js"></script>
{% if not no_extra_js %}
<script src="{{site_base}}{% static "" %}{{css_variant}}/extra.js?{% start_timestamp %}"></script>
{% endif %}
{% skeleton_extra_placeholder extra-head %}
{% end_skeleton_extra_placeholder %}
{% endblock %}
{% block bodyattrs %}
data-api-root="{{ site_base }}/api/"
{% if check_badges %}data-check-badges="true"{% endif %}
{% skeleton_extra_placeholder extra-body-args %}
{% end_skeleton_extra_placeholder %}
{% endblock %}
{% block bodyclasses %}
page-{{ page.slug }} {% if pages %}section-{{pages.0.slug}}{% endif %}
{{ block.super }}
{% skeleton_extra_placeholder body-class-authenticated %}
{% if not user.is_authenticated %}anonymous{% endif %}
{% end_skeleton_extra_placeholder %}
{% skeleton_extra_placeholder extra-body-class %}
{% end_skeleton_extra_placeholder %}
{% if page.picture %}has-picture{% endif %}
{% endblock %}
{% block title %} - {% if render_skeleton %}{% skeleton_extra_placeholder title %}{% firstof page_title site_title %}{% end_skeleton_extra_placeholder %}{% else %}{{page.title}}{% endif %}{% endblock %}
{% block menu %}
{% show_menu depth=2 ignore_visibility=True %}
{% placeholder "menu_right" %}
{% endblock %}
{% block messages %}
{{ block.super }}
{% placeholder "messages" %}
{% endblock %}
{% block content %}