showUser.html.twig 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {% extends "MuzichHomeBundle::layout.html.twig" %}
  2. {% block title %}{{ viewed_user.name }}{% endblock %}
  3. {% block content %}
  4. <span class="follow_link following">
  5. <a href="{{ path('favorite_user_list', {'slug' : viewed_user.slug}) }}" >
  6. {{ 'user.view_favorites'|trans({}, 'users') }}
  7. </a>
  8. |
  9. <a href="{{ path('follow', { 'type': 'user', 'id': viewed_user.id, 'token': user.personalHash }) }}"
  10. class="follow_link {% if following %}following{% else %}notfollowing{% endif %}" >
  11. {% if following %}
  12. {{ 'user.notfollow'|trans({}, 'users') }}
  13. {% else %}
  14. {{ 'user.follow'|trans({}, 'users') }}
  15. {% endif %}
  16. </a>
  17. </span>
  18. <h2>{{ viewed_user.name }}</h2>
  19. {% include "MuzichCoreBundle:SearchElement:default.html.twig" %}
  20. {% if more_count is defined %}
  21. {% if elements|length %}
  22. <span class="elements_more">
  23. <a href="{{ path('show_user_more', {'count': more_count, 'slug': viewed_user.slug}) }}" >
  24. {{ 'more'|trans({}, 'userui') }}
  25. </a>
  26. </span>
  27. {% endif %}
  28. {% endif %}
  29. {% endblock %}