[views] Move elaborate charts to the charts page

This commit is contained in:
2024-07-23 16:24:59 -04:00
parent dcd7196010
commit 74c32bc4d5
3 changed files with 35 additions and 8 deletions

View File

@ -3,6 +3,11 @@
{% block title %}{{name}}{% endblock %}
{% block lists %}
<div "calss="row>
{% include "scrobbles/_top_charts.html" %}
</div>
<div class="row">
{% if artist_charts %}
<div class="col-md">

View File

@ -82,19 +82,14 @@
{% if not user.is_authenticated %}
<p>Today <b>{{counts.today}}</b> | This Week <b>{{counts.week}}</b> | This Month <b>{{counts.month}}</b> | This Year <b>{{counts.year}}</b> | All Time <b>{{counts.alltime}}</b></p>
<canvas class="my-4 w-100" id="myChart" width="900" height="300"></canvas>
{% endif %}
{% else %}
<div class="container">
{% if user.is_authenticated %}
<div class="row">
{% include "scrobbles/_top_charts.html" %}
</div>
<div class="row">
{% include "scrobbles/_last_scrobbles.html" %}
</div>
{% endif %}
</div>
{% endif %}
</main>
<div class="modal fade" id="importModal" tabindex="-1" role="dialog" aria-labelledby="importModalLabel"