{% macro durata_human(d) %} {%- if d >= 60 -%}{{d//60}}h{%- endif -%} {%- if d % 60 != 0 -%}{{d%60}}m {%- endif -%} {% endmacro %}

{{title.strip()}}

{% 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: %}
Materiale necessario: {{needs|join(", ")}}
{% endif %}
{{text | markdown}} {% if contacts: %}

A cura di {{contacts|join(', ')}}

{% endif %}
{% if links or resources or mail: %}

Link utili:

{% endif %}
{# vim: set ft=jinja: #}