summaryrefslogtreecommitdiffstats
path: root/templates/activities/home.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/activities/home.html')
-rw-r--r--templates/activities/home.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/templates/activities/home.html b/templates/activities/home.html
index 546da0d..06fa88c 100644
--- a/templates/activities/home.html
+++ b/templates/activities/home.html
@@ -4,7 +4,7 @@
{% block title %}Home{% endblock %}
{% block content %}
- {% for event in events %}
+ {% for event in page_obj %}
{% if event.type == "post" %}
{% include "activities/_post.html" with post=event.subject_post %}
{% elif event.type == "boost" %}
@@ -21,4 +21,14 @@
{% empty %}
Nothing to show yet.
{% endfor %}
+
+ <div class="pagination">
+ {% if page_obj.has_previous %}
+ <div class="load-more"><a class="button" href=".?page={{ page_obj.previous_page_number }}">Previous Page</a></div>
+ {% endif %}
+
+ {% if page_obj.has_next %}
+ <div class="load-more"><a class="button" href=".?page={{ page_obj.next_page_number }}">Next Page</a></div>
+ {% endif %}
+ </div>
{% endblock %}