{% extends "page.html" %} {% macro th(label, key='', colspan=1) %} {{label}} {% if key %} {% endif %} {% endmacro %} {% block main %}
{% block thead %} {{ th("User (%i)" % users.count(), 'name') }} {{ th("Admin", 'admin') }} {{ th("Last Seen", 'last_activity') }} {{ th("Running (%i)" % running.count(), 'running', colspan=2) }} {% endblock thead %} {% for u in users %} {% block user_row scoped %} {% endblock user_row %} {% endfor %}
Add User Shutdown Hub
{{u.name}} {% if u.admin %}admin{% endif %} {{u.last_activity.isoformat() + 'Z'}} stop server {% if admin_access %} access server {% endif %} start server edit {% if u.name != user.name %} delete {% endif %}
{% 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 %} {% call modal('Shutdown Hub', btn_label='Shutdown', btn_class='btn-danger shutdown-button') %} Are you sure you want to shutdown the Hub? You can chose to leave the proxy and/or single-user servers running by unchecking the boxes below:
{% endcall %} {% macro user_modal(name) %} {% call modal(name, btn_class='btn-primary save-button') %}
{% endcall %} {% endmacro %} {{ user_modal('Edit User') }} {{ user_modal('Add User') }} {% endblock %} {% block script %} {% endblock %}