2024-12-23 09:26:05 +13:00
< div class = "card" title = "{{ user.display_name() }}" >
< div class = "card-body" >
< div class = "row" >
{% if user.avatar_id -%}
2025-01-16 16:17:55 +13:00
< div class = "col-6 preview_avatar_image" >
2024-12-23 09:26:05 +13:00
< img src = "{{ user.avatar_image() }}" alt = "" loading = "lazy" / >
< / div >
{% endif -%}
2025-01-16 16:17:55 +13:00
< div class = "col-6" >
< h4 class = "mb-0" > < a href = "/u/{{ user.link() }}" > {{ user.display_name() }}< / a > < / h4 >
< p > {{ _('Instance') }}: < a href = "{{ url_for('instance.instance_overview', instance_domain=user.instance_domain()) }}" > {{ user.instance_domain() }}< / a > < br >
{% if user.is_instance_admin() or (user.is_local() and user.is_admin()) %}< span class = "red" > ({{ _('Admin') }})< / span > < br > {% endif %}
{% if user.is_admin() or user.is_staff() %}{{ _('Roles') }}: {% if user.is_admin() %}{{ _('Admin') }}{% endif %} {% if user.is_staff() %}{{ _('Staff') }}{% endif %}< br / > {% endif %}
< / p >
2024-12-23 09:26:05 +13:00
< / div >
< / div >
< div class = "row" >
< div class = "col-auto" >
2025-01-02 17:00:15 +01:00
< p > {% if user.bot %}{{ _('Bot Account') }}< br / > {% endif %}
{% if current_user.is_authenticated %}{{ _('Note') }}: {{ user.get_note(current_user) }}< br / > {% endif %}
{{ _('Joined') }}: {{ arrow.get(user.created).humanize(locale=locale) }}< br / >
{% if current_user.is_authenticated %}{{ _('Attitude') }}: < span title = "{{ _('Ratio of upvotes cast to downvotes cast. Higher is more positive.') }}" > {% if user.attitude %}{{ (user.attitude * 100) | round | int }}%{% endif %}< / span > < br / > {% endif %}
2024-12-23 09:26:05 +13:00
{% if current_user.is_authenticated and current_user.is_admin() and user.reputation %}{{ _('Reputation') }}: < span title = "{{ _('Reputation: The Karma of the account. Total up votes minus down votes they got.') }}" > {{ user.reputation | round | int }}< / span > < br / > {% endif %}
{{ _('Posts') }}: {{ user.post_count }}< br / >
{{ _('Comments') }}: {{ user.post_reply_count }}< br / >
2025-01-02 17:00:15 +01:00
{% if current_user.is_authenticated and current_user.is_admin() -%}
{{ _('Votes') }}: {{ user.get_num_upvotes() }} / {{ user.get_num_downvotes() }}< br / >
{% if user.last_seen %}{{ _('Active') }}: {{ arrow.get(user.last_seen).humanize(locale=locale) }}< br / > {% endif %}
{% endif -%}
2024-12-23 09:26:05 +13:00
< / p >
< div class = "profile_bio" >
{{ user.about_html|safe }}
< / div >
2024-12-23 09:34:35 +13:00
{% if user.extra_fields -%}
< ul class = "list-group mb-3" >
{% for field in user.extra_fields -%}
< li class = "list-group-item" >
< p class = "mb-0" > < strong > {{ field.label }}< / strong > < br >
{% if field.text.startswith('http') -%}
< a href = "{{ field.text }}" rel = "nofollow noindex ugc" > {{ field.text }}< / a >
{% else -%}
{{ field.text }}
{% endif -%}
< / p >
< / li >
{% endfor -%}
< / ul >
{% endif -%}
2024-12-23 09:26:05 +13:00
< / div >
< / div >
< div class = "row" >
< div class = "col-auto text-center" >
< a href = "/u/{{ user.link() }}" class = "btn btn-primary btn-sm" > {{ _('View profile') }}< / a >
< / div >
2025-01-13 16:30:28 +01:00
{% if current_user.is_authenticated -%}
< div class = "col-auto text-center" >
2025-01-16 16:58:15 +13:00
< a href = "{{ url_for('user.edit_user_note', actor=user.link(), return_to=return_to) }}" class = "btn btn-primary btn-sm" > {{ _('Edit note') }}< / a >
2025-01-13 16:30:28 +01:00
< / div >
{% endif -%}
2024-12-23 09:26:05 +13:00
< / div >
< / div >
2025-01-02 18:51:53 +01:00
< / div >