forked from rc/aircox
cfr #121 Co-authored-by: Christophe Siraut <d@tobald.eu.org> Co-authored-by: bkfox <thomas bkfox net> Co-authored-by: Thomas Kairos <thomas@bkfox.net> Reviewed-on: rc/aircox#131 Co-authored-by: Chris Tactic <ctactic@noreply.git.radiocampus.be> Co-committed-by: Chris Tactic <ctactic@noreply.git.radiocampus.be>
39 lines
740 B
HTML
39 lines
740 B
HTML
{% extends widget_template %}
|
|
{% load i18n aircox %}
|
|
|
|
|
|
{% block outer %}
|
|
{% with cover|default:object.cover_url as cover %}
|
|
{% with url|default:object.get_absolute_url as url %}
|
|
{{ block.super }}
|
|
{% endwith %}
|
|
{% endwith %}
|
|
{% endblock %}
|
|
|
|
|
|
{% block title %}
|
|
{% if title %}
|
|
{{ block.super }}
|
|
{% elif object %}
|
|
{{ object.display_title }}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
|
|
{% block content %}
|
|
{% if not content and object %}
|
|
{% with object.display_headline as content %}
|
|
{{ block.super }}
|
|
{% endwith %}
|
|
{% else %}
|
|
{{ block.super }}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block actions %}
|
|
{% if url and "card" not in widget_template %}
|
|
<a href="{{ url }}">{% translate "Show" %}</a>
|
|
{% endif %}
|
|
{{ block.super }}
|
|
{% endblock %}
|