From f290248d3ff9a6b21e2657d2346deb21f8cbcfa8 Mon Sep 17 00:00:00 2001 From: Paul <203217+uniquePWD@users.noreply.github.com> Date: Sun, 6 Jul 2025 14:58:10 +0100 Subject: [PATCH] Update manageartists.html Modernised --- data/interfaces/default/manageartists.html | 174 +++++++++++++++++---- 1 file changed, 142 insertions(+), 32 deletions(-) diff --git a/data/interfaces/default/manageartists.html b/data/interfaces/default/manageartists.html index 7a8efa37..af8850e6 100644 --- a/data/interfaces/default/manageartists.html +++ b/data/interfaces/default/manageartists.html @@ -1,7 +1,5 @@ <%inherit file="base.html" /> - - <%def name="headerIncludes()">
  @@ -15,9 +13,10 @@

Manage Artists

-
-
- @@ -25,17 +24,17 @@ selected artists - + <%-- This hidden input might be redundant if data is sent via AJAX --%>
- - - - - - + <%-- Added ID for easier targeting --%> + <%-- Changed ID to class for consistency and uniqueness --%> + + + + @@ -48,6 +47,7 @@ else: grade = 'Z' + # Python logic for display formatting is fine here, as it's not doing DB queries. if artist['ReleaseDate'] and artist['LatestAlbum']: releasedate = artist['ReleaseDate'] albumdisplay = '%s (%s)' % (artist['LatestAlbum'], artist['ReleaseDate']) @@ -65,12 +65,17 @@ %> - - - - - - + <%-- Unique name and class for individual checkboxes --%> + + + + + %endfor @@ -80,37 +85,142 @@ <%def name="headIncludes()"> + ${parent.headIncludes()} <%-- Ensure parent head includes are kept --%> + <%def name="javascriptIncludes()"> + ${parent.javascriptIncludes()} <%-- Ensure parent javascript includes are kept --%> + <%-- Added for lazy loading --%>
Artist NameStatusLatest AlbumLast UpdatedArtist NameStatusLatest AlbumLast Updated
${artist['ArtistName']}${artist['Status']}${albumdisplay}${lastupdated} +
+ <%-- Using data-src for lazy loading with jquery.unveil.min.js and native loading="lazy" --%> + Album art for ${artist['ArtistName']} +
+
${artist['ArtistName']}${artist['Status']}${albumdisplay}${lastupdated}