{# One BannerAction: a link with a url, else a button the page's script answers by its data- attributes. #} {# `classes` is the button's classes; `lead` draws the icon before the label (a secondary button), else #} {# after it (a main one). Everything is escaped; the attributes' names were checked on BannerAction. #} {% if action.is_link and not action.disabled %}{% if lead and action.icon %} {% endif %}{{ action.label }}{% if not lead and action.icon %} {% endif %}{% if action.is_link and not action.disabled %}{% else %}{% endif %}