members.lumbung.space/members_lumbung_space/templates/admin.html

50 lines
1.3 KiB
HTML
Raw Normal View History

2022-01-10 12:34:17 +00:00
{% extends "base.html" %}
{% block content %}
<p>
Hello, {{ user.preferred_username }} 👋
</p>
2022-01-10 13:04:11 +00:00
<div>
<h2>Services</h2>
<ul>
<li>lumbung.space</li>
<li>panduan.lumbung.space</li>
<li>cloud.lumbung.space</li>
<li>tv.lumbung.space</li>
<li>nongkrong.lumbung.space</li>
<li>social.lumbung.space</li>
<li>pen.lumbung.space</li>
<li>books.lumbung.space</li>
</ul>
</div>
<div>
<h2>Invites</h2>
{% if user.preferred_username in invites and invites[user.preferred_username]|length > 0 %}
<table>
2022-01-10 12:34:17 +00:00
<tr>
2022-01-10 13:04:11 +00:00
<th>Link</th>
<th>Validity</th>
<th>Actions</th>
2022-01-10 12:34:17 +00:00
</tr>
2022-01-10 13:04:11 +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 %}
2022-01-10 12:58:17 +00:00
2022-01-10 13:04:11 +00:00
<p>
2022-01-10 15:20:47 +00:00
<a href="{{ url_for('invite_keycloak_create') }}">Generate</a>
2022-01-10 13:04:11 +00:00
</p>
</div>
2022-01-10 12:58:17 +00:00
2022-01-10 12:34:17 +00:00
{% endblock %}