{% extends "./preview.html" %}
{% load i18n aircox %}

{% block tag-class %}{{ block.super }} list-item wide is-fullwidth{% endblock %}

{% block headings %}
<a href="{{ url|escape }}" class="heading title {% block title-class %}{% endblock %}">
    {% block title %}{{ title|default:"" }}{% endblock %}
</a>
<span class="heading subtitle {% block subtitle-class %}{% endblock %}">
    {% block subtitle %}{{ subtitle|default:"" }}{% endblock %}
</span>
{% endblock %}

{% block inner %}
{% block content-container %}
<div class="media">
    {% if object.cover %}
    <a href="{{ object.get_absolute_url }}"
        class="media-left preview-cover"
        style="background-image: url({{ object.cover.url }})">
    </a>
    {% endif %}
    <div class="media-content">
        {% block headings-container %}{{ block.super }}{% endblock %}

        <section class="content">
            {% block content %}
            {% if content and with_content %}
            {% autoescape off %}
                {{ content|striptags|linebreaks }}
            {% endautoescape %}
            {% endif %}
            {% endblock %}
        </section>

        {% block actions-container %}
        {{ block.super }}
        {% endblock %}
    </div>
{% endblock %}

{% endblock %}
