{% macro row(entity,counting=[]) %}

{% import 'snippets/links.jinja' as links %}

{% if 'artists' in entity %}
	{% set img = images.get_track_image(entity) %}
{% else %}
	{% set img = images.get_artist_image(entity) %}
{% endif %}

<td class='icon'><div style="background-image:url('{{ img }}')"></div></td>
{% if "artists" in entity %}
	{% if settings['TRACK_SEARCH_PROVIDER'] %}
		<td class='searchProvider'>{{ links.link_search(entity) }}</td>
	{% endif %}
	<td class='track'>
		<span class='artist_in_trackcolumn'>{{ links.links(entity.artists) }}</span> – {{ links.link(entity) }}
	</td>
{% else %}
	<td class='artist'>{{ links.link(entity) }}
	{% if counting != [] %}
		<span class='extra'>incl. {{ links.links(counting) }}</span>
	{% endif %}
	</td>

{% endif %}

{% endmacro %}
