diff options
Diffstat (limited to 'sublab_project/news/templates')
-rw-r--r-- | sublab_project/news/templates/news/news_list.html | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ </h3> <p>{{ post.content_html|safe }}</p> {% endfor %} + {% if is_paginated %} + <p> + {% for page in paginator.page_range %} + <a href="?page={{ page }}">{{ page }}</a> + {% endfor %} + </p> + {% endif %} + {% endblock content %} |