{% load i18n %}{% if component.layout != 'grid' %}

{{ component.title }}

    {% for item in component.visible_items %}
  1. {% if component.layout == 'ranking' %}{{ forloop.counter }}.{% endif %}
    {% if item.action %}{{ item.title }}{% else %}{{ item.title }}{% endif %}{% if item.subtitle %}
    {{ item.subtitle }}
    {% endif %}{% if item.status_label %}{{ item.status_label }}{% endif %}
    {% for fact in item.facts %}
    {{ fact.label }}
    {{ fact.value|default_if_none:'—'|force_escape }}
    {% endfor %}
  2. {% empty %}
  3. {{ component.empty_message|default:'—' }}
  4. {% endfor %}
{% if component.all_action %}{% endif %}
{% else %}

{{ component.title }}

{% for item in component.items %}

{% if item.action %}{{ item.title|force_escape }}{% else %}{{ item.title|force_escape }}{% endif %}

{% if item.subtitle %}

{{ item.subtitle|force_escape }}

{% endif %}{% if item.status_label %}{{ item.status_label }}{% endif %}
{% for fact in item.facts %}
{{ fact.label|force_escape }}
{{ fact.value|default_if_none:'—'|force_escape }}
{% endfor %}
{% empty %}
{{ component.empty_message }}
{% endfor %}
{% endif %}