From b9bff315625c42d64109e84583c3011192e2c459 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 1 Apr 2021 18:00:39 -0700 Subject: [PATCH] Show accepter in invite request view --- .../templates/settings/manage_invite_requests.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bookwyrm/templates/settings/manage_invite_requests.html b/bookwyrm/templates/settings/manage_invite_requests.html index 03ddd2104..f28118bf5 100644 --- a/bookwyrm/templates/settings/manage_invite_requests.html +++ b/bookwyrm/templates/settings/manage_invite_requests.html @@ -59,6 +59,8 @@ {% endif %} + {# no invite OR invite not yet used #} + {% if not req.invite.times_used %}
{% csrf_token %} @@ -68,9 +70,16 @@ {% endif %}
+ {% endif %} + {# invite created but not used #} {% if req.invite and not req.invite.times_used %} {# #} + {% elif req.invite %} + {# accepted #} + {% if req.invite.invitees.exists %} + @{{ req.invite.invitees.first.localname }} + {% endif %} {% else %}
{% csrf_token %} @@ -78,7 +87,7 @@ {% if not req.ignored %} {% else %} - + {% endif %}
{% endif %}