{% extends "base.html" %} {% block title %} {{ user.email }} {% endblock %} {% block content %}
用户信息
用户ID:{{ user.id }} 用户邮箱:{{ user.email }} 是否封禁:{{ "否" if user.role.has_permission(Role.USABLE) else "是" }} 关注:{{ user.followed_count }} 粉丝:{{ user.follower_count }} 讨论:{{ user.comment_count }}
{% if user.role.has_permission(Role.USABLE) and current_user.role.has_permission(Role.BLOCK_USER) %} 封禁 {% endif %} {% if current_user.in_followed(user) %} 取消关注 {% else %} 关注 {% endif %}
{% endblock %}