1
0
Fork 0
sito-hackit-17/talks/_templates/talk.html

58 lines
1.8 KiB
HTML
Raw Permalink Normal View History

2017-05-24 11:33:36 +02:00
<div id="talk-{{id}}"
class="{% for t in tags -%} tag-{{t|replace(' ', '_')}} {% endfor -%}">
<h3 class="talk-title">{{title}} <a href="#t-cell-{{id}}">[top]</a></h3>
2017-05-03 01:43:18 +02:00
<div class="talk-info">
2017-05-18 20:38:59 +02:00
<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)}}
{% if duration %} (
{%- if duration >= 60 -%}{{duration//60}}h{%- endif -%}
{%- if duration % 60 != 0 -%}{{duration%60}}m {%- endif -%})
{% endif %}
2017-05-18 20:38:59 +02:00
</span>
2017-05-03 01:43:18 +02:00
{% else %}
2017-05-18 20:38:59 +02:00
<i>L'orario non è ancora stato fissato</i>
{% endif %} {# date-time #}
2017-05-03 01:43:18 +02:00
{% if room is defined %}
2017-05-18 20:38:59 +02:00
<span>Stanza {{ room }}</span>
2017-05-03 01:43:18 +02:00
{% endif %}
2017-05-18 20:38:59 +02:00
</p>
{% if needs: %}
2017-05-17 13:21:35 +02:00
<div class="talk-needs">
<strong>Materiale necessario:</strong>
{{needs|join(", ")}}
</div>
{% endif %}
2017-05-03 01:43:18 +02:00
</div>
2017-05-17 13:21:35 +02:00
<div class="talk-description">{{text | markdown}}
{% if contacts: %}
<p class="contacts">A cura di {{contacts|join(', ')}}</p>
{% endif %}
</div>
2017-06-07 15:32:34 +02:00
{% if links or resources or mail: %}
2017-05-03 01:43:18 +02:00
<div class="talk-resources">
<h4>Link utili:</h4>
<ul>
{% if links is defined: %}
{% for link in links %}
2017-05-17 13:21:35 +02:00
<li>{{link|urlize}}</li>
2017-05-03 01:43:18 +02:00
{% 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>
2017-06-07 15:32:34 +02:00
{% endif %}
2017-05-03 01:43:18 +02:00
</div>
{# vim: set ft=jinja: #}