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