Add YouTube playlist support in game detail views and create custom template tag
This commit is contained in:
parent
08e4d6e75b
commit
3042382ae4
5 changed files with 20 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
{% load youtube %}
|
||||
{% block content %}
|
||||
<h1>
|
||||
<i class="ri-play-circle-fill"></i> {{ musikgame.date }}
|
||||
|
@ -6,7 +7,7 @@
|
|||
{% if musikgame.playlist or musikgame.playlist_loading %}
|
||||
<p>
|
||||
<a target="_blank"
|
||||
href="https://youtube.com/watch?v={{ musikgame.musicgameorder_set.first.music_video.yt_id }}&list={{ musikgame.playlist }}"
|
||||
href="{% yt_playlist musikgame %}"
|
||||
role="button"
|
||||
{% if musikgame.playlist_loading %}aria-busy="true"{% endif %}><i class="ri-youtube-fill"></i> Playlist</a>
|
||||
</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue