Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="songInfo ">
- <span class="skinColor-{{ skinName }} title">
- {{ song.media.title }}
- </span>
- {% set _names = '' %}
- {% if song.ownedBy.artistName %}
- {% set _names = song.ownedBy.artistName %}
- {% else %}
- {% set _names = song.ownedBy.firstName + ' ' + song.ownedBy.lastName %}
- {% endif %}
- {% if song.collaborators %}
- {% set _names = '' %}
- {% set _separator = ', ' %}
- {% if song.countAvailableCollaborators() > 3 %}
- {% if song.ownedBy.artistName %}
- {% set _names = song.ownedBy.artistName %}
- {% else %}
- {% set _names = song.ownedBy.firstName + ' ' + song.ownedBy.lastName %}
- {% endif %}
- {% set _names = _names ~ ' & <a href="javascript:;" class="_openCollaboratorsModalFromLink">' ~ song.countAvailableCollaborators() ~ ' others</a>' %}
- {% else %}
- {% for collaborator in song.getCollaboratorsOwnerFirst() %}
- {% if loop.index == loop.length-1 %}
- {% set _separator = ' & ' %}
- {% endif %}
- {% if collaborator.user %}
- {% set _collaboratorLink = 'javascript:;' %}
- {% if collaborator.user.enabled %}
- {% set _collaboratorLink = path( 'artist_detailed', { "id" : collaborator.user.id } ) %}
- {% else %}
- {% set _collaboratorLink = '#removed-account' %}
- {% endif %}">
- {% set _names = _names ~ '<a href="' ~ _collaboratorLink ~ '">' %}
- {% if collaborator.user.artistName %}
- {% set _names = _names ~ collaborator.user.artistName %}
- {% else %}
- {% set _names = _names ~ collaborator.user.firstName ~ ' ' ~ collaborator.user.lastName %}
- {% endif %}
- {% set _names = _names ~ '</a>' %}
- {% set _names = _names ~ _separator %}
- {% endif %}
- {% endfor %}
- {% endif %}
- {% endif %}
- <span class="author">
- by {{ _names|trim(_separator,'right')|raw }}
- </span>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement