2021-06-13 09:43:30 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
<p>
|
2022-01-10 08:59:48 +00:00
|
|
|
Hello, {{ user.preferred_username }} 👋
|
2021-06-13 09:43:30 +00:00
|
|
|
<small>(<a href="{{ url_for('logout') }}">logout</a>)</small>
|
|
|
|
</p>
|
2022-01-10 08:59:48 +00:00
|
|
|
|
|
|
|
{% if user.preferred_username in invites and invites[user.preferred_username]|length > 0 %}
|
|
|
|
<table>
|
2021-06-13 09:43:30 +00:00
|
|
|
<tr>
|
2022-01-10 08:59:48 +00:00
|
|
|
<th>Link</th>
|
|
|
|
<th>Validity</th>
|
|
|
|
<th>Actions</th>
|
2021-06-13 09:43:30 +00:00
|
|
|
</tr>
|
2022-01-10 08:59:48 +00:00
|
|
|
{% for invite in invites[user.preferred_username] %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a class="invite" href="{{ url_for('register_invite', invite=invite.link) }}">
|
|
|
|
{{ url_for('register_invite', invite=invite.link) }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td> {{ invite.validity }} </td>
|
|
|
|
<td> <a href="{{ url_for('invite_keycloak_delete') }}?invite={{ invite.link }}">delete</a> </td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
2021-06-13 09:43:30 +00:00
|
|
|
<p>
|
|
|
|
<a href="{{ url_for('invite_keycloak_create') }}">Generate an invite link</a>
|
|
|
|
</p>
|
|
|
|
{% endblock %}
|