diff --git a/bookwyrm/templates/settings/invites/manage_invite_requests.html b/bookwyrm/templates/settings/invites/manage_invite_requests.html index bdd60099a..59eca25d5 100644 --- a/bookwyrm/templates/settings/invites/manage_invite_requests.html +++ b/bookwyrm/templates/settings/invites/manage_invite_requests.html @@ -28,86 +28,88 @@ {% include 'settings/invites/invite_request_filters.html' %} - - {% url 'settings-invite-requests' as url %} - - - - - {% if site.invite_request_question %} - - {% endif %} - - - - {% if not requests %} - - {% endif %} - {% for req in requests %} - - - - - {% if site.invite_request_question %} - - {% endif %} - + + {% endfor %} +
- {% trans "Date requested" as text %} - {% include 'snippets/table-sort-header.html' with field="created_date" sort=sort text=text %} - - {% trans "Date accepted" as text %} - {% include 'snippets/table-sort-header.html' with field="invite__invitees__created_date" sort=sort text=text %} - {% trans "Email" %}{% trans "Answer" %} - {% trans "Status" as text %} - {% include 'snippets/table-sort-header.html' with field="invite__times_used" sort=sort text=text %} - {% trans "Action" %}
{% trans "No requests" %}
{{ req.created_date | naturaltime }}{{ req.invite.invitees.first.created_date | naturaltime }}{{ req.email }}{{ req.answer }} - {% if req.invite.times_used %} - {% trans "Accepted" %} - {% elif req.invite %} - {% trans "Sent" %} - {% else %} - {% trans "Requested" %} +
+ + {% url 'settings-invite-requests' as url %} + + + + + {% if site.invite_request_question %} + {% endif %} - - + + + {% if not requests %} + + {% endif %} + {% for req in requests %} + + + + + {% if site.invite_request_question %} + + {% endif %} + + - - {% endfor %} -
+ {% trans "Date requested" as text %} + {% include 'snippets/table-sort-header.html' with field="created_date" sort=sort text=text %} + + {% trans "Date accepted" as text %} + {% include 'snippets/table-sort-header.html' with field="invite__invitees__created_date" sort=sort text=text %} + {% trans "Email" %}{% trans "Answer" %}
- {# no invite OR invite not yet used #} - {% if not req.invite.times_used %} -
- {% csrf_token %} - - {% if not req.invite %} - +
+ {% trans "Status" as text %} + {% include 'snippets/table-sort-header.html' with field="invite__times_used" sort=sort text=text %} + {% trans "Action" %}
{% trans "No requests" %}
{{ req.created_date | naturaltime }}{{ req.invite.invitees.first.created_date | naturaltime }}{{ req.email }}{{ req.answer }} + {% if req.invite.times_used %} + {% trans "Accepted" %} + {% elif req.invite %} + {% trans "Sent" %} {% else %} - + {% trans "Requested" %} + {% endif %} +
+ {# no invite OR invite not yet used #} + {% if not req.invite.times_used %} + + {% csrf_token %} + + {% if not req.invite %} + + {% else %} + + {% endif %} + {% 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 }} - {% else %} -   - {% endif %} - {% else %} -
- {% csrf_token %} - - {% if not req.ignored %} - + {# 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 }} {% else %} - +   {% endif %} -
- {% endif %} -
+ {% else %} +
+ {% csrf_token %} + + {% if not req.ignored %} + + {% else %} + + {% endif %} +
+ {% endif %} +
+ {% include 'snippets/pagination.html' with page=requests path=request.path %} {% if ignored %}