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

33 lines
1.3 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-26 17:26:03 +00:00
<img src="{{ record[0].avatar_url(size=64) }}" class="player-image">
<span class="player-name">{{ record[0] }}</span>
2018-07-25 21:52:38 +00:00
</div>
2018-07-26 17:26:03 +00:00
{% 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 %}
2018-07-25 21:52:38 +00:00
</div>
</div>