~hristoast/mousikofidi

mousikofidi/mousikofidi/templates/item_table.html -rw-r--r-- 1.7 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{% if item_list %}
  <div class="center">
    <button id="add-all">Add All Tracks To Queue</button>
  </div>
{% endif %}

{% if audio_list %}
  <h4 class="center">{{ audio_list|count }} Audio Track{% if audio_list|count > 1 %}s{% endif %}</h4>
  <table style="margin: 0 auto;">

    <thead>
      <tr>
        <th>Play</th>
        <th class="mobile-hide">Track</th>
        {% if secret_key and playlist_add %}
          <th>Add</th>
        {% endif %}
        <th>Title</th>
        <th class="mobile-hide">Album</th>
        <th class="mobile-hide">Artist</th>
        <th class="mobile-hide">Length</th>
        {% if secret_key and playlist_rm %}
          <th>Remove</th>
        {% endif %}
      </tr>
    </thead>

    <tbody id="playlist">
      {% for audio in audio_list %}
        {% include "audio_table_rows.html" with context %}
      {% endfor %}
    </tbody>
  </table>
{% endif %}

{% if video_list %}
  <h4 class="center">{{ video_list|count }} Video Track{% if video_list|count > 1 %}s{% endif %}</h4>
  <table style="margin: 0 auto;">

    <thead>
      <tr>
        <th>Play</th>
        <th class="mobile-hide">Track</th>
        {% if secret_key and playlist_add %}
          <th>Add</th>
        {% endif %}
        <th>Title</th>
        <th class="mobile-hide">Album</th>
        <th class="mobile-hide">Artist</th>
        <th class="mobile-hide">Length</th>
        {% if secret_key and playlist_rm %}
          <th class="mobile">Remove</th>
        {% endif %}
      </tr>
    </thead>

    <tbody id="video-playlist">
      {% for video in video_list %}
        {% include "video_table_rows.html" with context %}
      {% endfor %}
    </tbody>
  </table>
{% endif %}