{% 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_dn %}
{{ ' |
{{ '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 {{ invite.valid_until.strftime('%Y-%m-%d') }} {% else %} Valid, expires {{ invite.valid_until.strftime('%Y-%m-%d') }} {% endif %} |