summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-22 18:39:15 -0700
committerAndrew Godwin2022-11-22 18:39:15 -0700
commit47de2c4424ae257917721652578c034f0216fd9b (patch)
tree698cee5ff9a9aaa8c8db534ce0fa44e2700abe96 /templates
parent05ed5989e3436108f9a7bd443b0f79b7ee407f26 (diff)
downloadtakahe-47de2c4424ae257917721652578c034f0216fd9b.tar.gz
takahe-47de2c4424ae257917721652578c034f0216fd9b.tar.bz2
takahe-47de2c4424ae257917721652578c034f0216fd9b.zip
Fix profile page post listing
Diffstat (limited to 'templates')
-rw-r--r--templates/identity/view.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/identity/view.html b/templates/identity/view.html
index bf60c2e..f69ce9a 100644
--- a/templates/identity/view.html
+++ b/templates/identity/view.html
@@ -56,9 +56,13 @@
{% endif %}
{% endif %}
- {% for post in posts %}
+ {% for post in page_obj %}
{% include "activities/_post.html" %}
{% empty %}
<span class="empty">No posts yet.</a>
{% 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 %}