Merge git://hammerboy.no-ip.org/eventmanager
[cascardo/eventmanager.git] / templates / index.html
index beced90..fb29e70 100644 (file)
@@ -1,6 +1,25 @@
 {% extends "base.html" %}
 {% block content %}
 
-teste
+{% if index_sections %}
+{% for i in index_sections %}
+<h2>{{ i }}</h2>
+{{ i.corpo }}
+<br /><br />
+{% endfor %}
+{% endif %}
+
+{% if news %}
+<h2>Notícias</h2>
+<ul id="news">
+    {% for i in news %}
+    <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>
+    </li>
+    {% endfor %}
+</ul>
+{% endif %}
 
 {% endblock %}