{% extends "MuzichFavoriteBundle::layout.html.twig" %}

{% block title %}Mes favoris{% endblock %}

{% block content %}

  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with {'active': 'myfavorites'} %}

  <h2>{{ 'favorites.your_favorites'|trans({}, 'network') }}</h2>

  {% include "MuzichCoreBundle:Tag:tagsList.favorite.html.twig" with {
    'user_id' : app.user.id
  } %}
  
  {% include "MuzichCoreBundle:SearchElement:default.html.twig" %}
    
  <div class="elements_loader_div">
    <img class="elements_more_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
  </div>
  
  {% if elements|length %}
     <span class="elements_more">
       <input type="hidden" id="more_elements_url" value="{{ path('favorite_get', {'user_id': app.user.id, 'tags_ids_json' : ''}) }}" />
       <a href="{{ path('favorite_get', {'user_id': app.user.id, 'tags_ids_json' : tags_id_json}) }}" class="elements_more button">
         {{ 'more'|trans({}, 'userui') }}
       </a>
     </span>
  {% endif %}
    
{% endblock %}