diff --git a/talks/_templates/talk.html b/talks/_templates/talk.html index 5b03f85..0d619de 100644 --- a/talks/_templates/talk.html +++ b/talks/_templates/talk.html @@ -1,3 +1,7 @@ +{% macro durata_human(d) %} +{%- if d >= 60 -%}{{d//60}}h{%- endif -%} +{%- if d % 60 != 0 -%}{{d%60}}m {%- endif -%} +{% endmacro %}
Durata: {{durata_human(duration)}}
{% endif %} {% endif %} {# date-time #} {% if room is defined %} Stanza {{ room }}