{% extends "console/base.html" %} {% load static ostium_ui %} {% block title %}{{ user.name }}{% endblock %} {% block breadcrumb %}用户 / {{ user.name }}{% endblock %} {% block page_header %}
{% icon "users" "w-3.5 h-3.5" %} User profile
{{ user.name|first|upper }}

{{ user.name }}

{{ user.status|status_label }} 创建于 {{ user.created_at|datetimefmt }}

返回列表 {% icon "settings" %} Admin 编辑
{% endblock %} {% block content %}
{% icon "settings" %} 账号设置
修改后自动应用
{% csrf_token %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
{{ form.name }} {{ form.name.errors }} 同时作为 sing-box 统计键;改名不会保留旧统计。
{{ form.quota }} {{ form.quota.errors }} {{ form.quota.help_text }}
{{ form.quota_cycle }} {{ form.quota_cycle.errors }}
{{ form.expires_at }} {{ form.expires_at.errors }} 留空表示永不过期。
{{ form.note }} {{ form.note.errors }}
{% icon "key" %} 凭据
轮换后客户端需重新导入
VLESS UUID
{{ user.uuid }}
最近在线
{{ user.last_seen_at|ago }}
实时上行
{{ live.uplink_rate|default:0|bps }}
实时下行
{{ live.downlink_rate|default:0|bps }}
密码 / Shadowsocks 用户密钥
出于安全原因永不显示,只允许轮换。
{% csrf_token %}
已用流量
{{ user.used_bytes|bytes }} · 重置只清零计数,不影响连接。
{% csrf_token %}
{% icon "alert" %} 危险操作
删除用户
立即从数据库移除,所有订阅链接同时失效,无法撤销。
{% csrf_token %}
{% icon "link" %} 订阅
{% if revealed %}token 已显示{% else %}已打码{% endif %}
{{ token }} {% if revealed %} {% endif %}
{% if not revealed %}
{% csrf_token %}
{% endif %}
{% csrf_token %}
Subscription-Userinfo:{{ userinfo }}
{% if revealed %}
{% for link in links %}
{{ link.label }}
{{ link.description }}
{{ link.url }}
{% endfor %}
Base64 订阅二维码
扫码导入
Base64 订阅。Clash / sing-box 请复制上方对应链接。
{% if endpoints %}
单节点链接
{% for endpoint in endpoints %}
{{ endpoint.label }} {{ endpoint.to_uri }}
{% endfor %}
{% endif %} {% else %}
{% icon "lock" %}
token 默认打码。显示完整链接需要一次明确的 POST 操作,并会写入审计日志。
{% endif %}
{% icon "chart" %} 配额
{% if user.quota_percent is not None %}{{ user.quota_percent|floatformat:0 }}%{% else %}∞{% endif %}
已用
{{ user.used_bytes|bytes }}已用
{% if user.quota_bytes %}{{ user.quota_bytes|bytes }}{% else %}不限{% endif %}配额
{% if user.remaining_bytes is not None %}{{ user.remaining_bytes|bytes }}{% else %}—{% endif %}剩余
{% icon "chart" %} 最近 30 天流量
上行 下行
{% icon "history" %} 最近审计
全部审计
{% if audit_events %}
{% for event in audit_events %}
{{ event.action }}
{{ event.created_at|datetimefmt }} · {{ event.ip|default:"本地" }}
{% endfor %}
{% else %}
暂无与该用户相关的敏感操作记录。
{% endif %}
{{ series|json_script:"traffic-data" }} {% endblock %} {% block scripts %} {% endblock %}