{% 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" %}"></div>
    <div class="tile-head">
      <div class="tile-title">
        <h2>{{title}}</h2>
        <h3>{{ producer.label }}</h3>
        <span class="producer" style="background-image: {% asset_css_url logo %}">{{ producer.label }}</span>
      </div>
    </div>
    <div class="tile-content">
      <div class="tile-actions">
        <span class="action-more-info">Plus d’infos</span>
      </div>
    </div>
  </div>
</a>
{% endwith %}
{% endwith %}
