show.html.twig 1.1KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {% extends "MuzichFavoriteBundle::layout.html.twig" %}
  2. {% block title %}{% endblock %}
  3. {% block mainbox_classes %}{% endblock %}
  4. {% block content %}
  5. <div class="top_tools">
  6. <a class="autoplay_playlist" href="{{ path('playlist_datas_for_autoplay', { 'playlist_id' : playlist.id }) }}" >
  7. Lire
  8. </a>
  9. <h2>{{ playlist.name }}</h2>
  10. {% include "MuzichCoreBundle:Tag:tag_cloud.html.twig" with {
  11. 'tags' : playlist.tags
  12. } %}
  13. {% if playlist.elements|length %}
  14. <ul class="playlist_elements">
  15. {% for element in playlist.elements %}
  16. <li class="playlist_element">
  17. <a class="autoplay_playlist" href="{{ path('playlist_datas_for_autoplay', { 'playlist_id' : playlist.id, 'offset' : loop.index0 }) }}">
  18. play
  19. </a>
  20. <a class="open_element" href="{{ path('element_get_one', { 'element_id' : element.id }) }}" data-id="{{ element.id }}">
  21. {{ element.name }}
  22. </a>
  23. </li>
  24. {% endfor %}
  25. </ul>
  26. {% endif %}
  27. </div>
  28. {% endblock %}