{% extends "templates/admin.html" %} {% block main %}
{% block thead %} {{ th("User (%i)" % users|length, 'name') }} {{ th("Admin", 'admin') }} {{ th("Last Activity", 'last_activity') }} {{ th("Running (%i)" % running|length, 'running', colspan=4) }} {% endblock thead %} {%- if jc_debug -%} {%- endif -%} {% for user in users %} {% for spawner in user.all_spawners() %} {% block user_row scoped %} {% endblock user_row %} {% endfor %} {% endfor %}
Add Users Start All Stop All Shutdown Hub
{{user.name}} {% if user.admin %}admin{% endif %} {%- if spawner.last_activity -%} {{ spawner.last_activity.isoformat() + 'Z' }} {%- else -%} Never {%- endif -%} stop server start server access server QYP backup
{% if pagination.links %} {% endif %} Displaying users {{ pagination.info.start|safe }} - {{ pagination.info.end|safe }} of {{ pagination.info.total|safe }}
{% call modal('Delete User', btn_class='btn-danger delete-button') %} Are you sure you want to delete user USER? This operation cannot be undone. {% endcall %} {% macro user_modal(name, multi=False) %} {% call modal(name, btn_class='btn-primary save-button') %}
<{%- if multi -%} textarea {%- else -%} input type="text" {%- endif %} class="form-control username-input" placeholder="{%- if multi -%} usernames separated by lines{%- else -%} username {%-endif-%}"> {%- if multi -%}{%- endif -%}
{% endcall %} {% endmacro %} {{ user_modal('Edit User') }} {{ user_modal('Add Users', multi=True) }} {% endblock %} {% block yndxbug %} {# kill yndxbug on admin page #} {% endblock %} {% block yndxmetrika %} {# kill yndxmetrika on admin page #} {% endblock %}