mirror of
https://github.com/stellarshenson/stellars-jupyterhub-ds.git
synced 2026-03-08 22:20:28 +00:00
- Remove unused *.html from services/jupyterhub/templates/ - Keep only certs/ subdirectory in templates/ - Rename templates_enhanced to html_templates_enhanced - Update Dockerfile COPY paths
50 lines
2.0 KiB
HTML
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 %}
|