Browse files

Next/previous event navigation in detail view.

  • Loading branch information...
1 parent dfca27e commit 65c47ead4f86110a36b669939c9d9907333abb17 @dokterbob dokterbob committed Oct 14, 2008
Showing with 6 additions and 0 deletions.
  1. +6 −0 demo/templates/agenda/event_archive.html
View
6 demo/templates/agenda/event_archive.html
@@ -83,6 +83,12 @@
{% if event %}
<div class="event">
+ {% if event.get_next_by_event_date.event_date %}
+ <a href="{% url agenda-detail event.get_next_by_event_date.event_date.year event.get_next_by_event_date.event_date.month event.get_next_by_event_date.event_date.day event.get_next_by_event_date.slug %}">Next: {{ event.get_next_by_event_date }}</a>
+ {% endif %}
+ {% if event.get_previous_by_event_date.event_date %}
+ <a href="{% url agenda-detail event.get_previous_by_event_date.event_date.year event.get_previous_by_event_date.event_date.month event.get_previous_by_event_date.event_date.day event.get_previous_by_event_date.slug %}">Previous: {{ event.get_previous_by_event_date }}</a>
+ {% endif %}
<h1>Event: {{ event.slug }}</h1>
{% if event.start_time %}
<div class="event_time">

0 comments on commit 65c47ea

Please sign in to comment.