{% extends "base.html" %} {% block title %}Flasky - {{ user.username }}{% endblock %} {% block page_content %}
{% if user.name %}真实姓名:{{ user.name }}
{% endif %}
{% if user.location %}
来自于: {{ user.location }}
{% endif %}
{{ user.about_me }}
{% endif %}注册时间:{{ moment(user.member_since).format('L') }}
最近一次登录:{{ moment(user.last_seen).fromNow() }}
发布的博客总数:{{ user.posts.count() }};评论总数:{{ user.comments.count() }}
{% if current_user.can(Permission.FOLLOW) and user != current_user %} {% if not current_user.is_following(user) %} 关注 {% else %} 取消关注 {% endif %} {% endif %} 关注我的: {{ user.followers.count() - 1 }} 我关注的: {{ user.followed.count() - 1 }} {% if current_user.is_authenticated and user != current_user and user.is_following(current_user) %} | 关注了你 {% endif %}
{% if user == current_user %} 编辑资料 {% endif %} {% if current_user.is_administrator() %} 编辑资料 [Admin] {% endif %}