{%- for item in data limit: count -%} {%- assign percentage = item.chart.percentage | append: '%' -%}
  1. {{ item.chart.title }} {%- capture playsLabel -%} {%- if item.chart.plays > 1 -%} plays {%- else -%} play {%- endif -%} {%- endcapture -%} {{ item.chart.artist }} {{ item.chart.plays }} {{ playsLabel }}
    {% render "partials/media/progress-bar.liquid", percentage:percentage %}
  2. {%- endfor -%}
{%- unless count -%} {% render "partials/nav/paginator.liquid", pagination:pagination %} {%- endunless -%}