{% set scrobbles = dbc.get_scrobbles(filterkeys,limitkeys,amountkeys) %}

{% set firstindex = amountkeys.page * amountkeys.perpage %}
{% set lastindex = firstindex + amountkeys.perpage %}

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


<table class='list'>
	{% for s in scrobbles -%}
		{%- if loop.index0 >= firstindex and loop.index0 < lastindex -%}
		<tr>
			<td class='time'>{{ malojatime.timestamp_desc(s["time"],short=shortTimeDesc) }}</td>
			{{ entityrow.row(s.track) }}
		</tr>
		{%- endif -%}
	{% endfor %}
</table>
