{% extends "email_base.html" %} {% block content %} {% set tipos = data.tipos | map(attribute='tipo') | list %} {% set conector = 'y' if data.idioma == 'es' else 'and' %} {% if tipos|length == 1 %} {% set tipos_str = tipos[0] %} {% elif tipos|length == 2 %} {% set tipos_str = tipos[0] ~ ' ' ~ conector ~ ' ' ~ tipos[1] %} {% else %} {% set tipos_str = tipos[:-1] | join(', ') ~ ' ' ~ conector ~ ' ' ~ tipos[-1] %} {% endif %}
{% endblock %}