default.txt 296 B

123456789101112131415
  1. {% if articles|length %}
  2. {% for article in articles %}
  3. {% custom %}
  4. {# Striped table #}
  5. <tr class="{% cycle odd,even %}">
  6. <td>{{ article|default:"Hi... " }}</td>
  7. <td {% if article.today %}class="today"{% endif %}>
  8. Published on {{ article.date }}
  9. </td>
  10. </tr>
  11. {% endfor %}
  12. {% endif %}