Mercurial > public > madeira
diff madeira/templates/news/news_list.html @ 47:0e51e5be34b9
For issue #4, create an articles application and import old data.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 20 Mar 2012 19:47:20 -0500 |
parents | 966cde8635c0 |
children | 0176eca97d1d |
line wrap: on
line diff
--- a/madeira/templates/news/news_list.html Thu Mar 15 20:04:42 2012 -0500 +++ b/madeira/templates/news/news_list.html Tue Mar 20 19:47:20 2012 -0500 @@ -11,23 +11,11 @@ {% endif %} <div>{{ story.content|safe }}</div> {% endfor %} + + {% include 'pagination.html' %} + {% else %} <p>No news at this time.</p> {% endif %} -<div class="pagination"> - <span class="step-links"> - {% if page_obj.has_previous %} - <a href="?page={{ page_obj.previous_page_number }}">« Previous</a> - {% endif %} - - <span class="current"> - Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }} - </span> - - {% if page_obj.has_next %} - <a href="?page={{ page_obj.next_page_number }}">Next »</a> - {% endif %} - </span> -</div> {% endblock %}