From 5b2c404d2955599bb50635b05d9191cb4bd6e34d Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Fri, 30 Dec 2011 02:19:39 +0100 Subject: Improve ListView for news --- sublab_project/news/templates/news/news_list.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sublab_project/news/templates') diff --git a/sublab_project/news/templates/news/news_list.html b/sublab_project/news/templates/news/news_list.html index 6330ffb..ea46320 100644 --- a/sublab_project/news/templates/news/news_list.html +++ b/sublab_project/news/templates/news/news_list.html @@ -8,4 +8,12 @@

{{ post.content_html|safe }}

{% endfor %} + {% if is_paginated %} +

+ {% for page in paginator.page_range %} + {{ page }} + {% endfor %} +

+ {% endif %} + {% endblock content %} -- cgit v1.2.1