durata talk senza orario
This commit is contained in:
parent
72a7f33960
commit
17b88bc3b1
1 changed files with 6 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
{% macro durata_human(d) %}
|
||||
{%- if d >= 60 -%}{{d//60}}h{%- endif -%}
|
||||
{%- if d % 60 != 0 -%}{{d%60}}m {%- endif -%}
|
||||
{% endmacro %}
|
||||
<div id="talk-{{id}}"
|
||||
class="{% for t in tags -%} tag-{{t|replace(' ', '_')}} {% endfor -%}">
|
||||
<h3 class="talk-title"><a href="#t-cell-{{id}}">{{title.strip()}}</a></h3>
|
||||
|
@ -9,13 +13,11 @@
|
|||
{{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 %}
|
||||
{% if duration %} ({{durata_human(duration)}}) {% endif %}
|
||||
</span>
|
||||
{% else %}
|
||||
<i>L'orario non è ancora stato fissato</i>
|
||||
{% if duration %} <p>Durata: {{durata_human(duration)}}</p> {% endif %}
|
||||
{% endif %} {# date-time #}
|
||||
{% if room is defined %}
|
||||
<span>Stanza {{ room }}</span>
|
||||
|
|
Loading…
Reference in a new issue