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

39 lines
1.9 KiB
HTML
Raw Permalink 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">
2019-01-03 13:13:23 +00:00
<img src="https://cdn.discordapp.com/avatars/{{ record["discord_id"] }}/{{ record["avatar_hex"] }}" class="player-image" alt="">
2018-07-28 17:58:23 +00:00
<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"] }}">
2018-11-18 22:11:38 +00:00
<a href="https://www.youtube.com/results?sp=EgIQAQ%253D%253D&search_query={{ record["last_song"] }}">{{ record["last_song"] }}</a>
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"] %}
2019-01-03 13:29:55 +00:00
<div class="game-title fav-video"><a href="{{ url_for("page_music_individual", discord_id=record["discord_id"]) }}">Canzone preferita</a></div>
2018-07-28 17:58:23 +00:00
<div class="game-score fav-video" title="{{ record["fav_song"] }}">
2018-11-18 22:11:38 +00:00
<a href="https://www.youtube.com/results?sp=EgIQAQ%253D%253D&search_query={{ record["fav_song"] }}">{{ record["fav_song"] }}</a>
2018-07-28 17:58:23 +00:00
</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>