{% if data.size > 0 %} {% capture css %} {% render "../../../assets/styles/components/track-chart.css" %} {% render "../../../assets/styles/components/progress-bar.css" %} {% endcapture %} {% endif %}
{% for item in data limit: 10 %} {%- assign percentage = item.plays | calculatePlayPercentage: mostPlayed -%}
{{ forloop.index }}.
{{ item.title }}
{{ item.artist }} • {{ item.plays }} plays
{% render "partials/now/progress-bar.liquid", percentage:percentage %}
{% endfor %}