~hristoast/mousikofidi

mousikofidi/mousikofidi/templates/playlist.html -rw-r--r-- 1.5 KiB
60039fd3Hristos N. Triantafillou Don't blow up when there's no cover art 27 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% extends 'base.html' %}
{% block content %}

  {% if bunk_tracks %}
    <div class="center">
      <h2>Oh no!</h2>
      <p>{% if audio_list == [] and video_list == [] %}All{% else %}Some{% endif %} tracks on this playlist failed to load.</p>
      <p>Please check the MousikóFídi application logs for more information, or verify that {% if bunk_tracks|count > 1 %}these file paths are{% else %}this file path is{% endif %} correct and readable:</p>
      {% if bunk_tracks|count == 1 %}<pre><code>{{ bunk_tracks[0] }}</code></pre>{% else %}<pre><code>{% for t in bunk_tracks %}{{ t }}
{% endfor %}</code></pre>{% endif %}
    </div>
  {% endif %}

  {% if audio_list or video_list %}
    {% if playlist_detail %}
      <h2 class="bold center">Playlist Name: {{ playlist_name }}</h2>
      <p class="center">Total tracks: {{ audio_list|count + video_list|count }}</p>
      <div class="center">
        <button id="add-all">Add All Tracks To Queue</button>
      </div>
    {% endif %}

    {% include "item_table.html" with context %}

    {% if audio_list %}
      {% include "audio_player.html" with context %}
    {% endif %}

    {% if video_list %}
      {% include "video_player.html" with context %}
    {% endif %}
  {% endif %}

  {% if playlist_delete %}
    <div id="allow-delete" class="center">
      <a href="{{ url_for('.playlist_delete', name=playlist_name) }}">
        <button>
          Delete playlist "{{ playlist_name }}"
        </button>
      </a>
    </div>
  {% endif %}

{% endblock %}