{% load card_badge %} {% comment %} This partial expects: - cards: a list of card objects - mode: a string that determines the render style. It should be "offered" for Most Offered Cards and "wanted" for Most Wanted Cards. - Optional: 'show_zero' flag (default False): if True, also display cards with 0 offers. 'layout' variable: if set to "auto", use an auto-fit grid based on available horizontal space. {% endcomment %} {% if cards %}
{% for card in cards %} {% if mode == "offered" %} {% card_badge card card.offer_count %} {% endfor %}
{% else %}

No cards found

{% endif %}