Changed grade template logic once again.
[cascardo/eventmanager.git] / templates / index.html
1 {% extends "base.html" %}
2 {% block content %}
3
4 {% if index_sections %}
5 {% for i in index_sections %}
6 <h2>{{ i }}</h2>
7 {{ i.corpo }}
8 <br /><br />
9 {% endfor %}
10 {% endif %}
11
12 {% if news %}
13 <h2>Notícias</h2>
14 <ul id="news">
15     {% for i in news %}
16     <li class="{% cycle odd,even %}">
17         <strong>{{ i.titulo }}</strong> &mdash; <em>{{ i.data_criacao }} (por {{ i.autor }})</em>
18         <p>{{ i.chamada }}</p>
19         <a href="/noticias/{{ i.id }}">Leia mais</a>
20     </li>
21     {% endfor %}
22 </ul>
23 {% endif %}
24
25 {% endblock %}