{% extends 'base.html' %} {% block body %}
{{_('Link')}} | {{_('Created by')}} | {{_('Permissions')}} | {{_('Usages')}} | {{_('Status')}} | |
---|---|---|---|---|---|
{% if invite.creator == request.user and invite.active %}
{{ invite.short_token }}
{% else %}
{{ invite.short_token }}
{% endif %}
|
{% if not invite.creator %}
{{ ' |
{{ _('Signup') if invite.allow_signup }}{{ ', ' if invite.allow_signup and invite.roles }} {% for role in invite.roles %}{{ ', ' if loop.index != 1 }} {{ role.name }}{% endfor %} | {{ invite.signups|selectattr('completed')|list|length }} , {{ invite.grants|length }} | {% if invite.disabled %} {{_('Disabled')}} {% elif invite.voided %} {{_('Voided')}} {% elif invite.expired %} {{_('Expired')}} {% elif not invite.permitted %} {{_('Invalid, unpermitted creator')}} {% elif not invite.active %} {{_('Invalid')}} {% elif invite.single_use %} {{ _('Valid once, expires %(expiry_date)s', expiry_date=invite.valid_until|dateformat) }} {% else %} {{ _('Valid, expires %(expiry_date)s', expiry_date=invite.valid_until|dateformat) }} {% endif %} |