Bloody template hackers. Hope this works and they don't change semantics later.
[cascardo/eventmanager.git] / templates / grade.html
index 59c156a..13796b4 100644 (file)
   <table>
     <tr>
 
-    {% endif %}
-
-    {% ifchanged p.time_start %}
-
-    </tr>
-    <tr>
-      <td> {{ p.time_start }} </td>
-
+    {% ifchanged p.dia %}
     {% endifchanged %}
 
-      <td> {{ p.titulo }} </td>
-
+    {% else %}
     {% ifchanged p.dia %}
 
     </tr>
     <tr>
 
     {% endifchanged %}
+    {% endif %}
   
+    {% ifchanged p.time_start %}
+
+    </tr>
+    <tr>
+      <td> {{ p.time_start }} </td>
+
+    {% endifchanged %}
+
+      <td> {{ p.titulo }} </td>
+
     {% if forloop.last %}
 
     </tr>