2021-09-18 04:54:35 +01:00
|
|
|
{% set actor_nickname = actor.getNickname() %}
|
|
|
|
{% set actor_avatar = actor.getAvatarUrl() %}
|
2021-09-17 21:51:55 +01:00
|
|
|
{% set actor_tags = actor.getSelfTags() %}
|
|
|
|
{% set actor_bio = actor.getBio() %}
|
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-09-23 13:53:02 +01:00
|
|
|
<img src='{{ actor_avatar }}' class="profile-avatar" alt="{{ actor_nickname }}{{ '\'s avatar.' | trans }}">
|
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-09-17 21:51:55 +01:00
|
|
|
{% if actor_bio %}
|
|
|
|
<p>{{ actor_bio }}</p>
|
|
|
|
{% else %}
|
|
|
|
<p>{{ '(No bio)' | trans }}</p>
|
|
|
|
{% 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-28 18:58:56 +00:00
|
|
|
{% for tag in actor_tags %} {# Actually a list of actor_circle #}
|
|
|
|
{% include 'cards/tag/actor_tag.html.twig' with { 'tag': tag.getActorTag(), '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-09-25 14:20:47 +01: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>
|
2021-09-20 14:38:39 +01:00
|
|
|
|
2021-09-22 14:10:36 +01:00
|
|
|
<hr>
|
|
|
|
{% endblock profile_view %}
|