publik-base-theme/templates/variants/toodego/combo/cells/tile/link-cell.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
1.0 KiB
HTML
Raw Normal View History

2018-06-11 20:44:10 +02:00
{% load gnm assets %}
{% with producer=cell.extra_css_class|as_producer %}
{% with logo="logo:"|add:producer.slug picture="picture:"|add:producer.slug %}
<a href="{{url}}" class="tile-link">
<div class="tile {{producer.slug}}">
<div class="tile-picture" style="background-image: {% asset_css_url cell.link_page.picture picture size="300x300" crop="center" format="JPEG" %}"></div>
2018-06-11 20:44:10 +02:00
<div class="tile-head">
<div class="tile-title">
<h2 class="cell--title">{{title}}</h2>
2018-06-11 20:44:10 +02:00
<h3>{{ producer.label }}</h3>
{% if cell.link_page.description %}<div class="description"><p>{{ cell.link_page.description }}</p></div>{% endif %}
<span class="producer" style="background-image: {% asset_css_url logo %}">{{ producer.label }}</span>
2022-09-29 12:12:11 +02:00
</div>
</div>
2018-06-11 20:44:10 +02:00
<div class="tile-content">
<div class="tile-actions">
<span class="action-more-info">Plus dinfos</span>
2022-09-29 12:12:11 +02:00
</div>
</div>
2018-06-11 20:44:10 +02:00
</div>
</a>
{% endwith %}
{% endwith %}