From 1be102797f4b0a1519211387364501a583e1df40 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Tue, 9 Oct 2007 17:23:26 -0300 Subject: [PATCH] Changed grade template logic. --- templates/grade.html | 55 ++++++++++++++++++++++++++++++++------------ 1 file changed, 40 insertions(+), 15 deletions(-) diff --git a/templates/grade.html b/templates/grade.html index 44858af..59c156a 100644 --- a/templates/grade.html +++ b/templates/grade.html @@ -5,24 +5,48 @@ {% if aprovadas %} {% for p in aprovadas %} - {% ifchanged p.dia %} -

- {{ p.dia|date:"l, d \de F" }} -

-

- - - {% endifchanged %} - {% ifchanged p.time_start %} - - - + {% if forloop.first %} + +

+ {{ p.dia|date:"l, d \de F" }} +

+
+
{{ p.time_start }}
+ + + {% endif %} + + {% ifchanged p.time_start %} + + + + + {% endifchanged %} - + + + {% ifchanged p.dia %} - -
{{ p.time_start }} {{ p.titulo }} {{ p.titulo }}
+ + + + + +

+ {{ p.dia|date:"l, d \de F" }} +

+
+ + + {% endifchanged %} + + {% if forloop.last %} + + +
+ + {% endif %} {% endfor %} {% else %} @@ -37,6 +61,7 @@ {% endif %} +
Voltar {% endblock %} -- 2.20.1