userList.html.twig 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {% extends "MuzichFavoriteBundle::layout.html.twig" %}
  2. {% block title %}{{ 'title.favoriteof'|trans({'%name%':viewed_user.name}, 'userui') }}{% endblock %}
  3. {% block mainbox_classes %}mainbox_nopadding{% endblock %}
  4. {% block content %}
  5. <div class="top_tools">
  6. <div class="show_options">
  7. <a class="button darkbutton" href="{{ path('show_user', {'slug' : viewed_user.slug}) }}" >
  8. {{ 'user.view_profile'|trans({}, 'users') }}
  9. </a>
  10. </div>
  11. <h1>{{ 'favorites.user_favorites'|trans({'%name%' : viewed_user.name}, 'network') }}</h1>
  12. {% include "MuzichCoreBundle:Tag:tagsList.favorite.html.twig" with {
  13. 'user_id' : viewed_user.id
  14. } %}
  15. </div>
  16. {% if not viewed_user.favoritesPublics and viewed_user.id != app.user|userId %}
  17. <p class="solop favorites_no_publics">{{ 'favorites.nopublic'|trans({'%user_username%' : viewed_user.name}, 'network') }}</p>
  18. {% else %}
  19. {% include "MuzichCoreBundle:SearchElement:default.html.twig" with{
  20. 'display_autoplay' : true,
  21. 'autoplay_context' : 'favorite_user'
  22. } %}
  23. {% endif %}
  24. {% if elements|length %}
  25. {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
  26. 'more_path' : path('favorite_get', {
  27. 'user_id': viewed_user.id,
  28. 'tags_ids_json' : '[]'
  29. }),
  30. 'more_url_path' : path('favorite_get', {
  31. 'user_id': viewed_user.id,
  32. 'tags_ids_json' : ''
  33. })
  34. }%}
  35. {% endif %}
  36. {% endblock %}