Commit 50d1efe9 authored by SeeBeyond's avatar SeeBeyond

Add user link, remove last ',' in playlist detail

parent 7f25ead5
...@@ -49,7 +49,10 @@ ...@@ -49,7 +49,10 @@
{% set charters = [] %} {% set charters = [] %}
{% for song in playlist.songs %} {% for song in playlist.songs %}
{% if song.charter not in charters %} {% if song.charter not in charters %}
{{ song.charter }},  {% if loop.index == 1 %}
<a href="{{ path('user.detail', {userId: song.charter.id}) }}">{{ song.charter }}</a>
{% endif %}
,&#32<a href="{{ path('user.detail', {userId: song.charter.id}) }}">{{ song.charter }}</a>
{% set charters = charters|merge([song.charter]) %} {% set charters = charters|merge([song.charter]) %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
...@@ -76,4 +79,4 @@ ...@@ -76,4 +79,4 @@
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ asset('assets/css/playlistdetail.css?v=' ~ date().timestamp) }}" /> <link rel="stylesheet" href="{{ asset('assets/css/playlistdetail.css?v=' ~ date().timestamp) }}" />
{% endblock %} {% endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment