27 lines
No EOL
964 B
Text
27 lines
No EOL
964 B
Text
<div class="music-chart">
|
|
<ol type="1">
|
|
{%- for item in data limit: count -%}
|
|
{%- assign percentage = item.chart.percentage | append: '%' -%}
|
|
<li value="{{ item.chart.rank }}">
|
|
<div class="item">
|
|
<div class="info">
|
|
<a class="title" href="{{ item.chart.url }}">{{ item.chart.title }}</a>
|
|
{%- capture playsLabel -%}
|
|
{%- if item.chart.plays > 1 -%}
|
|
plays
|
|
{%- else -%}
|
|
play
|
|
{%- endif -%}
|
|
{%- endcapture -%}
|
|
<span class="subtext">{{ item.chart.artist }}</span>
|
|
<span class="subtext">{{ item.chart.plays }} {{ playsLabel }}</span>
|
|
</div>
|
|
{% render "partials/media/progress-bar.liquid", percentage:percentage %}
|
|
</div>
|
|
</li>
|
|
{%- endfor -%}
|
|
</ol>
|
|
</div>
|
|
{%- unless count -%}
|
|
{% render "partials/nav/paginator.liquid", pagination:pagination %}
|
|
{%- endunless -%} |