From: Chris Fulljames Date: Sun, 2 Mar 2025 19:23:51 +0000 (-0500) Subject: Prevent shuffling song lists with 0 or 1 songs X-Git-Url: https://littlesong.place/gitweb/?a=commitdiff_plain;h=2b2ebb8cd596446b635f2deacb66ec85a7a90213;p=littlesongplace.git Prevent shuffling song lists with 0 or 1 songs --- diff --git a/templates/song-list.html b/templates/song-list.html index d135fc7..19784a4 100644 --- a/templates/song-list.html +++ b/templates/song-list.html @@ -1,9 +1,11 @@ {% from "song-macros.html" import song_info, song_details %}
+ {% if songs|length > 1 %}
+ {% endif %}
{% for song in songs %} diff --git a/todo.txt b/todo.txt index 2177b71..66208ad 100644 --- a/todo.txt +++ b/todo.txt @@ -1,5 +1,4 @@ NOW -- Hide shuffle button for song lists with 1 song or fewer - Pinned profile playlists - Player minimize button