1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00
royalnet/templates/minis/discord.html

32 lines
1.3 KiB
HTML

<style>
@font-face {
font-family: "Whitney";
src: url("{{ url_for('static', filename='whitney.woff') }}") format('woff');
}
</style>
<div class="game-panel">
<div class="game-grid discord">
<div class="player">
<img src="{{ record[0].avatar_url(size=64) }}" class="player-image">
<span class="player-name">{{ record[0] }}</span>
</div>
{% if record[0].music_played %}
<div class="game-title last-video">Ultima canzone</div>
<div class="game-score last-video">
{{ (record[0].music_played|sort(attribute='timestamp'))[-1].filename }}
</div>
{% else %}
<div class="game-title last-video none">Ultima canzone</div>
<div class="game-score last-video none">
Nessuna
</div>
{% endif %}
{% if record|length > 1 %}
<div class="game-title fav-video">Canzone preferita</div>
<div class="game-score fav-video">{{ record[1] }}</div>
{% else %}
<div class="game-title fav-video none">Canzone preferita</div>
<div class="game-score fav-video none"><a href="/profile/{{ record[0].royal.username }}">Non caricata</a></div>
{% endif %}
</div>
</div>