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>
This commit is contained in:
23
aircox/templates/aircox/widgets/card.html
Normal file
23
aircox/templates/aircox/widgets/card.html
Normal file
@ -0,0 +1,23 @@
|
||||
{% 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 %}
|
Reference in New Issue
Block a user