mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
add collapsed option to username rendering, remove redundant link, don't show own reputation
This commit is contained in:
parent
bfdb8749e5
commit
0ff7a27c90
1 changed files with 13 additions and 10 deletions
|
@ -3,22 +3,25 @@
|
|||
{% if user.deleted -%}
|
||||
[deleted]
|
||||
{% else -%}
|
||||
{% if user.avatar_id and not low_bandwidth -%}
|
||||
<a href="/u/{{ user.link() }}" title="{{ user.ap_id if user.ap_id != none else user.user_name }}">
|
||||
<img src="{{ user.avatar_thumbnail() }}" alt="" loading="lazy" /></a>
|
||||
{% endif -%}
|
||||
<a href="/u/{{ user.link() }}" title="{{ user.ap_id if user.ap_id != none else user.user_name }}">{{ user.display_name() }}</a>
|
||||
<a href="/u/{{ user.link() }}" title="{{ user.ap_id if user.ap_id != none else user.user_name }}" aria-label="{{ _('Author') }}">
|
||||
{% if user.avatar_id and not low_bandwidth and not collapsed -%}
|
||||
<img src="{{ user.avatar_thumbnail() }}" alt="" loading="lazy" />
|
||||
{% endif -%}
|
||||
{{ user.display_name() }}
|
||||
</a>
|
||||
{% if user.created_recently() -%}
|
||||
<span class="fe fe-new-account" title="New account"> </span>
|
||||
{% endif -%}
|
||||
{% if user.bot -%}
|
||||
<span class="fe fe-bot-account" title="Bot account"> </span>
|
||||
{% endif -%}
|
||||
{% if user.reputation < -10 -%}
|
||||
<span class="fe fe-warning red" title="Very low reputation. Beware."> </span>
|
||||
<span class="fe fe-warning red" title="Very low reputation. Beware!"> </span>
|
||||
{% elif user.reputation < 0 -%}
|
||||
<span class="fe fe-warning orangered" title="Low reputation."> </span>
|
||||
{% if user.id != current_user.id -%}
|
||||
{% if user.reputation < -10 -%}
|
||||
<span class="fe fe-warning red" title="Very low reputation. Beware."> </span>
|
||||
<span class="fe fe-warning red" title="Very low reputation. Beware!"> </span>
|
||||
{% elif user.reputation < 0 -%}
|
||||
<span class="fe fe-warning orangered" title="Low reputation."> </span>
|
||||
{% endif -%}
|
||||
{% endif -%}
|
||||
{% endif -%}
|
||||
</span>
|
||||
|
|
Loading…
Reference in a new issue