2021-09-18 12:54:35 +09:00
|
|
|
{% set actor_nickname = actor.getNickname() %}
|
|
|
|
{% set actor_avatar = actor.getAvatarUrl() %}
|
2021-12-03 00:36:08 +09:00
|
|
|
{% set actor_avatar_dimensions = actor.getAvatarDimensions() %}
|
2021-12-23 23:04:00 +09:00
|
|
|
{% set actor_tags = actor.getSelfTags() %}
|
2021-12-27 08:00:55 +09:00
|
|
|
{% set actor_has_bio = actor.hasBio() %}
|
2021-11-02 17:34:08 +09:00
|
|
|
{% set actor_uri = actor.getUri() %}
|
2021-12-27 13:13:09 +09:00
|
|
|
{% set actor_url = actor.getUrl() %}
|
|
|
|
{% set actor_is_local = actor.getIsLocal() %}
|
|
|
|
{% set mention = mention(actor) %}
|
2021-09-18 04:33:02 +09:00
|
|
|
|
2021-09-22 22:10:36 +09:00
|
|
|
{% block profile_view %}
|
2022-01-13 01:07:28 +09:00
|
|
|
<section id='profile-{{ actor.id }}' class='profile'
|
|
|
|
title="{% trans %} %actor_nickname%'s profile information{% endtrans %}">
|
2022-01-06 02:39:10 +09:00
|
|
|
<header>
|
2021-09-20 22:38:39 +09:00
|
|
|
<div class="profile-info">
|
2022-01-13 01:07:28 +09: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-01-06 02:39:10 +09:00
|
|
|
<div>
|
|
|
|
<a class="profile-info-url" href="{{ actor_uri }}">
|
2022-01-13 01:07:28 +09:00
|
|
|
<strong class="profile-info-url-nickname"
|
|
|
|
title="{% trans %} %actor_nickname%'s nickname {% endtrans %}">
|
|
|
|
{{ actor_nickname }}
|
|
|
|
</strong>
|
2022-01-06 02:39:10 +09:00
|
|
|
{% if not actor_is_local %}
|
2022-01-13 01:07:28 +09:00
|
|
|
<span class="profile-info-url-remote">
|
|
|
|
{{ mention }}
|
|
|
|
</span>
|
2022-01-06 02:39:10 +09: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>
|
|
|
|
</div>
|
2021-09-18 05:51:55 +09:00
|
|
|
</div>
|
2022-01-06 02:39:10 +09:00
|
|
|
<div class="profile-stats">
|
2022-01-13 01:07:28 +09:00
|
|
|
<span class="profile-stats-subscriptions" title="{% trans %} %actor_nickname%'s subscribed count{% endtrans %}">
|
|
|
|
<strong>
|
|
|
|
<a href="{{ actor.getSubscriptionsUrl() }}">{{ 'Subscribed' | trans }}</a>
|
|
|
|
</strong>{{ actor.getSubscribedCount() }}
|
|
|
|
</span>
|
|
|
|
<span class="profile-stats-subscribers" title="{% trans %} %actor_nickname%'s subscribers count{% endtrans %}">
|
|
|
|
<strong>
|
|
|
|
<a href="{{ actor.getSubscribersUrl() }}">{{ 'Subscribers' | trans }}</a>
|
|
|
|
</strong>{{ actor.getSubscribersCount() }}
|
|
|
|
</span>
|
2022-01-06 02:39:10 +09:00
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<div>
|
2022-01-13 01:07:28 +09:00
|
|
|
<section class="profile-bio" title="{% trans %} %actor_nickname%'s bio{% endtrans %}">
|
2022-01-06 02:39:10 +09:00
|
|
|
<span>{{ actor.getBio() }}</span>
|
2021-12-27 13:13:09 +09:00
|
|
|
</section>
|
2021-09-25 19:17:56 +09:00
|
|
|
|
2022-01-13 01:07:28 +09:00
|
|
|
<nav class="profile-tags" title="{% trans %} %actor_nickname%'s actor tags{% endtrans %}">
|
2022-01-06 02:39:10 +09:00
|
|
|
{% for tag in actor_tags %}
|
|
|
|
{% include 'cards/tag/actor_tag.html.twig' with { 'tag': tag, 'actor': actor } %}
|
|
|
|
{% endfor %}
|
|
|
|
</nav>
|
|
|
|
</div>
|
2021-12-22 02:20:22 +09:00
|
|
|
{% for block in handle_event('AppendCardProfile', { 'actor': actor }) %}
|
2021-09-25 19:17:56 +09:00
|
|
|
{{ block | raw }}
|
|
|
|
{% endfor %}
|
2021-09-22 22:10:36 +09:00
|
|
|
</section>
|
|
|
|
{% endblock profile_view %}
|