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

{% block tag-class %}{{ block.super }} preview-card{% endblock %}

{% block inner %}
    <div class="card-content">
        {% if cover %}
        {% if url %}<a href="{{ url }}">{% endif %}
        <figure style="background-image: url({{ cover }});" class="preview-cover">
            <img src="{{ cover }}" class="hide">
        </figure>
        {% if url %}</a>{% endif %}
        {% endif %}

        <footer class="actions">
            {% block actions %}{{ block.super }}{% endblock %}
        </footer>
    </div>

    {% block headings-container %}{{ block.super }}{% endblock %}

{% endblock %}
