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-09-18 05:51:55 +09:00
|
|
|
{% set actor_bio = actor.getBio() %}
|
2021-11-02 17:34:08 +09:00
|
|
|
{% set actor_uri = actor.getUri() %}
|
2021-09-18 04:33:02 +09:00
|
|
|
|
2021-09-22 22:10:36 +09:00
|
|
|
{% block profile_view %}
|
2021-09-25 20:51:25 +09:00
|
|
|
<section id='profile-{{ actor.id }}' class='profile' title="{{ actor_nickname }}'s {{ 'profile information.' | trans }}">
|
2021-11-02 17:34:08 +09:00
|
|
|
<a href="{{ actor_uri }}">
|
2021-09-20 22:38:39 +09:00
|
|
|
<div class="profile-info">
|
2021-12-03 00:36:08 +09:00
|
|
|
<img src="{{ actor_avatar }}" class="profile-avatar" alt="{% trans %} %actor_nickname%'s avatar. {% endtrans %}" width="{{actor_avatar_dimensions['width']}}" height="{{actor_avatar_dimensions['height']}}">
|
2021-09-26 06:30:46 +09:00
|
|
|
<strong class="profile-info-nickname" title="{{ actor_nickname }}{{ '\'s nickname.' | trans }}">{{ actor_nickname }}</strong>
|
2021-09-18 04:33:02 +09:00
|
|
|
|
2021-09-23 01:20:06 +09:00
|
|
|
<section class="profile-info-bio">
|
2021-09-18 05:51:55 +09:00
|
|
|
{% if actor_bio %}
|
2021-12-24 06:29:46 +09:00
|
|
|
<span>{{ actor_bio }}</span>
|
2021-09-18 05:51:55 +09:00
|
|
|
{% else %}
|
2021-12-24 06:29:46 +09:00
|
|
|
<span>{{ '(No bio)' | trans }}</span>
|
2021-09-18 05:51:55 +09:00
|
|
|
{% endif %}
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</a>
|
2021-09-23 21:53:02 +09:00
|
|
|
|
|
|
|
<section class="profile-info-stats">
|
2021-11-08 22:44:35 +09:00
|
|
|
<div><strong>{{ 'Subscribed' | trans }}</strong>{{ actor.getSubscribedCount() }}</div>
|
2021-09-23 21:53:02 +09:00
|
|
|
<div><strong>{{ 'Subscribers' | trans }}</strong>{{ actor.getSubscribersCount() }}</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<nav class="profile-info-tags">
|
|
|
|
{% if actor_tags %}
|
2021-11-30 00:31:02 +09:00
|
|
|
{% for tag in actor_tags %}
|
|
|
|
{% include 'cards/tag/actor_tag.html.twig' with { 'tag': tag, 'actor': actor } %}
|
2021-09-23 21:53:02 +09:00
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
{{ '(No tags)' | trans }}
|
|
|
|
{% endif %}
|
|
|
|
</nav>
|
2021-09-25 19:17:56 +09:00
|
|
|
|
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 %}
|