From 71f6e0d330adc56693f3cc9cd9f91d206e34e26f Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sun, 28 Mar 2021 11:15:26 -0700 Subject: [PATCH] Show invite request count --- bookwyrm/templates/settings/manage_invite_requests.html | 2 +- bookwyrm/views/invite.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bookwyrm/templates/settings/manage_invite_requests.html b/bookwyrm/templates/settings/manage_invite_requests.html index a7648a7f..7a7088d9 100644 --- a/bookwyrm/templates/settings/manage_invite_requests.html +++ b/bookwyrm/templates/settings/manage_invite_requests.html @@ -23,7 +23,7 @@ {% trans "Ignored Invite Requests" %} {% else %} {% trans "Invite Requests" %} - {% endif %} + {% endif %} ({{ count }}) diff --git a/bookwyrm/views/invite.py b/bookwyrm/views/invite.py index e4b98cba..106afe65 100644 --- a/bookwyrm/views/invite.py +++ b/bookwyrm/views/invite.py @@ -101,6 +101,7 @@ class ManageInviteRequests(View): data = { "ignored": ignored, + "count": paginated.count, "requests": paginated.page(page), } return TemplateResponse(request, "settings/manage_invite_requests.html", data)