{% extends "base.html" %} {% block title %}{{ _("Users") }}{% endblock %} {% block content %} {# ============== Bulk action bar ============== #}
| {{ _("Apply plan preset to selection:") }} {% for key, p in [ ('free', {'label': 'Free'}), ('trial', {'label': 'Trial'}), ('std', {'label': 'Standard'}), ('pro', {'label': 'Pro'}), ('biz', {'label': 'Business'}), ('unlim', {'label': 'Unlimited'}), ] %} {% endfor %}
{# flash messages #} {% if request.query_params.get('bulk') == 'ok' %}
{{ _("Bulk plan applied") }} — {{ _("preset") }} {{ request.query_params.get('preset') }} {{ _("to") }} {{ request.query_params.get('count') }} {{ _("user(s)") }}.
{% endif %}
{% for u in users %} {% endfor %}
User Email Role Plan (CPU · RAM MB · Disk MB · Max bots) Status Last login Created Actions
{{ u.username[:2]|upper }}
{{ u.username }}
#{{ u.id }}
{{ u.email or '—' }}
{% set us = usage.get(u.id) %}
· · ·
{% if us %}
CPU {{ us.cpu_percent }}% RAM {{ us.ram_percent }}% Disk {{ us.storage_percent }}% {% if us.bots_at_max %} {{ _("at cap") }} {% endif %}
{% endif %}
{% if u.is_active %} Active {% else %} Disabled {% endif %} {{ u.last_login.strftime('%Y-%m-%d %H:%M') if u.last_login else 'Never' }} {{ u.created_at.strftime('%Y-%m-%d') if u.created_at else '—' }}
{{ panel_icon('ext')|safe }}
{% endblock %}