From e2fa5a85ea5641f3668a332cc79b6cb69c149010 Mon Sep 17 00:00:00 2001 From: Paul <203217+uniquePWD@users.noreply.github.com> Date: Sun, 6 Jul 2025 15:19:18 +0100 Subject: [PATCH] Update searchresults.html Another modernisation --- data/interfaces/default/searchresults.html | 229 ++++++++++++++------- 1 file changed, 158 insertions(+), 71 deletions(-) diff --git a/data/interfaces/default/searchresults.html b/data/interfaces/default/searchresults.html index 8fea4992..8731d75b 100644 --- a/data/interfaces/default/searchresults.html +++ b/data/interfaces/default/searchresults.html @@ -8,24 +8,24 @@
| + | <%-- Changed ID to class --%> %if type == 'album': - | Album Name | -Artist Name | -Format | -Tracks | -Date | -Score | -Album Name | +Artist Name | +Format | +Tracks | +Date | +Score | +Artist Name | -Score | +Artist Name | +Score | %else: -Series Name | -Type | -Score | +Series Name | +Type | +Score | %endif -+ | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <%-- Changed ID to class --%>
+
+ <%-- Using data-src for lazy loading. onerror will handle the tryCCA fallback. --%>
+
+ |
%elif type == 'artist':
- <%-- Changed ID to class --%>
+
+ <%-- Assuming artists might also have an image, or it will be a generic icon. --%>
+
+ |
%else:
- + | <%-- No artwork for series --%> %endif %if type == 'album': - | ${result['title']} | -${result['uniquename']} | -${result['formats']} | -${result['tracks']} | -${result['date']} | -- | ${result['title']} | +${result['uniquename']} | +${result['formats']} | +${result['tracks']} | +${result['date']} | ++ | ${result['uniquename']} | -- | ${result['uniquename']} | ++ | ${result['uniquename']} | -${result['type']} | -- | ${result['uniquename']} | +${result['type']} | ++ |