~hristoast/mousikofidi

mousikofidi/mousikofidi/templates/audio_table_rows.html -rw-r--r-- 2.0 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
<tr>

  <td class="center"> {# PLAY #}
    {% if page_name != "Queue" %}
      <div class="anchor" id="{{ audio.file_name }}"></div>
      <div class="anchor" id="{{ audio.slug }}-target"></div>
    {% endif %}
    <div class="play-arrow" data-browse="{{ url_for('.dir_detail', path=audio.file_path) }}" data-num="0" data-path="{{ audio.file_path }}" data-title="{% if audio.title %}{{ audio.title }}{% else %}{{ audio.file_name }}{% endif %}" id="{{ audio.slug }}" title="Click to play this track."></div>
  </td>

  <td class="center mobile-hide"> {# TRACK #}
    {% if audio.track and not audio.tracktotal %}{{ audio.track }}{% endif %}
    {% if audio.track and audio.tracktotal and audio.tracktotal != "0" %}{{ audio.track }}/{{ audio.tracktotal }}{% endif %}
    {% if audio.track and audio.tracktotal and audio.tracktotal == "0" %}{{ audio.track }}{% endif %}
  </td>

  {% if playlist_add %}
    <td> {# ADD #}
      <span data-trackpath="{{ audio.file_path }}" data-tracktitle="{% if audio.title %}{{ audio.title }}{% else %}{{ audio.file_name }}{% endif %}" class="add-to-queue" title="Add this track to the queue">&plus;</span>
    </td>
  {% endif %}

  <td class="title title-regular"> {# TITLE #}
    <a class="mobile-big" href="{{ url_for('.dir_detail', path=audio.file_path) }}" title="This track's title.">
      {% if audio.title %}
        {{ audio.title }}
      {% else %}
        {{ audio.file_name }}
      {% endif %}
    </a>
  </td>

  <td class="title-mobile"> {# MOBILE TITLE #}
    <a class="mobile-big" href="{{ url_for('.dir_detail', path=audio.file_path) }}" title="This track's title.">
      {% if audio.title %}
        {{ audio.title_mobile }}
      {% else %}
        {{ audio.file_name_mobile }}
      {% endif %}
    </a>
  </td>

  <td class="mobile-hide"> {# ALBUM #}
    {% if audio.album %}{{ audio.album }}{% endif %}
  </td>

  <td class="mobile-hide">
    {% if audio.artist %}{{ audio.artist }}{% endif %}
  </td>

  <td class="center mobile-hide">
    {% if audio.length %}{{ audio.length }}{% endif %}
  </td>
</tr>