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

Artists

+
+

🎤 Tracked Artists

-
- -
+
{/page-content} diff --git a/src/main/resources/templates/fragments/artist-list.html b/src/main/resources/templates/fragments/artist-list.html index 2a8af8a..c5d2b0e 100644 --- a/src/main/resources/templates/fragments/artist-list.html +++ b/src/main/resources/templates/fragments/artist-list.html @@ -1,74 +1,86 @@
{#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 18b761a..c06cce7 100644 --- a/src/main/resources/templates/fragments/feed-entries.html +++ b/src/main/resources/templates/fragments/feed-entries.html @@ -1,23 +1,31 @@ {#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.title} -
-
-

{entry.artistName}

-

{entry.title}

-
+ onerror="this.parentElement.innerHTML='
'"> +
+
+
{entry.artistName}
+
{entry.title}
+
{#if entry.primaryType == 'Album'} Album {#else if entry.primaryType == 'Single'} @@ -28,7 +36,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 7df83fb..ee6feb9 100644 --- a/src/main/resources/templates/fragments/search-results.html +++ b/src/main/resources/templates/fragments/search-results.html @@ -1,32 +1,39 @@ -
+
{#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 41f2f3c..355cf67 100644 --- a/src/main/resources/templates/layouts/base.html +++ b/src/main/resources/templates/layouts/base.html @@ -7,7 +7,14 @@ - -
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 +