1
Fork 0
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:
Steffo 2018-11-18 23:11:38 +01:00
parent 21d44db80e
commit 2b8a4af701
2 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@
{% 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"] }}
<a href="https://www.youtube.com/results?sp=EgIQAQ%253D%253D&search_query={{ record["last_song"] }}">{{ record["last_song"] }}</a>
</div>
<div class="game-extra last-video">{{ record["last_play_time"].strftime('%Y-%m-%d %H:%M:%S %Z') }}</div>
{% else %}
@ -23,9 +23,9 @@
</div>
{% endif %}
{% 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"] }}">
<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 class="game-extra fav-video">{{ record["max_plays"] }}x</div>
{% else %}

View file

@ -18,7 +18,7 @@
<tbody>
{% for song in songs %}
<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>
</tr>
{% endfor %}