|
@@ -5,7 +5,7 @@
|
5
|
5
|
|
6
|
6
|
<div class="create_playlist">
|
7
|
7
|
<h2 class="nomargintop">{{ 'playlist.create_and_add'|trans({}, 'elements') }}</h2>
|
8
|
|
- <form action="{{ path('playlist_add_element_and_create', { 'element_id' : element_id }) }}" method="post">
|
|
8
|
+ <form action="{{ path('playlist_add_element_and_create', { 'element_id' : element.id }) }}" method="post">
|
9
|
9
|
{% include 'MuzichPlaylistBundle:Show:form.html.twig' with {
|
10
|
10
|
'display_public_widget' : true
|
11
|
11
|
} %}
|
|
@@ -18,19 +18,19 @@
|
18
|
18
|
<ul class="playlists_for_element">
|
19
|
19
|
{% for playlist in playlists %}
|
20
|
20
|
<li
|
21
|
|
- class="playlist {% if playlist.haveElementId(element_id) %}in{% endif %}"
|
22
|
|
- title="{% if playlist.haveElementId(element_id) %}{{ 'playlist.contained'|trans({}, 'elements') }}{% else %}{{ 'playlist.not_contained'|trans({}, 'elements') }}{% endif %}"
|
|
21
|
+ class="playlist{% if playlist.haveElementId(element.id) %} in{% endif %}{% if playlist.haveOneOfTags(element.tags) %} remarquable{% endif %}"
|
|
22
|
+ title="{% if playlist.haveElementId(element.id) %}{{ 'playlist.contained'|trans({}, 'elements') }}{% else %}{{ 'playlist.not_contained'|trans({}, 'elements') }}{% endif %}"
|
23
|
23
|
>
|
24
|
24
|
<a class="add_element_to_playlist"
|
25
|
25
|
{% if playlist.owned(app.user) %}
|
26
|
26
|
href="{{ path_token('playlists_add_element', {
|
27
|
27
|
'playlist_id' : playlist.id,
|
28
|
|
- 'element_id' : element_id
|
|
28
|
+ 'element_id' : element.id
|
29
|
29
|
}) }}"
|
30
|
30
|
{% else %}
|
31
|
31
|
href="{{ path_token('playlists_add_element_and_copy', {
|
32
|
32
|
'playlist_id' : playlist.id,
|
33
|
|
- 'element_id' : element_id
|
|
33
|
+ 'element_id' : element.id
|
34
|
34
|
}) }}"
|
35
|
35
|
{% endif %}
|
36
|
36
|
>
|