{% load django_cards_tags %}{# A heading row (add_heading) or a row of fact columns (add_facts). Free of Bootstrap names, so one copy serves both packs; each entry is drawn by the pack's _entry.html. A column with an icon or a ring draws it beside its entries; one with a url is a link. #} {% if row.type == 'heading' %}
{{ row.title }}{% if row.note is not None and row.note != '' %}{{ row.note }}{% endif %}
{% else %}{% pack_path 'cards/standard/_entry.html' as entry_template %}
{% for column in row.columns %} <{% if column.url %}a href="{{ column.url }}"{% else %}div{% endif %} class="django-card__facts-col{% if column.icon or column.ring is not None %} django-card__facts-col--figure{% endif %}{% if column.url %} django-card__facts-col--link{% endif %}{% if column.css_class %} {{ column.css_class }}{% endif %}">{% if column.ring is not None %}{{ column.ring }}%{% elif column.icon %}{% endif %}
{% if column.title %}
{{ column.title }}
{% endif %}{% with row=column %}{% for entry in column.entries %} {% include entry_template %}{% endfor %}{% endwith %}{% if column.note %}
{{ column.note }}
{% endif %}
{% endfor %}
{% endif %}