From b7c7c66013557e093a838a84b9b0e7cbaf05e12a Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 22 Nov 2022 08:57:40 -0700 Subject: Start adding pagniation to timelines --- templates/activities/local.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'templates/activities/local.html') diff --git a/templates/activities/local.html b/templates/activities/local.html index 79ce9a3..b6f246e 100644 --- a/templates/activities/local.html +++ b/templates/activities/local.html @@ -3,9 +3,13 @@ {% block title %}Local Timeline{% endblock %} {% block content %} - {% for post in posts %} + {% for post in page_obj %} {% include "activities/_post.html" %} {% empty %} No posts yet. {% endfor %} + + {% if page_obj.has_next %} +
Next Page
+ {% endif %} {% endblock %} -- cgit v1.2.3