2018-06-17 22:07:01 +02:00
|
|
|
<div class="user">
|
2018-09-08 10:55:59 +02:00
|
|
|
<div class="flex wrap">
|
2018-09-03 15:59:02 +02:00
|
|
|
<img class="avatar medium" src="{{ user.avatar }}" alt="{{ "{{ name}}'s avatar'" | _(name=user.name) }}">
|
2018-09-03 13:17:59 +02:00
|
|
|
|
2018-09-08 10:55:59 +02:00
|
|
|
<h1 class="grow flex vertical">
|
2018-09-03 16:03:25 +02:00
|
|
|
{{ user.name }}
|
|
|
|
<small>@{{ user.fqn }}</small>
|
2018-09-08 10:55:59 +02:00
|
|
|
</h1>
|
2018-07-26 18:36:38 +02:00
|
|
|
|
2018-09-08 10:55:59 +02:00
|
|
|
<p>
|
2018-09-03 16:03:25 +02:00
|
|
|
{% if user.is_admin %}
|
|
|
|
<span class="badge">{{ "Admin" | _ }}</span>
|
|
|
|
{% endif %}
|
2018-09-03 13:17:59 +02:00
|
|
|
|
2018-09-03 16:03:25 +02:00
|
|
|
{% if is_self %}
|
|
|
|
<span class="badge">{{ "It is you" | _ }}</span>
|
|
|
|
{% endif %}
|
2018-09-08 10:55:59 +02:00
|
|
|
|
|
|
|
{% if is_self %}
|
|
|
|
<a href="/@/{{ user.username }}/edit" class="button inline-block">{{ "Edit your profile" | _ }}</a>
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
2018-09-03 16:03:25 +02:00
|
|
|
</div>
|
2018-06-17 19:48:22 +02:00
|
|
|
|
|
|
|
{% if is_remote %}
|
2018-07-26 18:27:02 +02:00
|
|
|
<a class="inline-block button" href="{{ user.ap_url }}" target="_blank">{{ "Open on {{ instance_url }}" | _(instance_url=instance_url) }}</a>
|
2018-06-17 19:48:22 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2018-07-20 17:51:32 +02:00
|
|
|
{% set not_self = not is_self %}
|
|
|
|
{% if not_self and (account is defined) %}
|
2018-06-17 19:48:22 +02:00
|
|
|
{% if follows %}
|
2018-07-20 17:59:16 +02:00
|
|
|
<a href="/@/{{ user.fqn }}/follow/" class="inline-block button">{{ "Unfollow" | _ }}</a>
|
2018-07-20 17:51:32 +02:00
|
|
|
{% else %}
|
2018-07-20 17:59:16 +02:00
|
|
|
<a href="/@/{{ user.fqn }}/follow/" class="inline-block button">{{ "Follow" | _ }}</a>
|
2018-06-17 19:48:22 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
2018-09-05 17:41:31 +02:00
|
|
|
|
|
|
|
<div class="user-summary">
|
|
|
|
{{ user.summary | safe }}
|
2018-06-17 19:48:22 +02:00
|
|
|
</div>
|