feat: add services list
continuous-integration/drone/push Build is passing Details

This commit is contained in:
cellarspoon 2022-01-10 14:04:11 +01:00
parent 4fbefadd47
commit f9061e2ecf
No known key found for this signature in database
GPG Key ID: 03789458B3D0C410
1 changed files with 40 additions and 23 deletions

View File

@ -5,29 +5,46 @@
<small>(<a href="{{ url_for('logout') }}">logout</a>)</small> <small>(<a href="{{ url_for('logout') }}">logout</a>)</small>
</p> </p>
{% if user.preferred_username in invites and invites[user.preferred_username]|length > 0 %} <div>
<table> <h2>Services</h2>
<tr> <ul>
<th>Link</th> <li>lumbung.space</li>
<th>Validity</th> <li>panduan.lumbung.space</li>
<th>Actions</th> <li>cloud.lumbung.space</li>
</tr> <li>tv.lumbung.space</li>
{% for invite in invites[user.preferred_username] %} <li>nongkrong.lumbung.space</li>
<tr> <li>social.lumbung.space</li>
<td> <li>pen.lumbung.space</li>
<a class="invite" href="{{ url_for('register_invite', invite=invite.link) }}"> <li>books.lumbung.space</li>
{{ url_for('register_invite', invite=invite.link) }} </ul>
</a> </div>
</td>
<td> {{ invite.validity }} </td>
<td> <a href="{{ url_for('invite_keycloak_delete') }}?invite={{ invite.link }}">delete</a> </td>
</tr>
{% endfor %}
</table>
{% endif %}
<p> <div>
<a href="{{ url_for('invite_keycloak_create') }}">Generate an invite link</a> <h2>Invites</h2>
</p> {% 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> <a href="{{ url_for('invite_keycloak_delete') }}?invite={{ invite.link }}">delete</a> </td>
</tr>
{% endfor %}
</table>
{% endif %}
<p>
<a href="{{ url_for('invite_keycloak_create') }}">Generate an invite link</a>
</p>
</div>
{% endblock %} {% endblock %}