mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
add song links
This commit is contained in:
parent
21d44db80e
commit
2b8a4af701
2 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@
|
||||||
{% if record["last_song"] %}
|
{% if record["last_song"] %}
|
||||||
<div class="game-title last-video">Ultima canzone</div>
|
<div class="game-title last-video">Ultima canzone</div>
|
||||||
<div class="game-score last-video" title="{{ record["last_song"] }}">
|
<div class="game-score last-video" title="{{ record["last_song"] }}">
|
||||||
{{ record["last_song"] }}
|
<a href="https://www.youtube.com/results?sp=EgIQAQ%253D%253D&search_query={{ record["last_song"] }}">{{ record["last_song"] }}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="game-extra last-video">{{ record["last_play_time"].strftime('%Y-%m-%d %H:%M:%S %Z') }}</div>
|
<div class="game-extra last-video">{{ record["last_play_time"].strftime('%Y-%m-%d %H:%M:%S %Z') }}</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -23,9 +23,9 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if record["fav_song"] %}
|
{% if record["fav_song"] %}
|
||||||
<div class="game-title fav-video">Canzone preferita</div>
|
<div class="game-title fav-video"><a href="/music/{{ record["discord_id"] }}">Canzone preferita</a></div>
|
||||||
<div class="game-score fav-video" title="{{ record["fav_song"] }}">
|
<div class="game-score fav-video" title="{{ record["fav_song"] }}">
|
||||||
<a href="/music/{{ record["discord_id"] }}">{{ record["fav_song"] }}</a>
|
<a href="https://www.youtube.com/results?sp=EgIQAQ%253D%253D&search_query={{ record["fav_song"] }}">{{ record["fav_song"] }}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="game-extra fav-video">{{ record["max_plays"] }}x</div>
|
<div class="game-extra fav-video">{{ record["max_plays"] }}x</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for song in songs %}
|
{% for song in songs %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ song[0] }}</td>
|
<td><a href="https://www.youtube.com/results?sp=EgIQAQ%253D%253D&search_query={{ song[0] }}">{{ song[0] }}</a></td>
|
||||||
<td>{{ song[1] }}</td>
|
<td>{{ song[1] }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue