{% extends "console/base.html" %} {% load ostium_ui %} {% block title %}用户{% endblock %} {% block breadcrumb %}用户{% endblock %} {% block page_header %}
{% icon "users" "w-3.5 h-3.5" %} Access

用户与配额

创建、停用、轮换凭据与查看每个人的用量。所有变更都会自动触发核心配置更新。

{% icon "settings" %} 高级管理 {% icon "plus" %} 新增用户
{% endblock %} {% block content %}
{{ total }} 个用户
{% if page.object_list %}
{% for user in page %} {% endfor %}
用户 状态 配额 已用 / 总量 到期 最近在线 协议 操作
{{ user.name|first|upper }} {{ user.name }} {{ user.status|status_label }} {% if user.is_online %}在线{% endif %} {% 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.expires_at %}{{ user.expires_at|datetimefmt }}{% else %}永不过期{% endif %} {{ user.last_seen_at|ago }} {% for inbound in inbounds %}{{ inbound.short_label }}{% empty %}—{% endfor %} 详情 {% icon "settings" %}
{% include "partials/pagination.html" with page=page query=query status=status %} {% else %}
{% icon "users" %}
{% if query %}没有匹配的用户{% else %}还没有创建用户{% endif %}
{% if query %}换一个关键词,或清除筛选条件。{% else %}创建第一个用户后,Ostium 会自动生成 UUID、密码和订阅 token。{% endif %}
{% if query %}清除筛选{% endif %} {% icon "plus" %} 新增用户
{% endif %}
{% endblock %}