{% extends "base.html" %} {% block content %}
Online
Total Users
Expired
Disabled
Total Traffic
Total Download:
Total Upload:
Active Nodes
| Username | Expiry Date | Status | Connection | OVPN File | Actions | Traffic Usage |
|---|---|---|---|---|---|---|
|
{{ user.username }}
{% if user.is_expired %}
{% elif user.is_data_limited or not user.is_active %}
{% else %}
{% endif %}
|
{{ user.expiry_date if user.expiry_date != "Unlimited" else "Unlimited" }}
|
{% if user.is_expired %}
🔒 Expired
{% elif user.is_data_limited %}
🔒 Data Limit
{% elif not user.is_active %}
🔒 Disabled
{% else %}
✅ Active
{% endif %}
|
👤{{ user.max_clients }}/{{ user.active_connections }}
|
Download | Sub Delete |
{% set total_bytes = user.download_bytes + user.upload_bytes %}
{% if total_bytes < 1024**2 %}
{{ "%.2f"|format(total_bytes/1024) }} KB
{% elif total_bytes < 1024**3 %}
{{ "%.2f"|format(total_bytes/(1024**2)) }} MB
{% else %}
{{ "%.2f"|format(total_bytes/(1024**3)) }} GB
{% endif %}
{% if user.data_limit %}
/ {{ user.data_limit }} {{ user.data_limit_unit }}
{% else %}
/ Unlimited
{% endif %}
{{ "%.2f"|format(user.download_bytes/(1024**2)) }} MB
{{ "%.2f"|format(user.upload_bytes/(1024**2)) }} MB
|
| No users found. | ||||||