[charts] Add timemachine links
This commit is contained in:
@ -64,6 +64,30 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if period_type == "month" and month %}
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<small class="text-muted me-2">Time machine:</small>
|
||||
{% for y in chart_years %}
|
||||
{% if y != year %}
|
||||
<a href="?date={{ y }}-{{ month|stringformat:'02d' }}" class="btn btn-xs btn-outline-secondary" style="padding:1px 4px;font-size:10px;">{{ y }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% elif period_type == "week" and week %}
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<small class="text-muted me-2">Time machine:</small>
|
||||
{% for y in chart_years %}
|
||||
{% if y != year %}
|
||||
<a href="?date={{ y }}-W{{ week|stringformat:'02d' }}" class="btn btn-xs btn-outline-secondary" style="padding:1px 4px;font-size:10px;">{{ y }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="row">
|
||||
{% if charts.artist %}
|
||||
<div class="col-md-6 col-lg-4 chart-section">
|
||||
|
||||
Reference in New Issue
Block a user