From fa57d6cfc74fc1949796c29eb9582ed19420fbb3 Mon Sep 17 00:00:00 2001
From: Adam Kelly
Date: Fri, 13 Mar 2020 14:58:30 +0000
Subject: [PATCH] Include accept/delete buttons in notifications list.
---
fedireads/templates/notifications.html | 1 +
.../templates/snippets/follow_request_buttons.html | 10 ++++++++++
fedireads/templates/user.html | 11 +----------
3 files changed, 12 insertions(+), 10 deletions(-)
create mode 100644 fedireads/templates/snippets/follow_request_buttons.html
diff --git a/fedireads/templates/notifications.html b/fedireads/templates/notifications.html
index 5ded6af9e..f19ae9fa8 100644
--- a/fedireads/templates/notifications.html
+++ b/fedireads/templates/notifications.html
@@ -29,6 +29,7 @@
{% elif notification.notification_type == 'FOLLOW_REQUEST' %}
{% include 'snippets/username.html' with user=notification.related_user %}
sent you a follow request
+ {% include 'snippets/follow_request_buttons.html' with user=notification.related_user %}
{% endif %}
{{ notification.created_date | naturaltime }}
diff --git a/fedireads/templates/snippets/follow_request_buttons.html b/fedireads/templates/snippets/follow_request_buttons.html
new file mode 100644
index 000000000..97aeb745e
--- /dev/null
+++ b/fedireads/templates/snippets/follow_request_buttons.html
@@ -0,0 +1,10 @@
+
+
diff --git a/fedireads/templates/user.html b/fedireads/templates/user.html
index ec51b9db5..a3eeaaf9b 100644
--- a/fedireads/templates/user.html
+++ b/fedireads/templates/user.html
@@ -27,16 +27,7 @@
{% for requester in user.follower_requests.all %}
{% include 'snippets/username.html' with user=requester show_full=True %}
-
-
+ {% include 'snippets/follow_request_buttons.html' with user=requester %}
{% endfor %}