{% 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 user.is_local() -%} {{ _('Follow') }} {% endif -%} {% endif %}

{{ _('Instance') }}: {{ user.instance_domain() }}
{{ _('Joined') }}: {{ arrow.get(user.created).humanize(locale=locale) }}
{% if current_user.is_authenticated and current_user.is_admin() and user.last_seen %}{{ _('Active') }}: {{ arrow.get(user.last_seen).humanize(locale=locale) }}
{% endif %} {% if user.bot %} {{ _('Bot Account') }}
{% endif %} {{ _('Attitude') }}: {{ (user.attitude * 100) | round | int }}%
{{ _('Posts') }}: {{ user.post_count }}
{{ _('Comments') }}: {{ user.post_reply_count }}

{{ 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 %} {% with teaser=True %} {% include 'post/_post_reply_teaser.html' %} {% endwith %}
{% endfor %}
{% else %}

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

{% endif %}
{% endblock %}