{% extends "base.html" %} {% import "_macros.html" as macros %} {% block title %}Flasky - {{ user.username }}{% endblock %} {% block page_content %}
{% if user.name %} {{ user.name }}{% endif %} {% if user.location %}from {{ user.location }} {% endif %}
{% endif %} {% if user.is_administrator %} {% endif %} {% if user.about_me %}{{ user.about_me }}
{% endif %}Member since {{ moment(user.member_since).format('L') }}. Last seen {{ moment(user.last_seen).fromNow() }}.
{{ user.posts.count() }} blog post{% if user.posts.count() > 1 %}s{% endif %}.
{% if current_user.can(Permission.FOLLOW) and user != current_user %} {% if not current_user.is_following(user) %} Follow {% else %} Unfollow {% endif %} {% endif %} Followers: {{ user.followers.count() }} Following: {{ user.followed.count() }} {% if current_user.is_authenticated and user != current_user and user.is_following(current_user) %} | Follows you {% endif %}
{% if user == current_user %} Edit Profile {% endif %} {% if current_user.is_administrator %} Edit Profile [Admin] {% endif %}