userList.html.twig 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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_shuffle' : 'elements_get_filter_data_autoplay_favorite',
  22. 'autoplay_context' : 'favorite_user'
  23. } %}
  24. {% endif %}
  25. {% if elements|length %}
  26. {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
  27. 'more_path' : path('favorite_get', {
  28. 'user_id': viewed_user.id,
  29. 'tags_ids_json' : '[]'
  30. }),
  31. 'more_url_path' : path('favorite_get', {
  32. 'user_id': viewed_user.id,
  33. 'tags_ids_json' : ''
  34. })
  35. }%}
  36. {% endif %}
  37. {% endblock %}