1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 21:44:21 +00:00
royalnet/templates/minis/discord.html

38 lines
1.6 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="https://cdn.discordapp.com/avatars/{{ record["discord_id"] }}/{{ record["avatar_hex"] }}" class="player-image">
<span class="player-name">{{ record["name"] }}#{{ record["discriminator"] }}</span>
</div>
{% if record["last_song"] %}
<div class="game-title last-video">Ultima canzone</div>
<div class="game-score last-video" title="{{ record["last_song"] }}">
{{ record["last_song"] }}
</div>
<div class="game-extra last-video">{{ record["last_play_time"].strftime('%Y-%m-%d %H:%M:%S %Z') }}</div>
{% else %}
<div class="game-title last-video none">Ultima canzone</div>
<div class="game-score last-video none">
Nessuna
</div>
{% endif %}
{% if record["fav_song"] %}
<div class="game-title fav-video">Canzone preferita</div>
<div class="game-score fav-video" title="{{ record["fav_song"] }}">
{{ record["fav_song"] }}
</div>
<div class="game-extra fav-video">{{ record["max_plays"] }}x</div>
{% else %}
<div class="game-title fav-video none">Canzone preferita</div>
<div class="game-score fav-video none">
Nessuna
</div>
{% endif %}
</div>
</div>