From c126e595e59a9f52574113620986897fa4279b09 Mon Sep 17 00:00:00 2001 From: boyska Date: Fri, 9 Jun 2017 12:03:23 +0200 Subject: [PATCH] aggiunta durata nella descrizione dei talk --- talks/_templates/talk.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/talks/_templates/talk.html b/talks/_templates/talk.html index 366de2b..fdc0318 100644 --- a/talks/_templates/talk.html +++ b/talks/_templates/talk.html @@ -9,6 +9,10 @@ {{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 %} {% else %} L'orario non รจ ancora stato fissato