summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/activities/federated.html10
-rw-r--r--templates/activities/local.html6
-rw-r--r--templates/activities/notifications.html8
3 files changed, 12 insertions, 12 deletions
diff --git a/templates/activities/federated.html b/templates/activities/federated.html
index 4b57b9d..9e61b6b 100644
--- a/templates/activities/federated.html
+++ b/templates/activities/federated.html
@@ -1,11 +1,3 @@
-{% extends "base.html" %}
+{% extends "activities/local.html" %}
{% block title %}Federated Timeline{% endblock %}
-
-{% block content %}
- {% for post in posts %}
- {% include "activities/_post.html" %}
- {% empty %}
- No posts yet.
- {% endfor %}
-{% endblock %}
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 %}
+ <div class="load-more"><a class="button" href=".?page={{ page_obj.next_page_number }}">Next Page</a></div>
+ {% endif %}
{% endblock %}
diff --git a/templates/activities/notifications.html b/templates/activities/notifications.html
index 9bf66bb..a9c51be 100644
--- a/templates/activities/notifications.html
+++ b/templates/activities/notifications.html
@@ -3,9 +3,13 @@
{% block title %}Notifications{% endblock %}
{% block content %}
- {% for event in events %}
+ {% for event in page_obj %}
{% include "activities/_event.html" %}
{% empty %}
- No events yet.
+ No notirications yet.
{% endfor %}
+
+ {% if page_obj.has_next %}
+ <div class="load-more"><a class="button" href=".?page={{ page_obj.next_page_number }}">Next Page</a></div>
+ {% endif %}
{% endblock %}