projects
/
cascardo
/
eventmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed grade template logic once again.
[cascardo/eventmanager.git]
/
templates
/
grade.html
diff --git
a/templates/grade.html
b/templates/grade.html
index
b6a3be0
..
aa42124
100644
(file)
--- a/
templates/grade.html
+++ b/
templates/grade.html
@@
-5,24
+5,48
@@
{% if aprovadas %}
{% for p in aprovadas %}
{% if aprovadas %}
{% for p in aprovadas %}
+ {% if forloop.first %}
+
+ <h3>
+ {{ p.dia|date:"l, d \de F" }}
+ </h3>
+ <br />
+ <table>
+ <tr>
+
+ {% else %}
{% ifchanged p.dia %}
{% ifchanged p.dia %}
- <h3>
- {{ p.dia|date:"l, d \de F" }}
- </h3>
- <br /><br />
- <table>
- <tr>
- {% endifchanged %}
- {% ifchanged p.time_start %}
- </tr>
- <tr>
- <td> p.time_start </td>
+
+ </tr>
+ </table>
+
+
+ <h3>
+ {{ p.dia|date:"l, d \de F" }}
+ </h3>
+ <br />
+ <table>
+ <tr>
+
{% endifchanged %}
{% endifchanged %}
- <td>p.titulo</td>
- {% ifchanged p.dia %}
- </tr>
- </table>
+ {% endif %}
+
+ {% ifchanged p.time_start %}
+
+ </tr>
+ <tr>
+ <td> {{ p.time_start }} </td>
+
{% endifchanged %}
{% endifchanged %}
+
+ <td> {{ p.titulo }} </td>
+
+ {% if forloop.last %}
+
+ </tr>
+ </table>
+
+ {% endif %}
{% endfor %}
{% else %}
{% endfor %}
{% else %}
@@
-37,6
+61,7
@@
{% endif %}
{% endif %}
+<br />
<a href="javascript:;" onclick="history.back ();">Voltar</a>
{% endblock %}
<a href="javascript:;" onclick="history.back ();">Voltar</a>
{% endblock %}