actor.html.twig 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <div class="actor">
  2. <div class="actor-content">
  3. <div class="actor-info">
  4. {% set nickname = actor.getNickname() %}
  5. <div class="actor-avatar">
  6. <img class="icon icon-avatar" src="{{ actor.getAvatarUrl() }}" alt="{{ nickname }}'s avatar">
  7. </div>
  8. <div class="actor-nickname-and-tags">
  9. <b id="nick">{{ nickname }}</b>
  10. {% set actor_tags = actor.getSelfTags() %}
  11. <div class="tags">
  12. {% if actor_tags %}
  13. {% for tag in actor_tags %}
  14. <a href='#'><i> #{{ tag }} </i></a>
  15. {% endfor %}
  16. {% else %}
  17. <i> {{ '(No tags)' | trans }} </i>
  18. {% endif %}
  19. </div>
  20. </div>
  21. </div>
  22. {% set actor_bio = actor.getBio() %}
  23. <div class="actor-bio">
  24. {% if actor_bio %}
  25. <p>{{ actor_bio }}</p>
  26. {% else %}
  27. <p>{{ '(No bio)' | trans }}</p>
  28. {% endif %}
  29. </div>
  30. </div>
  31. </div>