2018-06-16 14:41:44 +02:00
|
|
|
{% macro durata_human(d) %}
|
|
|
|
{%- if d >= 60 -%}{{d//60}}h{%- endif -%}
|
|
|
|
{%- if d % 60 != 0 -%}{{d%60}}m {%- endif -%}
|
|
|
|
{% endmacro %}
|
2018-04-12 19:05:28 +02:00
|
|
|
<div id="talk-{{id}}"
|
|
|
|
class="{% for t in tags -%} tag-{{t|replace(' ', '_')}} {% endfor -%}">
|
2018-06-13 10:48:00 +02:00
|
|
|
<h3 class="talk-title"><a href="#t-cell-{{id}}">{{title.strip()}}</a></h3>
|
2018-04-12 19:05:28 +02:00
|
|
|
<div class="talk-info">
|
|
|
|
<p>
|
|
|
|
{% if time is defined and day is defined %}
|
|
|
|
{# Vedi http://babel.pocoo.org/en/latest/dates.html #}
|
|
|
|
<span>
|
|
|
|
{{day|dateformat(format='EEEE', locale=lang)}}
|
|
|
|
-
|
|
|
|
{{time.time()|timeformat(format='short', locale=lang)}}
|
2018-06-16 14:41:44 +02:00
|
|
|
{% if duration %} ({{durata_human(duration)}}) {% endif %}
|
2018-04-12 19:05:28 +02:00
|
|
|
</span>
|
|
|
|
{% else %}
|
|
|
|
<i>L'orario non è ancora stato fissato</i>
|
2018-06-16 14:41:44 +02:00
|
|
|
{% if duration %} <p>Durata: {{durata_human(duration)}}</p> {% endif %}
|
2018-04-12 19:05:28 +02:00
|
|
|
{% endif %} {# date-time #}
|
|
|
|
{% if room is defined %}
|
|
|
|
<span>Stanza {{ room }}</span>
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
{% if needs: %}
|
|
|
|
<div class="talk-needs">
|
|
|
|
<strong>Materiale necessario:</strong>
|
|
|
|
{{needs|join(", ")}}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="talk-description">{{text | markdown}}
|
|
|
|
{% if contacts: %}
|
|
|
|
<p class="contacts">A cura di {{contacts|join(', ')}}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% if links or resources or mail: %}
|
|
|
|
<div class="talk-resources">
|
|
|
|
<h4>Link utili:</h4>
|
|
|
|
<ul>
|
|
|
|
{% if links is defined: %}
|
|
|
|
{% for link in links %}
|
|
|
|
<li>{{link|urlize}}</li>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% if resources is defined: %}
|
|
|
|
<li><a href="{{resources}}">Materiali</a></li>
|
|
|
|
{% endif %}
|
|
|
|
{% if mail is defined: %}
|
|
|
|
<li><a href="{{mail}}">Mail</a></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{# vim: set ft=jinja: #}
|