diff options
author | Gabriel RodrÃguez Alberich | 2022-12-17 01:06:29 +0100 |
---|---|---|
committer | GitHub | 2022-12-16 17:06:29 -0700 |
commit | fb2eea956ef7416eb755ebecf58db7f9a57215c4 (patch) | |
tree | 0ca587705b99d7caab12bdb3557874c8c41e8356 /templates/activities/notifications.html | |
parent | 45c6978bc397691b22db0360b16b19979eac7dce (diff) | |
download | takahe-fb2eea956ef7416eb755ebecf58db7f9a57215c4.tar.gz takahe-fb2eea956ef7416eb755ebecf58db7f9a57215c4.tar.bz2 takahe-fb2eea956ef7416eb755ebecf58db7f9a57215c4.zip |
Several pagination improvements (#170)
Home/Notification gets pagination, Follows becomes ListView
Diffstat (limited to 'templates/activities/notifications.html')
-rw-r--r-- | templates/activities/notifications.html | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/templates/activities/notifications.html b/templates/activities/notifications.html index 890a2ad..89ca4d8 100644 --- a/templates/activities/notifications.html +++ b/templates/activities/notifications.html @@ -32,7 +32,13 @@ No notifications 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 %} + <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 %} |