popup user profile - html tweaks

This commit is contained in:
rimu 2024-12-23 09:34:35 +13:00
parent 90d66f5e68
commit c01fd229e9
2 changed files with 17 additions and 2 deletions

View file

@ -7,7 +7,7 @@
[deleted] [deleted]
{% endif -%} {% endif -%}
{% else -%} {% else -%}
<a href="/u/{{ user.link() }}" aria-label="{{ _('Author') }}" class="author_link"> <a href="/u/{{ user.link() }}" aria-label="{{ _('Author') }}" class="author_link" title="">
{% if user.avatar_id and not low_bandwidth and not collapsed -%} {% if user.avatar_id and not low_bandwidth and not collapsed -%}
<img src="{{ user.avatar_thumbnail() }}" alt="" loading="lazy" /> <img src="{{ user.avatar_thumbnail() }}" alt="" loading="lazy" />
{% endif -%} {% endif -%}

View file

@ -12,7 +12,7 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col-auto"> <div class="col-auto">
<p class="small">{{ _('Instance') }}: <a href="{{ url_for('instance.instance_overview', instance_domain=user.instance_domain()) }}">{{ user.instance_domain() }}</a> <p>{{ _('Instance') }}: <a href="{{ url_for('instance.instance_overview', instance_domain=user.instance_domain()) }}">{{ user.instance_domain() }}</a>
{% if user.is_instance_admin() or (user.is_local() and user.is_admin()) %}<span class="red">({{ _('Admin') }})</span>{% endif %}<br /> {% if user.is_instance_admin() or (user.is_local() and user.is_admin()) %}<span class="red">({{ _('Admin') }})</span>{% endif %}<br />
{% if user.is_admin() or user.is_staff() %}{{ _('Role permissions') }}: {% if user.is_admin() %}{{ _('Admin') }}{% endif %} {% if user.is_staff() %}{{ _('Staff') }}{% endif %}<br />{% endif %} {% if user.is_admin() or user.is_staff() %}{{ _('Role permissions') }}: {% if user.is_admin() %}{{ _('Admin') }}{% endif %} {% if user.is_staff() %}{{ _('Staff') }}{% endif %}<br />{% endif %}
{{ _('Joined') }}: {{ arrow.get(user.created).humanize(locale=locale) }}<br /> {{ _('Joined') }}: {{ arrow.get(user.created).humanize(locale=locale) }}<br />
@ -31,6 +31,21 @@
<div class="profile_bio"> <div class="profile_bio">
{{ user.about_html|safe }} {{ user.about_html|safe }}
</div> </div>
{% 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 -%}
</div> </div>
</div> </div>
<div class="row"> <div class="row">