{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %} {% extends 'themes/' + theme() + '/base.html' %} {% else %} {% extends "base.html" %} {% endif %} %} {% from 'bootstrap/form.html' import render_form %} {% if current_user.is_authenticated and user.id == current_user.id %} {% set active_child = 'view_profile' %} {% endif %} {% block app_content %}
{% if user.cover_image() != '' %}
{{ _('Profile pic') }}

{{ user.display_name() if user.is_local() else user.display_name() + ', ' + user.ap_id }} {% if current_user.is_authenticated %} {% include 'user/_notification_toggle.html' %} {% endif %}

{% elif user.avatar_image() != '' %}
{% if low_bandwidth %} {{ _('Profile pic') }} {% else %} {% if user.avatar.source_url and user.avatar.source_url.endswith('.mp4') %} {% else %} {{ _('Profile pic') }} {% endif %} {% endif %}

{{ user.display_name() if user.is_local() else user.display_name() + ', ' + user.ap_id }} {% if current_user.is_authenticated %} {% include 'user/_notification_toggle.html' %} {% endif %}

{% else %}

{{ user.display_name() if user.is_local() else user.display_name() + ', ' + user.ap_id }} {% if current_user.is_authenticated %} {% include 'user/_notification_toggle.html' %} {% endif %}

{% endif %} {% if current_user.is_authenticated and current_user != user %}
{{ _('Send message') }} {% if user.matrix_user_id %} {{ _('Send message using Matrix') }} {% endif %} {% if current_user.has_blocked_user(user.id) %} {{ _('Unblock') }} {% else %} {{ _('Block') }} {% endif %} {{ _('Report') }}
{% endif %}

{{ _('Joined') }}: {{ moment(user.created).fromNow(refresh=True) }}
{% if user.bot %} {{ _('Bot Account') }}
{% endif %} {{ _('Attitude') }}: {{ (user.attitude * 100) | round | int }}%

{{ user.about_html|safe }} {% if posts %}

Posts

{% for post in posts.items %} {% include 'post/_post_teaser.html' %} {% endfor %}
{% else %}

{{ _('No posts yet.') }}

{% endif %} {% if post_replies %}

Comments

{% for post_reply in post_replies.items %} {% include 'post/_post_reply_teaser.html' %} {% endfor %}
{% else %}

{{ _('No comments yet.') }}

{% endif %}
{% endblock %}