mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 20:00:15 +00:00
add playlist position index
This commit is contained in:
parent
62ba1ecf4a
commit
2fe8936e85
@ -602,6 +602,7 @@ class YoutubePlaylist:
|
|||||||
|
|
||||||
nav = {
|
nav = {
|
||||||
"playlist_meta": {
|
"playlist_meta": {
|
||||||
|
"current_idx": current_idx,
|
||||||
"playlist_id": self.playlist_id,
|
"playlist_id": self.playlist_id,
|
||||||
"playlist_name": self.playlist_dict["playlist_name"],
|
"playlist_name": self.playlist_dict["playlist_name"],
|
||||||
"playlist_channel": self.playlist_dict["playlist_channel"],
|
"playlist_channel": self.playlist_dict["playlist_channel"],
|
||||||
|
@ -76,7 +76,7 @@
|
|||||||
{% for playlist_item in playlist_nav %}
|
{% for playlist_item in playlist_nav %}
|
||||||
<div class="playlist-wrap">
|
<div class="playlist-wrap">
|
||||||
<a href="{% url 'playlist_id' playlist_item.playlist_meta.playlist_id %}">
|
<a href="{% url 'playlist_id' playlist_item.playlist_meta.playlist_id %}">
|
||||||
<h3>Playlist: {{ playlist_item.playlist_meta.playlist_name }}</h3>
|
<h3>Playlist [{{ playlist_item.playlist_meta.current_idx|add:"1" }}]: {{ playlist_item.playlist_meta.playlist_name }}</h3>
|
||||||
</a>
|
</a>
|
||||||
<div class="playlist-nav">
|
<div class="playlist-nav">
|
||||||
<div class="playlist-nav-item">
|
<div class="playlist-nav-item">
|
||||||
@ -87,7 +87,7 @@
|
|||||||
<div class="playlist-desc">
|
<div class="playlist-desc">
|
||||||
<p>Previous:</p>
|
<p>Previous:</p>
|
||||||
<a href="{% url 'video' playlist_item.playlist_previous.youtube_id %}">
|
<a href="{% url 'video' playlist_item.playlist_previous.youtube_id %}">
|
||||||
<h3>{{ playlist_item.playlist_previous.title }}</h3>
|
<h3>[{{ playlist_item.playlist_previous.idx|add:"1" }}] {{ playlist_item.playlist_previous.title }}</h3>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -97,7 +97,7 @@
|
|||||||
<div class="playlist-desc">
|
<div class="playlist-desc">
|
||||||
<p>Next:</p>
|
<p>Next:</p>
|
||||||
<a href="{% url 'video' playlist_item.playlist_next.youtube_id %}">
|
<a href="{% url 'video' playlist_item.playlist_next.youtube_id %}">
|
||||||
<h3>{{ playlist_item.playlist_next.title }}</h3>
|
<h3>[{{ playlist_item.playlist_next.idx|add:"1" }}] {{ playlist_item.playlist_next.title }}</h3>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<a href="{% url 'video' playlist_item.playlist_next.youtube_id %}">
|
<a href="{% url 'video' playlist_item.playlist_next.youtube_id %}">
|
||||||
|
Loading…
Reference in New Issue
Block a user