Files
vrobbler/vrobbler/templates/scrobbles/_chart_links.html
Colin Powell bf7e5677e6
All checks were successful
build & deploy / test (push) Successful in 1m51s
build & deploy / build-and-deploy (push) Successful in 30s
[charts] Clean up how they're displayed
2026-05-15 16:03:53 -04:00

20 lines
660 B
HTML

{% if charts %}
<div class="row">
<div class="col-md">
{% for period_type, chart_list in charts.items %}
<div class="mb-1">
<small class="text-muted">
{% if period_type == "year" %}📅 Yearly
{% elif period_type == "month" %}📆 Monthly
{% elif period_type == "week" %}🗓️ Weekly
{% endif %}
</small>
{% for chart in chart_list %}
<a href="{{chart.chart_url}}">{{chart.rank_emoji}} {{chart.period_str}}</a>{% if not forloop.last %} · {% endif %}
{% endfor %}
</div>
{% endfor %}
</div>
</div>
{% endif %}