mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-20 10:31:17 +00:00
775162559e
Center avatar's alt text, since the only fix to display them on a single line would break valid avatars
42 lines
1.3 KiB
Text
42 lines
1.3 KiB
Text
<div class="user">
|
|
<div class="flex wrap">
|
|
<img class="avatar medium" src="{{ user.avatar }}" alt="{{ "{{ name}}'s avatar'" | _(name=user.name) }}">
|
|
|
|
<h1 class="grow flex vertical">
|
|
{{ user.name }}
|
|
<small>@{{ user.fqn }}</small>
|
|
</h1>
|
|
|
|
<p>
|
|
{% if user.is_admin %}
|
|
<span class="badge">{{ "Admin" | _ }}</span>
|
|
{% endif %}
|
|
|
|
{% if is_self %}
|
|
<span class="badge">{{ "It is you" | _ }}</span>
|
|
{% endif %}
|
|
|
|
{% if is_self %}
|
|
<a href="/@/{{ user.username }}/edit" class="button inline-block">{{ "Edit your profile" | _ }}</a>
|
|
{% endif %}
|
|
</p>
|
|
</div>
|
|
|
|
{% if is_remote %}
|
|
<a class="inline-block button" href="{{ user.ap_url }}" target="_blank">{{ "Open on {{ instance_url }}" | _(instance_url=instance_url) }}</a>
|
|
{% endif %}
|
|
|
|
{% set not_self = not is_self %}
|
|
{% if not_self and (account is defined) %}
|
|
{% if follows %}
|
|
<a href="/@/{{ user.fqn }}/follow/" class="inline-block button">{{ "Unfollow" | _ }}</a>
|
|
{% else %}
|
|
<a href="/@/{{ user.fqn }}/follow/" class="inline-block button">{{ "Follow" | _ }}</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
|
|
|
|
<div class="user-summary">
|
|
{{ user.summary | safe }}
|
|
</div>
|