{% load i18n %} {% comment %} Content related context: - object: object to display - cover: cover - title: title - subtitle: subtitle - content: content to display Components: - no_cover: don't show cover - no_content: don't show content Styling related context: - is_active: add "active" css class - is_small: add "small" css class - is_tiny: add "tiny" css class - tag - tag_class: css class to set to main tag - tag_extra: extra tag attributes {% endcomment %} {% load aircox %} {% block outer %} <{{ tag|default:"article" }} id="{{ object|object_id }}" class="preview {% if not cover %}no-cover {% endif %}{% if is_active %}active {% endif %}{% if is_tiny %}tiny{% elif is_small %}small{% endif %}{% block tag-class %}{{ tag_class|default:"" }} {% endblock %}" {% block tag-extra %}{% endblock %}> {% block inner %} {% block headings-container %}
{% block headings %} {% block title-container %} {% block title %}{{ title|default:"" }}{% endblock %} {% endblock %} {% block subtitle-container %} {% block subtitle %}{{ subtitle|default:"" }}{% endblock %} {% endblock %} {% endblock %}
{% endblock %} {% block content-container %}
{% block content %} {% if content and not no_content %} {% autoescape off %} {{ content|striptags|linebreaks }} {% endautoescape %} {% endif %} {% spaceless %}
{% block actions %} {% if admin and object.edit_url_name %} {% translate "Edit" %} {% endif %} {% endblock %}
{% endspaceless %} {% endblock %}
{% endblock %} {% endblock %} {% endblock %}