{% macro durata_human(d) %} {%- if d >= 60 -%}{{d//60}}h{%- endif -%} {%- if d % 60 != 0 -%}{{d%60}}m {%- endif -%} {% endmacro %}
{% if time is defined and day is defined %} {# Vedi http://babel.pocoo.org/en/latest/dates.html #} {{day|dateformat(format='EEEE', locale=lang)}} - {{time.time()|timeformat(format='short', locale=lang)}} {% if duration %} ({{durata_human(duration)}}) {% endif %} {% else %} L'orario non รจ ancora stato fissato {% if duration %}
Durata: {{durata_human(duration)}}
{% endif %} {% endif %} {# date-time #} {% if room is defined %} Stanza {{ room }} {% endif %} {% if needs: %}A cura di {{contacts|join(', ')}}
{% endif %}