{% extends 'admin/index.html' %} {% from 'bootstrap/pagination.html' import render_pagination %} {% block title %}管理用户{% endblock %} {% block content %} {% if users %} {% for user in users %} {% endfor %}
图像 用户名 角色 个人简历 城市 日期 照片 操作
{{ user.name }}
{{ user.username }}
{{ user.role.name }} {{ user.bio }} {{ user.location }} {{ moment(user.member_since).format('LL') }} {{ user.photos|length }} {% if user.role.name not in ['Administrator', 'Moderator'] %} {% if user.locked %}
{% else %}
{% endif %} {% if user.active %}
{% else %}
{% endif %} {% endif %} 邮箱 {% if current_user.is_admin %} 编辑简介 {% endif %}
{% else %}
无用户
{% endif %} {% endblock %}