{% 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 %}
{{ user.location }}
{% endif %}
{{ user.about_me }}
{% endif %}Data rejestracji {{ moment(user.member_since).format('L') }}. Ostatnia aktywność {{ moment(user.last_seen).fromNow() }}.
Liczba postów: {{ user.posts.count() }}. Liczba komentarzy: {{ user.comments.count() }}.
{% if current_user.can(Permission.FOLLOW) and user != current_user %} {% if not current_user.is_following(user) %} Obserwuj {% else %} Przestań obserwować {% endif %} {% endif %} Obserwujących: {{ user.followers.count() - 1 }} Obserwowanych: {{ user.followed.count() - 1 }} {% if current_user.is_authenticated and user != current_user and user.is_following(current_user) %} | Obserwuje cię {% endif %}
{% if user == current_user %} Edytuj profil {% endif %} {% if current_user.is_administrator() %} Edytuj profil [Admin] {% endif %}