2021-09-22 14:10:36 +01:00
|
|
|
{% block profile_view %}
|
2022-02-16 03:01:25 +00:00
|
|
|
{% set actor_fullname = actor.getFullname() %}
|
|
|
|
{% set actor_nickname = actor.getNickname() %}
|
|
|
|
{% set actor_avatar = actor.getAvatarUrl() %}
|
|
|
|
{% set actor_avatar_dimensions = actor.getAvatarDimensions() %}
|
|
|
|
{% set actor_tags = actor.getSelfTags() %}
|
|
|
|
{% set actor_has_bio = actor.hasBio() %}
|
|
|
|
{% set actor_uri = actor.getUri() %}
|
|
|
|
{% set actor_url = actor.getUrl() %}
|
|
|
|
{% set actor_is_local = actor.getIsLocal() %}
|
|
|
|
{% set mention = mention(actor) %}
|
|
|
|
|
2022-01-12 16:07:28 +00:00
|
|
|
<section id='profile-{{ actor.id }}' class='profile'
|
|
|
|
title="{% trans %} %actor_nickname%'s profile information{% endtrans %}">
|
2022-01-05 17:39:10 +00:00
|
|
|
<header>
|
2021-09-20 14:38:39 +01:00
|
|
|
<div class="profile-info">
|
2022-01-12 16:07:28 +00:00
|
|
|
<img src="{{ actor_avatar }}" class="profile-avatar avatar"
|
|
|
|
alt="{% trans %} %actor_nickname%'s avatar{% endtrans %}"
|
|
|
|
title="{% trans %} %actor_nickname%'s avatar{% endtrans %}"
|
|
|
|
width="{{ actor_avatar_dimensions['width'] }}"
|
|
|
|
height="{{ actor_avatar_dimensions['height'] }}">
|
2022-02-16 03:01:25 +00:00
|
|
|
<div>
|
2022-02-13 22:31:04 +00:00
|
|
|
<a class="profile-info-url" href="{{ actor_url }}">
|
2022-02-16 03:01:25 +00:00
|
|
|
{% if profile_card_type is defined and profile_card_type starts with 'main' %}
|
|
|
|
<h1 class="profile-info-url-nickname"
|
|
|
|
title="{% trans %} %actor_nickname%'s profile {% endtrans %}">
|
|
|
|
{% if actor_fullname is not null %}{{ actor_fullname }}{% else %}{{ actor_nickname }}{% endif %}
|
|
|
|
</h1>
|
|
|
|
{% else %}
|
|
|
|
<strong class="profile-info-url-nickname"
|
|
|
|
title="{% trans %} %actor_nickname%'s profile {% endtrans %}">
|
|
|
|
{% if actor_fullname is not null %}{{ actor_fullname }}{% else %}{{ actor_nickname }}{% endif %}
|
|
|
|
</strong>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-01-05 17:39:10 +00:00
|
|
|
{% if not actor_is_local %}
|
2022-01-12 16:07:28 +00:00
|
|
|
<span class="profile-info-url-remote">
|
2022-02-13 22:31:04 +00:00
|
|
|
<a href="{{ actor_uri }}" class="u-url" title="{% trans %} %actor_nickname%'s permalink {% endtrans %}">{{ mention }}</a>
|
2022-01-12 16:07:28 +00:00
|
|
|
</span>
|
2022-01-05 17:39:10 +00:00
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
<ul class="profile-info-actions">
|
|
|
|
{% for current_action in get_profile_actions(actor) %}
|
|
|
|
<li>
|
|
|
|
<a title="{{ current_action["title"] | trans }}"
|
|
|
|
class="{{ current_action["classes"] }}"
|
|
|
|
href="{{ current_action["url"] }}"></a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2022-02-16 03:01:25 +00:00
|
|
|
</div>
|
2021-09-17 21:51:55 +01:00
|
|
|
</div>
|
2022-01-05 17:39:10 +00:00
|
|
|
<div class="profile-stats">
|
2022-01-17 21:33:38 +00:00
|
|
|
<span class="profile-stats-subscriptions"
|
|
|
|
title="{% trans %} %actor_nickname%'s subscribed count{% endtrans %}">
|
2022-01-12 16:07:28 +00:00
|
|
|
<strong>
|
2022-03-01 11:27:19 +00:00
|
|
|
<a href="{{ actor.getSubscriptionsUrl() }}">{% trans %}Subscribed{% endtrans %}</a>
|
2022-01-12 16:07:28 +00:00
|
|
|
</strong>{{ actor.getSubscribedCount() }}
|
|
|
|
</span>
|
2022-01-17 21:33:38 +00:00
|
|
|
<span class="profile-stats-subscribers"
|
|
|
|
title="{% trans %} %actor_nickname%'s subscribers count{% endtrans %}">
|
2022-01-12 16:07:28 +00:00
|
|
|
<strong>
|
2022-03-01 11:27:19 +00:00
|
|
|
<a href="{{ actor.getSubscribersUrl() }}">{% trans %}Subscribers{% endtrans %}</a>
|
2022-01-12 16:07:28 +00:00
|
|
|
</strong>{{ actor.getSubscribersCount() }}
|
|
|
|
</span>
|
2022-01-05 17:39:10 +00:00
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<div>
|
2022-01-12 16:07:28 +00:00
|
|
|
<section class="profile-bio" title="{% trans %} %actor_nickname%'s bio{% endtrans %}">
|
2022-01-05 17:39:10 +00:00
|
|
|
<span>{{ actor.getBio() }}</span>
|
2021-12-27 04:13:09 +00:00
|
|
|
</section>
|
2021-09-25 11:17:56 +01:00
|
|
|
|
2022-01-12 16:07:28 +00:00
|
|
|
<nav class="profile-tags" title="{% trans %} %actor_nickname%'s actor tags{% endtrans %}">
|
2022-01-05 17:39:10 +00:00
|
|
|
{% for tag in actor_tags %}
|
2022-02-06 21:37:04 +00:00
|
|
|
{% include 'cards/blocks/tag_actor.html.twig' with { 'tag': tag, 'actor': actor } %}
|
2022-01-05 17:39:10 +00:00
|
|
|
{% endfor %}
|
|
|
|
</nav>
|
|
|
|
</div>
|
2021-12-21 17:20:22 +00:00
|
|
|
{% for block in handle_event('AppendCardProfile', { 'actor': actor }) %}
|
2021-09-25 11:17:56 +01:00
|
|
|
{{ block | raw }}
|
|
|
|
{% endfor %}
|
2021-09-22 14:10:36 +01:00
|
|
|
</section>
|
|
|
|
{% endblock profile_view %}
|