{% extends widget_template %}
{% load i18n aircox %}


{% block outer %}
{% with cover|default:object.cover_url as cover %}
    {% if admin %}
        {% with object|admin_url:"change" as url %}
        {{ block.super }}
        {% endwith %}
    {% else %}
        {% with url|default:object.get_absolute_url as url %}
        {{ block.super }}
        {% endwith %}
    {% endif %}
{% endwith %}
{% endblock %}


{% block title %}
{% if title %}
    {{ block.super }}
{% elif object %}
    {{ object.display_title }}
{% endif %}
{% endblock %}


{% block content %}
{% if content %}
    {{ content }}
{% elif object %}
    {{ block.super }}
    {{ object.display_headline }}
{% endif %}
{% endblock %}

{% block actions %}
{% if url and "card" not in widget_template %}
<a href="{{ url }}">{% translate "Show" %}</a>
{% endif %}
{{ block.super }}
{% endblock %}
