<%inherit file="base.html" /> <%def name="headerIncludes()">
 
« Back to manage overview <%def name="body()">

Manage Artists

<%-- Renamed ID to avoid conflict with markalbum div --%>
<%-- More descriptive ID for the controls div --%> <%-- Replaced inline onChange with an ID for JS handling --%> 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 --%> %for artist in artists: <% if artist['Status'] == 'Paused': grade = 'X' elif artist['Status'] == 'Loading': grade = 'C' 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']) elif artist['LatestAlbum']: releasedate = '' albumdisplay = '%s' % artist['LatestAlbum'] else: releasedate = '' albumdisplay = 'None' if not artist['LastUpdated']: lastupdated = "Never" else: lastupdated = artist['LastUpdated'] %> <%-- Unique name and class for individual checkboxes --%> %endfor
Artist Name Status Latest Album Last Updated
<%-- 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}
<%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 --%>