mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 20:00:15 +00:00
handle empty playlist nav
This commit is contained in:
parent
e450b38702
commit
62ba1ecf4a
@ -72,39 +72,41 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for playlist_item in playlist_nav %}
|
{% if playlist_nav %}
|
||||||
<div class="playlist-wrap">
|
{% for playlist_item in playlist_nav %}
|
||||||
<a href="{% url 'playlist_id' playlist_item.playlist_meta.playlist_id %}">
|
<div class="playlist-wrap">
|
||||||
<h3>Playlist: {{ playlist_item.playlist_meta.playlist_name }}</h3>
|
<a href="{% url 'playlist_id' playlist_item.playlist_meta.playlist_id %}">
|
||||||
</a>
|
<h3>Playlist: {{ playlist_item.playlist_meta.playlist_name }}</h3>
|
||||||
<div class="playlist-nav">
|
</a>
|
||||||
<div class="playlist-nav-item">
|
<div class="playlist-nav">
|
||||||
{% if playlist_item.playlist_previous %}
|
<div class="playlist-nav-item">
|
||||||
<a href="{% url 'video' playlist_item.playlist_previous.youtube_id %}">
|
{% if playlist_item.playlist_previous %}
|
||||||
<img src="/cache/{{ playlist_item.playlist_previous.vid_thumb }}" alt="previous thumbnail">
|
|
||||||
</a>
|
|
||||||
<div class="playlist-desc">
|
|
||||||
<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>
|
<img src="/cache/{{ playlist_item.playlist_previous.vid_thumb }}" alt="previous thumbnail">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
<div class="playlist-desc">
|
||||||
{% endif %}
|
<p>Previous:</p>
|
||||||
</div>
|
<a href="{% url 'video' playlist_item.playlist_previous.youtube_id %}">
|
||||||
<div class="playlist-nav-item">
|
<h3>{{ playlist_item.playlist_previous.title }}</h3>
|
||||||
{% if playlist_item.playlist_next %}
|
</a>
|
||||||
<div class="playlist-desc">
|
</div>
|
||||||
<p>Next:</p>
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
<div class="playlist-nav-item">
|
||||||
|
{% if playlist_item.playlist_next %}
|
||||||
|
<div class="playlist-desc">
|
||||||
|
<p>Next:</p>
|
||||||
|
<a href="{% url 'video' playlist_item.playlist_next.youtube_id %}">
|
||||||
|
<h3>{{ playlist_item.playlist_next.title }}</h3>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
<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>
|
<img src="/cache/{{ playlist_item.playlist_next.vid_thumb }}" alt="previous thumbnail">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
{% endif %}
|
||||||
<a href="{% url 'video' playlist_item.playlist_next.youtube_id %}">
|
</div>
|
||||||
<img src="/cache/{{ playlist_item.playlist_next.vid_thumb }}" alt="previous thumbnail">
|
|
||||||
</a>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
Loading…
Reference in New Issue
Block a user