{% extends "base.html" %} {% load static %} {% block title %}用户管理 - 管理员控制台{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

用户管理

返回控制台
{% for user in users %}
{{ user.nickname|default:user.username }}
{% if user.is_superuser %} 管理员 {% elif user.special %} 工程师 {% endif %} {% if user.is_banned %} 已封禁 {% endif %}
用户名: {{ user.username }}
手机号: {{ user.phone|default:"未绑定" }}
注册时间: {{ user.date_joined|date:"Y-m-d" }}
最后登录: {{ user.last_login|date:"Y-m-d H:i" }}
{% csrf_token %}
{% if user.is_banned %}
{% csrf_token %}
{% else %}
{% csrf_token %}
{% endif %} {% if user.special %}
{% csrf_token %}
{% else %}
{% csrf_token %}
{% endif %}
{% endfor %}
{% endblock %}