upstream V3 development https://www.gnusocial.rocks/v3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1.7 KiB

  1. {% set actor_nickname = actor.getNickname() %}
  2. {% set actor_avatar = actor.getAvatarUrl() %}
  3. {% set actor_tags = actor.getSelfTags() %}
  4. {% set actor_bio = actor.getBio() %}
  5. {% block profile_view %}
  6. <section id='profile-{{ actor.id }}' class='profile' title="{{ actor_nickname }}'s {{ 'profile information.' | trans }}">
  7. <a href="{{ path('actor_view_nickname', {'nickname' : actor_nickname}) }}">
  8. <div class="profile-info">
  9. <img src='{{ actor_avatar }}' class="profile-avatar" alt="{{ actor_nickname }}{{ '\'s avatar.' | trans }}">
  10. <strong id="profile-info-nickname" title="{{ actor_nickname }}{{ '\'s nickname.' | trans }}">{{ actor_nickname }}</strong>
  11. <section class="profile-info-bio">
  12. {% if actor_bio %}
  13. <p>{{ actor_bio }}</p>
  14. {% else %}
  15. <p>{{ '(No bio)' | trans }}</p>
  16. {% endif %}
  17. </section>
  18. </div>
  19. </a>
  20. <section class="profile-info-stats">
  21. <div><strong>{{ 'Subscriptions' | trans }}</strong>{{ actor.getSubscriptionsCount() }}</div>
  22. <div><strong>{{ 'Subscribers' | trans }}</strong>{{ actor.getSubscribersCount() }}</div>
  23. </section>
  24. <nav class="profile-info-tags">
  25. {% if actor_tags %}
  26. {% for tag in actor_tags %}
  27. <a href='#'><em>#{{ tag }}</em></a>
  28. {% endfor %}
  29. {% else %}
  30. {{ '(No tags)' | trans }}
  31. {% endif %}
  32. </nav>
  33. {% for block in handle_event('AppendCardProfile', {'actor': actor}) %}
  34. {{ block | raw }}
  35. {% endfor %}
  36. </section>
  37. <hr>
  38. {% endblock profile_view %}