Grade is now a table
authorThadeu Lima de Souza Cascardo <cascardo@vespa.holoscopio.com>
Tue, 9 Oct 2007 20:05:23 +0000 (17:05 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@vespa.holoscopio.com>
Tue, 9 Oct 2007 20:05:23 +0000 (17:05 -0300)
templates/grade.html

index 0cf74a4..b6a3be0 100644 (file)
@@ -1,28 +1,32 @@
 {% extends "base.html" %}
+
 {% block content %}
 
 {% if aprovadas %}
 
-<!--<h2>{{ dados_usuario.nome }}</h2>-->
-    {% for p in aprovadas %}
+  {% for p in aprovadas %}
     {% 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>
+    {% endifchanged %}
+    <td>p.titulo</td>
+    {% ifchanged p.dia %}
+      </tr>
+      </table>
     {% endifchanged %}
-    <span style="font-size:12pt"><a href="/palestra/{{p.id}}/" style="color:#333;">{{p.titulo}}</a></span>
-        <br />
-        <span style="font-weight:bolder;margin-left:15px">Palestrante{{ p.palestrante.all|pluralize }}:</span>
-        <br />
-            {% for x in p.palestrante.all %}
-        <span style="margin-left:30px">
-            <a href="/palestrante/{{x.id}}/">{{x.nome|capfirst}} </a>{% ifnotequal p.palestrante.all|length 1%}<br /> {% endifnotequal %}
-        </span>
-            {% endfor %}
-        <br />
-    {% endfor %}
+  {% endfor %}
+
 {% else %}
+
 <div id="404" style="text-align:center">
     <h2>Padre Quevedo 404</h2>
     <br />
@@ -30,7 +34,9 @@
         Usuario nón ecziste!
     </div>
 </div>
+
 {% endif %}
 
 <a href="javascript:;" onclick="history.back ();">Voltar</a>
+
 {% endblock %}