mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
63 lines
2.4 KiB
HTML
63 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Music - RYG</title>
|
|
<script src="{{ url_for('static', filename='sorttable.js') }}"></script>
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css"
|
|
integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='royal.css') }}">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>
|
|
Royal Music
|
|
</h1>
|
|
<div id="music">
|
|
<h2>
|
|
File più ascoltati
|
|
</h2>
|
|
<table class="table table-hover sortable">
|
|
<thead>
|
|
<tr>
|
|
<th>File</th>
|
|
<th>Ascoltato</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for record in music_counts %}
|
|
<tr>
|
|
<td><a href="https://royal.steffo.eu/music/{{ record.filename }}.opus">{{ record.filename }}</a></td>
|
|
<td sorttable_customkey="{{ record[1] }}">{{ record[1] }} volt{{ 'a' if record[1] == 1 else 'e' }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<h2>
|
|
Cronologia
|
|
</h2>
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>File</th>
|
|
<th>Aggiunto da</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for record in music_last %}
|
|
<tr>
|
|
<td><a href="https://royal.steffo.eu/music/{{ record.filename }}.opus">{{ record.filename }}</a></td>
|
|
{% if record.enqueuer is not none %}
|
|
<td><img class="thirtytwo round" src="{{ record.enqueuer.avatar_url(size=32) }}"> {{ record.enqueuer }}</td>
|
|
{% else %}
|
|
<td></td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|