1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-12-18 07:34:20 +00:00
royalnet/templates/minis/discord.html

39 lines
1.6 KiB
HTML
Raw Normal View History

2018-07-25 21:52:38 +00:00
<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">
2018-07-28 17:58:23 +00:00
<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>
2018-07-25 21:52:38 +00:00
</div>
2018-07-28 17:58:23 +00:00
{% if record["last_song"] %}
2018-07-26 17:26:03 +00:00
<div class="game-title last-video">Ultima canzone</div>
2018-07-28 17:58:23 +00:00
<div class="game-score last-video" title="{{ record["last_song"] }}">
{{ record["last_song"] }}
2018-07-26 17:26:03 +00:00
</div>
2018-07-29 16:00:30 +00:00
<div class="game-extra last-video">{{ record["last_play_time"].strftime('%Y-%m-%d %H:%M:%S %Z') }}</div>
2018-07-26 17:26:03 +00:00
{% else %}
<div class="game-title last-video none">Ultima canzone</div>
<div class="game-score last-video none">
Nessuna
</div>
{% endif %}
2018-07-28 17:58:23 +00:00
{% if record["fav_song"] %}
2018-07-26 17:26:03 +00:00
<div class="game-title fav-video">Canzone preferita</div>
2018-07-28 17:58:23 +00:00
<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>
2018-07-26 17:26:03 +00:00
{% else %}
<div class="game-title fav-video none">Canzone preferita</div>
2018-07-28 17:58:23 +00:00
<div class="game-score fav-video none">
Nessuna
</div>
2018-07-26 17:26:03 +00:00
{% endif %}
2018-07-25 21:52:38 +00:00
</div>
</div>