Changed grade template logic once again.
[cascardo/eventmanager.git] / templates / programacao.html
index 728e1ca..0cf74a4 100644 (file)
@@ -5,6 +5,12 @@
 
 <!--<h2>{{ dados_usuario.nome }}</h2>-->
     {% for p in aprovadas %}
+    {% ifchanged p.dia %}
+      <h3>
+        {{ p.dia|date:"l, d \de F" }}
+      </h3>
+      <br /><br />
+    {% 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>