diff --git a/src/main/resources/templates/artists.html b/src/main/resources/templates/artists.html index d0b0b0b..0a22376 100644 --- a/src/main/resources/templates/artists.html +++ b/src/main/resources/templates/artists.html @@ -1,9 +1,11 @@ {#include layouts/base} {#page-content} -
-

🎤 Tracked Artists

+
+

Artists

- +
+ +
{/page-content} diff --git a/src/main/resources/templates/fragments/artist-list.html b/src/main/resources/templates/fragments/artist-list.html index c5d2b0e..2a8af8a 100644 --- a/src/main/resources/templates/fragments/artist-list.html +++ b/src/main/resources/templates/fragments/artist-list.html @@ -1,86 +1,74 @@
{#if artists.isEmpty()} -
- - - -

No artists tracked yet

-

Search for artists using the search bar above

+
+

No artists tracked yet

+

Search for artists using the search bar above

{#else} -
- +
+
- + - + {#for artist in artists} - + - + {/for} diff --git a/src/main/resources/templates/fragments/feed-entries.html b/src/main/resources/templates/fragments/feed-entries.html index c06cce7..18b761a 100644 --- a/src/main/resources/templates/fragments/feed-entries.html +++ b/src/main/resources/templates/fragments/feed-entries.html @@ -1,31 +1,23 @@ {#if entries.isEmpty()} -
- - - - -

No releases found

-

Add artists to your collection to see their releases here

+
+

No releases found

+

Add artists to your collection to see their releases here

{#else} -
+
{#for entry in entries} - - -
-
{entry.artistName}
-
{entry.title}
-
+ onerror="this.parentElement.innerHTML='
No Cover
'"> + +
+

{entry.artistName}

+

{entry.title}

+
{#if entry.primaryType == 'Album'} Album {#else if entry.primaryType == 'Single'} @@ -36,7 +28,7 @@ {entry.primaryType} {/if} {#if entry.firstReleaseDate} - {entry.firstReleaseDate} + {entry.firstReleaseDate} {/if}
diff --git a/src/main/resources/templates/fragments/search-results.html b/src/main/resources/templates/fragments/search-results.html index ee6feb9..7df83fb 100644 --- a/src/main/resources/templates/fragments/search-results.html +++ b/src/main/resources/templates/fragments/search-results.html @@ -1,39 +1,32 @@ -
+
{#if artists.isEmpty()} -
No artists found
+
No artists found
{#else} {#for artist in artists} -
-
-
- {artist.name} +
+
+
+ {artist.name} {#if artist.type} {artist.type} {/if}
{#if artist.disambiguation} -
{artist.disambiguation}
+
{artist.disambiguation}
{/if} {#if artist.area} -
{artist.area}
+
{artist.area}
{/if}
-
+
{#if artist.alreadyTracked} - - - Added - + ✓ Added {#else} + onclick="document.getElementById('search-input').value=''">+ Add {/if}
diff --git a/src/main/resources/templates/layouts/base.html b/src/main/resources/templates/layouts/base.html index 355cf67..41f2f3c 100644 --- a/src/main/resources/templates/layouts/base.html +++ b/src/main/resources/templates/layouts/base.html @@ -7,14 +7,7 @@ - -
-
+ +
Artist Since Release TypesActionsActions
-
{artist.name}
+
{artist.name}
{#if artist.disambiguation} -
{artist.disambiguation}
+
{artist.disambiguation}
{/if}
{artist.createdAt}{artist.createdAt} -
+
- + hx-target="#artist-list" hx-swap="innerHTML" + onclick="return confirm('Remove {artist.name}?')">Remove