invites page, menu, links, hackity hack
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
50
members_lumbung_space/templates/invites.html
Normal file
50
members_lumbung_space/templates/invites.html
Normal file
@ -0,0 +1,50 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<nav class="navbar" role="navigation" aria-label="main navigation">
|
||||
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbar">
|
||||
<span aria-hidden="true"></span>
|
||||
<span aria-hidden="true"></span>
|
||||
<span aria-hidden="true"></span>
|
||||
</a>
|
||||
<div id="navbar" class="navbar-menu">
|
||||
<div class="navbar-end">
|
||||
<div class="navbar-item">
|
||||
<a href="/"><strong>services</strong></a>
|
||||
</div>
|
||||
<div class="navbar-item">
|
||||
<a href="/invites"><strong>invites</strong></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="logo">
|
||||
<img src="{{ url_for('static', path='svg/lumbung_space_logo.svg') }}" alt="lumbung.space logo">
|
||||
</div>
|
||||
<div>
|
||||
{% if user.preferred_username in invites and invites[user.preferred_username]|length > 0 %}
|
||||
<table>
|
||||
<tr>
|
||||
<th>Link</th>
|
||||
<th>Validity</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
{% 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> <button class="button is-ghost"><a href="{{ url_for('invite_keycloak_delete') }}?invite={{ invite.link }}">delete</a></button></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
<p>
|
||||
<button class="button is-ghost"><a href="{{ url_for('invite_keycloak_create') }}">Generate</a></button>
|
||||
</p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user