Plume/templates/users/header.html.tera

43 lines
1.3 KiB
Plaintext
Raw Normal View History

<div class="user">
<div class="flex wrap">
2018-09-09 22:41:55 +02:00
{{ macros::avatar(user=user, size="medium") }}
<h1 class="grow flex vertical">
2018-09-03 16:03:25 +02:00
{{ user.name }}
<small>@{{ user.fqn }}</small>
</h1>
2018-07-26 18:36:38 +02:00
<p>
2018-09-03 16:03:25 +02:00
{% if user.is_admin %}
<span class="badge">{{ "Admin" | _ }}</span>
{% endif %}
2018-09-03 16:03:25 +02:00
{% 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>
2018-09-03 16:03:25 +02:00
</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>
2018-09-05 17:41:31 +02:00
<div class="user-summary">
{{ user.summary | safe }}
</div>