{% extends "aircox/public.html" %} {% load static i18n humanize honeypot aircox %} {% comment %} Base template used to display a Page Context: - page: page - parent: parent page - related_objects: list of object to display as related publications - related_url: url to the full list of related_objects {% endcomment %} {% block breadcrumbs %} {% if parent %} {% include "./widgets/breadcrumbs.html" with page=parent %} {% if page %} {{ page|verbose_name:True }} {% endif %} {% elif page %} {% include "./widgets/breadcrumbs.html" with page=page no_title=True %} {% endif %} {% endblock %} {% block title-container %} {{ block.super }} {% block page-actions %} {% include "aircox/widgets/page_actions.html" %} {% endblock %} {% endblock %} {% block main %} {{ block.super }} {% block episodes %} {% endblock %} {% block related %} {% if related_objects %}
{% with models=object|verbose_name:True %}

{% blocktranslate %}Related {{models}}{% endblocktranslate %}

{% include "./widgets/carousel.html" with objects=related_objects url_name=object.list_url_name url_category=object.category %} {% endwith %}
{% endif %} {% endblock %} {% block comments %} {% if comments %}

{% translate "Comments" %}

{% for object in comments %} {% page_widget "item" object %} {% endfor %}
{% endif %} {% if comment_form %}

{% translate "Post a comment" %}

{% csrf_token %} {% render_honeypot_field "website" %}
{{ comment_form.content }}
{% for field in comment_form %} {% if field.name != "content" %}
{{ field }}
{% if field.errors %}

{{ field.errors }}

{% endif %} {% if field.help_text %}

{{ field.help_text|safe }}

{% endif %} {% endif %} {% endfor %}
{% endif %} {% endblock %} {% endblock %}