2023-04-25 14:32:51 +00:00
|
|
|
{# #}
|
|
|
|
<!DOCTYPE html>
|
2023-04-27 02:43:00 +00:00
|
|
|
<script>
|
|
|
|
{% if let Some(name) = name %}
|
|
|
|
document.title = "{{ name }} - Empede";
|
|
|
|
{% else %}
|
|
|
|
document.title = "Empede";
|
|
|
|
{% endif %}
|
|
|
|
</script>
|
2023-04-25 14:32:51 +00:00
|
|
|
<div class="nowplaying">
|
|
|
|
<div class="current">
|
|
|
|
{% if let Some(song) = song %}
|
2023-04-27 01:40:19 +00:00
|
|
|
<div class="albumart">
|
2023-04-27 02:03:52 +00:00
|
|
|
<a href="/art?path={{ song.file }}" target="_blank">
|
2023-04-27 18:38:15 +00:00
|
|
|
<img
|
|
|
|
src="/art?path={{ song.file }}"
|
|
|
|
onerror="this.style.opacity = 0"
|
|
|
|
alt="Album art"
|
|
|
|
title="Album art"
|
|
|
|
>
|
2023-04-27 02:03:52 +00:00
|
|
|
</a>
|
2023-04-27 01:40:19 +00:00
|
|
|
</div>
|
|
|
|
|
2023-04-25 14:32:51 +00:00
|
|
|
<div class="metadata">
|
|
|
|
{% if let Some(name) = name %}
|
2023-04-27 18:38:15 +00:00
|
|
|
<div class="song__name" title="Song name">{{ name }}</div>
|
2023-04-25 14:32:51 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if let Some(artist) = song.artist %}
|
2023-04-27 18:38:15 +00:00
|
|
|
<div class="song__artist" title="Artist">{{ artist }}</div>
|
2023-04-25 14:32:51 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2023-04-25 16:58:34 +00:00
|
|
|
{% else %}
|
|
|
|
<div class="metadata idle">
|
|
|
|
Nothing playing right now
|
|
|
|
</div>
|
2023-04-25 14:32:51 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="controls">
|
|
|
|
<span
|
|
|
|
hx-post="/previous" hx-swap="none"
|
2023-04-27 18:38:15 +00:00
|
|
|
class="control material-symbols-outlined" role="button" title="Previous track"
|
2023-04-25 14:32:51 +00:00
|
|
|
>skip_previous</span>
|
|
|
|
<span
|
|
|
|
hx-post="/play" hx-swap="none"
|
2023-04-27 18:38:15 +00:00
|
|
|
class="control material-symbols-outlined" role="button" title="Play"
|
2023-04-25 14:32:51 +00:00
|
|
|
>play_arrow</span>
|
|
|
|
<span
|
|
|
|
hx-post="/pause" hx-swap="none"
|
2023-04-27 18:38:15 +00:00
|
|
|
class="control material-symbols-outlined" role="button" title="Pause"
|
2023-04-25 14:32:51 +00:00
|
|
|
>pause</span>
|
|
|
|
<span
|
|
|
|
hx-post="/next" hx-swap="none"
|
2023-04-27 18:38:15 +00:00
|
|
|
class="control material-symbols-outlined" role="button" title="Next track"
|
2023-04-25 14:32:51 +00:00
|
|
|
>skip_next</span>
|
|
|
|
</div>
|
|
|
|
</div>
|