Source

christchurch_django / sermons / templates / sermons / index.html

Full commit
{% extends "standard.html" %}
{% load pagination_tags %}
{% block content %}
{{ block.super }}

{% autopaginate sermons 30 %}

{% paginate %}

{% for sermon in sermons %}
  {% ifchanged sermon.date_delivered %}
  <h2>{{ sermon.date_delivered|date:"F j, Y" }}</h2>
  {% endifchanged %}
  <p>{{ sermon.nice_time }}: <a href="{{ sermon.url }}">{{ sermon.speaker }} {% if sermon.title %} - {{ sermon.title }}{% endif %}{% if sermon.nice_passage %} - {{ sermon.nice_passage }}{% endif %}</a></p>
{% endfor %}

{% paginate %}
{% endblock %}