forked from boyska/sito-hackit-17
45 lines
1.4 KiB
Django/Jinja
45 lines
1.4 KiB
Django/Jinja
<div id="talk-{{id}}">
|
|
<h3 class="talk-title">{{title}}</h3>
|
|
<div class="talk-info">
|
|
{% if time is defined and day is defined %}
|
|
{# Vedi http://babel.pocoo.org/en/latest/dates.html #}
|
|
<p>{{day|dateformat(format='EEEE', locale=lang)}} - {{time.time()|timeformat(format='short', locale=lang)}}</p>
|
|
{% else %}
|
|
<p><i>L'orario non è ancora stato fissato</i></p>
|
|
{% endif %}
|
|
{% if room is defined %}
|
|
<p>Stanza {{ room }}</p>
|
|
{% endif %}
|
|
{% 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 is defined or resources is defined or mail is defined %}
|
|
<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>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
{# vim: set ft=jinja: #}
|