{% extends "base" %} {% import "macros" as macros %} {% block title %} {% if user.display_name %} {% set name = user.display_name %} {% else %} {% set name = user.username %} {% endif %} {{ name }} {% endblock title %} {% block content %}

{{ name }} {% if user.is_admin %} {{ "Admin" | _ }} {% endif %} {% if is_self %} {{ "It is you" | _ }} {% endif %}

{% if is_self %} {{ "Edit your profile" | _ }} {% endif %} {% if is_remote %} {{ "Open on {{ instance_url }}" | _(instance_url=instance_url) }} {% endif %} {% if not is_self and account %} {% if follows %} {{ "Follow" | _ }} {% else %} {{ "Unfollow" | _ }} {% endif %} {% endif %}
{{ "{{ count }} followers" | _n(singular="One follower", count=n_followers) }}
{{ user.summary | safe }}
{% if recents | length != 0 %}

{{ "Latest articles" | _ }}

{% for article in recents %} {{ macros::post_card(article=article) }} {% endfor %}
{% endif %} {% if reshares | length != 0 %}

{{ "Recently reshared" | _ }}

{% for article in reshares %} {{ macros::post_card(article=article) }} {% endfor %}
{% endif %} {% endblock content %}