]> git.parisson.com Git - mezzo.git/commitdiff
next previous by start date
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 13 Apr 2016 08:15:24 +0000 (10:15 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 13 Apr 2016 08:15:24 +0000 (10:15 +0200)
app/templates/agenda/event_detail.html

index 4a26e3f78d3f2f46d6748c709fbae8be002fccd2..2dc651166a7aeb5397dc9d77ad92a66bf6fd1762 100644 (file)
 
 {% block event_previous_next %}
 <ul class="split-container pager">
-    {% with event.get_previous_by_publish_date as previous %}
+    {% with event.get_previous_by_start_date as previous %}
         {% if previous %}
             <li class="split-left">
                 <a href="{{ previous.get_absolute_url }}" class="pager__item--before event__meta__btn">&larr; {% trans "Previous event" %}</a>
         {% endif %}
     {% endwith %}
 
-    {% with event.get_next_by_publish_date as next %}
+    {% with event.get_next_by_start_date as next %}
         {% if next %}
             <li class="split-right">
                 <a href="{{ next.get_absolute_url }}" class="pager__item--after event__meta__btn">{% trans "Next event" %} &rarr;</a>