avatar_block.html.twig 1.1 KB

1234567891011121314151617181920212223242526
  1. {% autoescape false %}
  2. <div class="user-panel user-panel-column">
  3. <div class="user-panel-image">
  4. <div class="avatar avatar-lg avatar-bordered">
  5. {% if show_group %}
  6. <a href="{{ avatar.big }}" class="expand-image">
  7. <img src="{{ avatar.normal }}" class="img-fluid rounded-circle">
  8. </a>
  9. <div class="user-panel-info mb-10">
  10. <p class="text-black">{{ group.name }}</p>
  11. <small class="text-secondary">{{ 'Created'|trans }}: {{ group.created_at }} </small>
  12. </div>
  13. {% elseif show_user %}
  14. <a href="{{ avatar.big }}" class="expand-image">
  15. <img class="img-fluid rounded-circle" src="{{ avatar.normal }}" alt="{{ 'UserPicture'|get_lang }}">
  16. </a>
  17. <div class="user-panel-info mb-10">
  18. <p class="text-black">{{ user.complete_name }}</p>
  19. <small class="text-secondary">{{ user.email }} ({{ user.username }})</small>
  20. </div>
  21. {% endif %}
  22. </div>
  23. </div>
  24. </div>
  25. {% endautoescape %}