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