handle empty playlist nav

This commit is contained in:
simon 2021-11-14 19:48:03 +07:00
parent e450b38702
commit 62ba1ecf4a
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -72,6 +72,7 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% if playlist_nav %}
{% 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 %}">
@ -107,4 +108,5 @@
</div> </div>
</div> </div>
{% endfor %} {% endfor %}
{% endif %}
{% endblock content %} {% endblock content %}