<buttontype="button"class="btn btn-link btn-sm p-0 copy-clipboard"data-copy="{{ url_for('invite.use', token=invite.token, _external=True) }}"title="Copy link to clipboard"><iclass="fas fa-clipboard"></i></button>
<buttontype="button"class="btn btn-link btn-sm p-0"data-toggle="modal"data-target="#modal-{{ invite.id }}-qrcode"title="Show link as QR code"><iclass="fas fa-qrcode"></i></button>
{% else %}
{% else %}
<code>{{ invite.short_token }}</code>
<code>{{ invite.short_token }}</code>
{% endif %}
{% endif %}
</td>
</td>
<td>
{% if not invite.creator_dn %}
{{ '<admin>' }}
{% elif not invite.creator %}
{{ '<deleteduser>' }}
{% else %}
{{ invite.creator.loginname }}
{% endif %}
</td>
<td>
{{ 'Signup' if invite.allow_signup }}{{ ', ' if invite.allow_signup and invite.roles }}
{% for role in invite.roles %}{{ ', ' if loop.index != 1 }}<iclass="fas fa-key"></i> {{ role.name }}{% endfor %}