{% comment %} Base website template. It displays various elements depending on context variables. Usefull context: - cover: image cover - site: current website - has_filters: display filter bar (using block "filters") - model: view model or displayed `object`'s - sidebar_object_list: item to display in sidebar - sidebar_url_name: url name sidebar item complete list - sidebar_url_parent: parent page for sidebar items complete list {% endcomment %} {% load static i18n thumbnail aircox %} {% block assets %} {% endblock %} {% block head_title %} {% if page and page.title %}{{ page.title }} — {{ station.name }} {% else %}{{ station.name }} {% endif %} {% endblock %} {% block head_extra %}{% endblock %}
{% block header %}

{% block title %} {% if page and page.title %} {{ page.title }} {% endif %} {% endblock %}

{% block subtitle %}{% endblock %}

{% block header_nav %} {% block header_crumbs %} {% if parent %} {{ parent.title }} {% endif %} {% endblock %} {% endblock %}
{% endblock %}
{% block main %} {% block content %} {% if page and page.content %}
{{ page.content|safe }}
{% endif %} {% endblock %} {# TODO: change block name #} {% if has_filters %} {% comment %}Translators: extra toolbar displayed on the top of page lists {% endcomment %} {% endif %} {% endblock main %}
{% if has_sidebar %} {% comment %}Translators: main sidebar {% endcomment %} {% endif %}

{% include "aircox/widgets/player.html" %}