2018-06-17 20:07:01 +00:00
|
|
|
<div class="user">
|
2018-06-17 17:48:22 +00:00
|
|
|
<h1>
|
2018-07-26 14:36:19 +00:00
|
|
|
{{ user.name }}
|
2018-06-17 17:48:22 +00:00
|
|
|
{% if user.is_admin %}
|
|
|
|
<span class="badge">{{ "Admin" | _ }}</span>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if is_self %}
|
|
|
|
<span class="badge">{{ "It is you" | _ }}</span>
|
|
|
|
{% endif %}
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
{% if is_self %}
|
2018-06-21 23:17:22 +00:00
|
|
|
<a href="/@/{{ user.username }}/edit" class="button inline-block">{{ "Edit your profile" | _ }}</a>
|
2018-06-17 17:48:22 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if is_remote %}
|
|
|
|
<a class="inline-block button" href="{{ user.ap_url }}">{{ "Open on {{ instance_url }}" | _(instance_url=instance_url) }}</a>
|
|
|
|
{% endif %}
|
|
|
|
|
2018-07-20 15:51:32 +00:00
|
|
|
{% set not_self = not is_self %}
|
|
|
|
{% if not_self and (account is defined) %}
|
2018-06-17 17:48:22 +00:00
|
|
|
{% if follows %}
|
2018-07-20 15:59:16 +00:00
|
|
|
<a href="/@/{{ user.fqn }}/follow/" class="inline-block button">{{ "Unfollow" | _ }}</a>
|
2018-07-20 15:51:32 +00:00
|
|
|
{% else %}
|
2018-07-20 15:59:16 +00:00
|
|
|
<a href="/@/{{ user.fqn }}/follow/" class="inline-block button">{{ "Follow" | _ }}</a>
|
2018-06-17 17:48:22 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<a href="followers/">{{ "{{ count }} followers" | _n(singular="One follower", count=n_followers) }}</a>
|
|
|
|
</div>
|