diff options
Diffstat (limited to 'templates/activities/follows.html')
-rw-r--r-- | templates/activities/follows.html | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/templates/activities/follows.html b/templates/activities/follows.html index 18c7811..e2c0ece 100644 --- a/templates/activities/follows.html +++ b/templates/activities/follows.html @@ -4,17 +4,17 @@ {% block content %} <section class="icon-menu"> - {% for identity, details in identities %} + {% for identity, follow_type in page_obj %} <a class="option" href="{{ identity.urls.view }}"> <img src="{{ identity.local_icon_url.relative }}"> <span class="handle"> {{ identity.html_name_or_handle }} <small>@{{ identity.handle }}</small> </span> - {% if details.outbound %} + {% if follow_type == "outbound" %} <span class="pill">Following</span> {% endif %} - {% if details.inbound %} + {% if follow_type == "inbound" %} <span class="pill">Follows You</span> {% endif %} </a> @@ -22,4 +22,14 @@ <p class="option empty">You have no follows.</p> {% endfor %} </section> + + <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 %} |