talk.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <div id="talk-{{id}}"
  2. class="{% for t in tags -%} tag-{{t|replace(' ', '_')}} {% endfor -%}">
  3. <h3 class="talk-title">{{title}} <a href="#t-cell-{{id}}">[top]</a></h3>
  4. <div class="talk-info">
  5. <p>
  6. {% if time is defined and day is defined %}
  7. {# Vedi http://babel.pocoo.org/en/latest/dates.html #}
  8. <span>
  9. {{day|dateformat(format='EEEE', locale=lang)}}
  10. -
  11. {{time.time()|timeformat(format='short', locale=lang)}}
  12. {% if duration %} (
  13. {%- if duration >= 60 -%}{{duration//60}}h{%- endif -%}
  14. {%- if duration % 60 != 0 -%}{{duration%60}}m {%- endif -%})
  15. {% endif %}
  16. </span>
  17. {% else %}
  18. <i>L'orario non è ancora stato fissato</i>
  19. {% endif %} {# date-time #}
  20. {% if room is defined %}
  21. <span>Stanza {{ room }}</span>
  22. {% endif %}
  23. </p>
  24. {% if needs: %}
  25. <div class="talk-needs">
  26. <strong>Materiale necessario:</strong>
  27. {{needs|join(", ")}}
  28. </div>
  29. {% endif %}
  30. </div>
  31. <div class="talk-description">{{text | markdown}}
  32. {% if contacts: %}
  33. <p class="contacts">A cura di {{contacts|join(', ')}}</p>
  34. {% endif %}
  35. </div>
  36. {% if links or resources or mail: %}
  37. <div class="talk-resources">
  38. <h4>Link utili:</h4>
  39. <ul>
  40. {% if links is defined: %}
  41. {% for link in links %}
  42. <li>{{link|urlize}}</li>
  43. {% endfor %}
  44. {% endif %}
  45. {% if resources is defined: %}
  46. <li><a href="{{resources}}">Materiali</a></li>
  47. {% endif %}
  48. {% if mail is defined: %}
  49. <li><a href="{{mail}}">Mail</a></li>
  50. {% endif %}
  51. </ul>
  52. </div>
  53. {% endif %}
  54. </div>
  55. {# vim: set ft=jinja: #}