~hristoast/mousikofidi

mousikofidi/mousikofidi/templates/video_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="{{ video.file_name }}"></div>
      <div class="anchor" id="{{ video.slug }}-target"></div>
    {% endif %}
    <div class="video-arrow" data-browse="{{ url_for('.dir_detail', path=video.file_path) }}" data-num="0" data-path="{{ video.file_path }}" data-title="{% if video.title %}{{ video.title }}{% else %}{{ video.file_name }}{% endif %}" id="{{ video.slug }}" title="Click to play this track."></div>
  </td>

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

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

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

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

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

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

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