diff --git a/templates/results.html b/templates/results.html index e2ade2a..76e441f 100644 --- a/templates/results.html +++ b/templates/results.html @@ -66,76 +66,81 @@ ${t['title']} - - - - - - - - - - - <%! - from datetime import datetime - %> - % for r in results: + % if not results: +

Ainda não há resultados

+ + % else: +
#NomeNota
+ - - - - + + + + + + + <%! + from datetime import datetime + %> + % for r in results: + + + + + - + - - % endfor - -
- % if loop.index == 0: -

- - 1º - -

- % else: - - ${loop.index+1} - - % endif -
- % if loop.index == 0: -

${r[1]}

- % else: - ${r[1]} - % endif -
-
- % if r[2] < 10: -
- % elif r[2] < 15: -
+
#NomeNota
+ % if loop.index == 0: +

+ + 1º + +

+ % else: + + ${loop.index+1} + + % endif +
+ % if loop.index == 0: +

${r[1]}

% else: -
+ ${r[1]} % endif - ${'{:.1f}'.format(r[2])} +
+
+ % if r[2] < 10: +
+ % elif r[2] < 15: +
+ % else: +
+ % endif + ${'{:.1f}'.format(r[2])} +
-
-
- <% - dt = datetime.now() - datetime.strptime(r[3], '%Y-%m-%d %H:%M:%S.%f') - %> - - % if dt.days > 0: - ${dt.days}d - % elif dt.seconds >= 3600: - (${dt.seconds // 3600} horas - % elif dt.seconds >= 60: - (${dt.seconds // 60} minutos - % else: - (${dt.seconds} segundos - % endif + + <% + dt = datetime.now() - datetime.strptime(r[3], '%Y-%m-%d %H:%M:%S.%f') + %> + + % if dt.days > 0: + ${dt.days}d + % elif dt.seconds >= 3600: + (${dt.seconds // 3600} horas + % elif dt.seconds >= 60: + (${dt.seconds // 60} minutos + % else: + (${dt.seconds} segundos + % endif - -
+ + + + % endfor + + + % endif -- libgit2 0.21.2