keycloak-collective-portal/templates/admin.html

29 lines
814 B
HTML
Raw Normal View History

2021-06-11 20:28:43 +00:00
<html>
<head>
<title>Home</title>
</head>
<body>
<p>
Hello, {{ user.preferred_username }}
<small>(<a href="{{ url_for('logout') }}">logout</a>)</small>
</p>
2021-06-12 00:15:50 +00:00
<table>
<tr>
<th>Link</th>
<th>Validity </th>
<th>Operations</th>
</tr>
{% for invite in invites %}
<tr>
<td> <a class="invite" href="{{ url_for('home') }}{{ invite.link }}">{{ url_for('home') }}{{ invite.link }}</a> </td>
<td> {{ invite.human_time }} </td>
<td> <a href="#">copy</a> <a href="{{ url_for('invite_keycloak_delete') }}?invite={{ invite.link }}">delete</a> </td>
</tr>
{% endfor %}
</table>
<p>
2021-06-12 00:15:50 +00:00
<a href="{{ url_for('invite_keycloak_create') }}">Generate an invite link</a>
</p>
2021-06-11 20:28:43 +00:00
</body>
</html>