Implement Cache Songs, Cancel Loading, Admin Panel, Custom Category, Localization

This commit is contained in:
2025-12-28 11:54:47 +08:00
parent 92c1261f6f
commit ae4a0f823e
13 changed files with 375 additions and 27 deletions

View File

@@ -0,0 +1,21 @@
{% extends 'admin.html' %}
{% block content %}
<h1>Statistics</h1>
<div class="stats-overview">
<p><strong>Total Users:</strong> {{ stats.users }}</p>
<p><strong>Total Songs:</strong> {{ stats.songs }}</p>
<p><strong>Total Plays:</strong> {{ stats.plays }}</p>
</div>
<h2>Top Played Songs</h2>
<table>
<tr><th>ID</th><th>Title</th><th>Plays</th></tr>
{% for song in top_songs %}
<tr>
<td>{{ song.id }}</td>
<td>{{ song.title }}</td>
<td>{{ song.play_count }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}