diff --git a/templates/playlist.html b/templates/playlist.html new file mode 100644 index 0000000..c2bd5a1 --- /dev/null +++ b/templates/playlist.html @@ -0,0 +1,55 @@ +{% if index == -1 %} + + Play list is empty. + +{% else %} +{% if index == playlist.current_index %} + +{% else %} + +{% endif %} + {{ index + 1 }} + +
+ {% if 'thumbnail' in m %} + + {% else %} + + {% endif %} +
+
+ {% if 'title' in m and m['title'].strip() %} + {{ m['title'] }} + {% else %} + {{ m['url'] }} + {% endif %} + {{ m['type'].capitalize() }} +
+ {% if 'artist' in m %} + {{ m['artist'] }} + {% else %} + Unknown Artist + {% endif %} +
+ + + {% if 'url' in m %} + {{ m['url']|truncate(50) }} + {% elif 'path' in m %} + {{ m['path']|truncate(50) }} + {% endif %} + + +
+ + +
+ + +{% endif %}