From 00795f119eeb4b8eb1330b7959ca5ef93accc64b Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Fri, 16 Dec 2022 17:24:56 -0700 Subject: Split Follows page into two types This overcomes the query problem of pulling a combined list --- templates/activities/follows.html | 20 +++++++++++++++----- templates/activities/home.html | 4 ++-- templates/activities/local.html | 4 ++-- templates/activities/notifications.html | 4 ++-- 4 files changed, 21 insertions(+), 11 deletions(-) (limited to 'templates/activities') diff --git a/templates/activities/follows.html b/templates/activities/follows.html index e2c0ece..bc2db7d 100644 --- a/templates/activities/follows.html +++ b/templates/activities/follows.html @@ -3,18 +3,28 @@ {% block subtitle %}Follows{% endblock %} {% block content %} +
+ {% if inbound %} + Your Follows + Follows You + {% else %} + Your Follows + Follows You + {% endif %} +
+
- {% for identity, follow_type in page_obj %} + {% for identity in page_obj %} {{ identity.html_name_or_handle }} @{{ identity.handle }} - {% if follow_type == "outbound" %} + {% if identity.id in outbound_ids %} Following {% endif %} - {% if follow_type == "inbound" %} + {% if identity.id in inbound_ids %} Follows You {% endif %} @@ -25,11 +35,11 @@ {% endblock %} diff --git a/templates/activities/home.html b/templates/activities/home.html index 06fa88c..8d9d39c 100644 --- a/templates/activities/home.html +++ b/templates/activities/home.html @@ -24,11 +24,11 @@ {% endblock %} diff --git a/templates/activities/local.html b/templates/activities/local.html index c3d180b..55f9090 100644 --- a/templates/activities/local.html +++ b/templates/activities/local.html @@ -11,11 +11,11 @@ {% endblock %} diff --git a/templates/activities/notifications.html b/templates/activities/notifications.html index 89ca4d8..8b7bc13 100644 --- a/templates/activities/notifications.html +++ b/templates/activities/notifications.html @@ -34,11 +34,11 @@ {% endblock %} -- cgit v1.2.3