Merge ssh://holoscopio.com/var/www/cascardo/eventmanager
[cascardo/eventmanager.git] / templates / index.html
index efdbab8..fb29e70 100644 (file)
@@ -1,12 +1,19 @@
 {% extends "base.html" %}
 {% block content %}
 
+{% if index_sections %}
+{% for i in index_sections %}
+<h2>{{ i }}</h2>
+{{ i.corpo }}
+<br /><br />
+{% endfor %}
+{% endif %}
+
 {% if news %}
-<hr />
 <h2>Notícias</h2>
 <ul id="news">
     {% for i in news %}
-    <li>
+    <li class="{% cycle odd,even %}">
         <strong>{{ i.titulo }}</strong> &mdash; <em>{{ i.data_criacao }} (por {{ i.autor }})</em>
         <p>{{ i.chamada }}</p>
         <a href="/noticias/{{ i.id }}">Leia mais</a>