fix: play vs plays

This commit is contained in:
Cory Dransfeldt 2024-06-14 11:56:11 -07:00
parent 8e28d87d88
commit f1b157be51
No known key found for this signature in database
3 changed files with 11 additions and 4 deletions

View file

@ -10,7 +10,14 @@
<div class="title">
<a href="{{ item.url }}">{{ item.title }}</a>
</div>
<div class="subtext">{{ item.artist }}: {{ item.plays }} plays</div>
{% capture playsLabel %}
{% if item.plays > 1 %}
plays
{% else %}
play
{% endif %}
{% endcapture %}
<div class="subtext">{{ item.artist }} / {{ item.plays }} {{ playsLabel }}</div>
</div>
</div>
{% render "partials/media/progress-bar.liquid", percentage:percentage %}