{% extends 'settings/layout.html' %} {% load i18n %} {% load humanize %} {% block header %}{% trans "Invite Requests" %}{% endblock %} {% block panel %}

{% if ignored %} {% trans "Ignored Invite Requests" %} {% else %} {% trans "Invite Requests" %} {% endif %} ({{ count }})

{% 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" %} {% endif %}
{# no invite OR invite not yet used #} {% if not req.invite.times_used %}
{% csrf_token %} {% if not req.invite %} {% else %} {% 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 %} {% else %} {% endif %}
{% endif %}
{% include 'snippets/pagination.html' with page=requests path=request.path %} {% if ignored %}

{% trans "Back to pending requests" %}

{% else %}

{% trans "View ignored requests" %}

{% endif %}
{% endblock %}