2023-04-25 01:26:27 +00:00
|
|
|
{# Template #}
|
|
|
|
<!DOCTYPE html>
|
2023-04-27 13:41:28 +00:00
|
|
|
|
|
|
|
<div class="queue-header">
|
|
|
|
<div class="queue-next">Next in queue</div>
|
|
|
|
<div class="queue-clear" role="button" hx-delete="/queue">
|
|
|
|
<span class="material-symbols-outlined">playlist_remove</span>
|
|
|
|
Clear
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-04-25 01:26:27 +00:00
|
|
|
<ul class="queue">
|
|
|
|
{% for item in queue %}
|
|
|
|
<li {% if item.playing %}class="playing"{% endif %}>
|
2023-04-27 01:40:19 +00:00
|
|
|
<div class="albumart">
|
2023-04-27 18:38:15 +00:00
|
|
|
<img
|
|
|
|
src="/art?path={{ item.file }}"
|
|
|
|
onerror="this.style.opacity = 0"
|
|
|
|
alt="Album art"
|
|
|
|
title="Album art"
|
|
|
|
>
|
2023-04-27 01:40:19 +00:00
|
|
|
</div>
|
|
|
|
<div class="metadata">
|
2023-04-27 18:38:15 +00:00
|
|
|
<div class="song__name" title="Song name">{{ item.title }}</div>
|
2023-04-27 01:40:19 +00:00
|
|
|
{% if let Some(artist) = item.artist %}
|
2023-04-27 18:38:15 +00:00
|
|
|
<div class="song__artist" title="Artist">{{ artist }}</div>
|
2023-04-27 01:40:19 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2023-04-25 01:26:27 +00:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|