2022-12-26 09:14:23 -08:00
|
|
|
|
<div class="identity-banner">
|
2023-01-09 08:58:17 -08:00
|
|
|
|
{% if link_avatar is False %}
|
|
|
|
|
<div class="avatar-link">
|
|
|
|
|
{% else %}
|
|
|
|
|
<a href="{{ identity.urls.view }}" tabindex="-1" class="avatar-link">
|
|
|
|
|
{% endif %}
|
2022-12-26 09:14:23 -08:00
|
|
|
|
<img
|
2023-01-09 08:58:17 -08:00
|
|
|
|
src="{{ identity.local_icon_url.relative }}"
|
|
|
|
|
class="icon"
|
|
|
|
|
alt="Avatar for {{ identity.name_or_handle }}"
|
|
|
|
|
loading="lazy"
|
|
|
|
|
data-handle="{{ identity.name_or_handle }}"
|
|
|
|
|
_="on error set my.src to generate_avatar(@data-handle)"
|
2022-12-26 09:14:23 -08:00
|
|
|
|
>
|
2023-01-14 09:32:48 -08:00
|
|
|
|
{% if link_avatar is False %}
|
2023-01-09 08:58:17 -08:00
|
|
|
|
</div>
|
|
|
|
|
{% else %}
|
|
|
|
|
</a>
|
|
|
|
|
{% endif %}
|
2022-12-26 09:14:23 -08:00
|
|
|
|
|
2023-01-14 09:32:48 -08:00
|
|
|
|
{% if link_handle is False %}
|
2023-01-09 08:58:17 -08:00
|
|
|
|
<div class="handle">
|
|
|
|
|
{% else %}
|
|
|
|
|
<a href="{{ identity.urls.view }}" class="handle">
|
|
|
|
|
{% endif %}
|
|
|
|
|
<div class="link">{{ identity.html_name_or_handle }}</div>
|
2023-05-03 21:42:37 -07:00
|
|
|
|
<small>@{{ identity.username }}@{{ identity.domain_id }}</small>
|
2023-01-09 08:58:17 -08:00
|
|
|
|
{% if link_handle is False %}
|
|
|
|
|
</div>
|
|
|
|
|
{% else %}
|
|
|
|
|
</a>
|
|
|
|
|
{% endif %}
|
2022-12-26 09:14:23 -08:00
|
|
|
|
</div>
|