Bloody template hackers. Hope this works and they don't change semantics later.
[cascardo/eventmanager.git] / templates / grade.html
1 {% extends "base.html" %}
2
3 {% block content %}
4
5 {% if aprovadas %}
6
7   {% for p in aprovadas %}
8     {% if forloop.first %}
9  
10   <h3>
11     {{ p.dia|date:"l, d \de F" }}
12   </h3>
13   <br />
14   <table>
15     <tr>
16
17     {% ifchanged p.dia %}
18     {% endifchanged %}
19
20     {% else %}
21     {% ifchanged p.dia %}
22
23     </tr>
24   </table>
25
26
27   <h3>
28     {{ p.dia|date:"l, d \de F" }}
29   </h3>
30   <br />
31   <table>
32     <tr>
33
34     {% endifchanged %}
35     {% endif %}
36   
37     {% ifchanged p.time_start %}
38
39     </tr>
40     <tr>
41       <td> {{ p.time_start }} </td>
42
43     {% endifchanged %}
44
45       <td> {{ p.titulo }} </td>
46
47     {% if forloop.last %}
48
49     </tr>
50   </table>
51
52     {% endif %}
53   {% endfor %}
54
55 {% else %}
56
57 <div id="404" style="text-align:center">
58     <h2>Padre Quevedo 404</h2>
59     <br />
60     <div style="color:#FF0000;">
61         Usuario nón ecziste!
62     </div>
63 </div>
64
65 {% endif %}
66
67 <br />
68 <a href="javascript:;" onclick="history.back ();">Voltar</a>
69
70 {% endblock %}