Files
stellars-jupyterhub-ds/services/jupyterhub/html_templates_enhanced/authorization-area.html
stellarshenson 181e2ac5f4 chore: cleanup templates directory structure
- Remove unused *.html from services/jupyterhub/templates/
- Keep only certs/ subdirectory in templates/
- Rename templates_enhanced to html_templates_enhanced
- Update Dockerfile COPY paths
2026-01-14 17:19:12 +01:00

50 lines
2.0 KiB
HTML

{% extends "page.html" %}
{% block main %}
<div class="container authorization-container">
<h1>Authorization area</h1>
<table class="table table-sm">
<thead>
<tr>
<th>Username</th>
{% if ask_email %}<th>Email</th>{% endif %}
<th>2FA</th>
<th>Authorized</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for user in users %}
{% if user.is_authorized %}
<tr class="success" id="{{ user.username }}">
<td>{{ user.username }}</td>
{% if ask_email %}<td>{{ user.email }}</td>{% endif %}
<td>{{ user.has_2fa }}</td>
<td>Yes</td>
<td class="actions-cell">
<a class="btn btn-default btn-sm" href="{{ base_url }}authorize/{{ user.username }}" role="button">Unauthorize</a>
<a class="btn btn-jupyter btn-sm" href="{{ base_url }}change-password/{{ user.username }}" role="button">Change password</a>
</td>
</tr>
{% else %}
<tr id="{{ user.username }}">
<td>{{ user.username }}</td>
{% if ask_email %}<td>{{ user.email }}</td>{% endif %}
<td>{{ user.has_2fa }}</td>
<td>No</td>
<td class="actions-cell">
<a class="btn btn-jupyter btn-sm" href="{{ base_url }}authorize/{{ user.username }}" role="button">Authorize</a>
<a class="btn btn-jupyter btn-sm" href="{{ base_url }}change-password/{{ user.username }}" role="button">Change password</a>
{% if user.username not in hub_usernames %}
<a class="btn btn-danger btn-sm" href="{{ base_url }}discard/{{ user.username }}" role="button">Discard</a>
{% endif %}
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}