{# The body of an add_banner_tiles() card -- the grid or slider of tiles -- shared by both #} {# packs, since none of it is Bootstrap-version-specific. Every field a tile shows is #} {# escaped except `title_html` (via tile.heading), rendered as-is by name like #} {# Tile.heading_html. The banner background and the point colours, written into style #} {# attributes, are checked on BannerTile (background_css, point_items) before they get #} {# here. The grid's width is not: it is add_banner_tiles(width=...), set in code. #} {% if card.extra_card_info.banner_tiles_is_slider %}
{% endif %}
{% for tile in card.extra_card_info.banner_tiles %} {% if tile.is_showcase %}
{% if tile.has_title %}
{{ tile.heading }}
{% endif %} {% if tile.description %}
{{ tile.description }}
{% endif %} {% if tile.points %}
    {% for point in tile.point_items %}
  • {% if point.icon %}{% endif %}{{ point.text }}
  • {% endfor %}
{% endif %} {% if tile.action_label %}
{{ tile.action_label }}
{% endif %}
{% if tile.has_panels %} {% endif %}
{% elif tile.is_plain %}
{% if tile.has_title %}
{{ tile.heading }}
{% endif %} {% if tile.description %}
{{ tile.description }}
{% endif %} {% if tile.action_label %}{{ tile.action_label }} {% endif %}
{% elif tile.is_feature %}
{% if tile.has_title %}
{{ tile.heading }}
{% endif %} {% if tile.description %}
{{ tile.description }}
{% endif %} {% if tile.action_label %}
{{ tile.action_label }}
{% endif %}
{% elif tile.is_highlight %}
{% if tile.banner_label or tile.banner_icon %}
{% if tile.banner_icon %}{% if tile.banner_label %} {% endif %}{% endif %}{{ tile.banner_label|default:'' }}
{% endif %} {% if tile.has_title %}
{{ tile.heading }}
{% endif %} {% if tile.description %}
{{ tile.description }}
{% endif %}
{% if tile.status %}
{{ tile.status }}
{% endif %} {% if tile.progress_percent is not None %}
{% endif %} {% if tile.action_label %}{{ tile.action_label }}{% endif %}
{% else %} {% endif %}
{% if tile.has_callout %}
{% if tile.callout_icon %}{% endif %}
{% if tile.callout_title %}
{{ tile.callout_title }}
{% endif %} {% if tile.callout_text or tile.callout_link_label %}
{{ tile.callout_text|default:'' }}{% if tile.callout_link_label %} {{ tile.callout_link_label }}{% endif %}
{% endif %}
{% endif %} {% if tile.has_title %}
{{ tile.heading }}
{% endif %} {% if tile.description %}
{{ tile.description }}
{% endif %} {% if tile.badge %}
{{ tile.badge }}
{% endif %} {% if tile.stats %}
{% for stat in tile.stat_items %}{% if stat.icon %} {% endif %}{{ stat.text }}{% endfor %}
{% endif %} {# Pinned to the bottom of the body, so the bars of a row of tiles line up however much text is above them. #} {% if tile.progress_percent is not None or tile.status %}
{% if tile.progress_percent is not None %}
{% endif %}
{{ tile.status|default:'' }}
{# empty under a bar: it keeps the line, so the bars of a row line up #}
{% endif %} {% if tile.is_detail %} {% if tile.action_label %}{{ tile.action_label }} {% endif %} {% if tile.secondary_label %}{% if tile.secondary_icon %} {% endif %}{{ tile.secondary_label }}{% endif %} {% if tile.note %}
{{ tile.note }}
{% endif %} {% endif %}
{% if tile.has_footer %} {% endif %}
{% endif %} {% empty %} {% if card.extra_card_info.banner_tiles_empty_message %}

{{ card.extra_card_info.banner_tiles_empty_message }}

{% endif %} {% endfor %}
{% if card.extra_card_info.banner_tiles_is_slider %}
{% for tile in card.extra_card_info.banner_tiles %}{% endfor %}
{% include 'cards/standard/_banner_tiles_slider_script.html' %} {% endif %}