From c8f2ef57c8f1f8932f5faa1612be30ed4792d592 Mon Sep 17 00:00:00 2001 From: mitteneer Date: Fri, 6 Jun 2025 15:55:20 -0400 Subject: [PATCH] Add some tyling to songs view This can (will) be easily replicated for the other views, I just first tested it on songs. I think this looks much nicer, and I'll probably roll with a layout similar to this for the other views, with some minor adjustments for each particular view. --- src/app/views/partials/_newtable.zmpl | 4 +++- src/app/views/songs/get.zmpl | 24 ++++++++++++++++++------ 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/app/views/partials/_newtable.zmpl b/src/app/views/partials/_newtable.zmpl index 6746a2a..f9dc618 100644 --- a/src/app/views/partials/_newtable.zmpl +++ b/src/app/views/partials/_newtable.zmpl @@ -1,5 +1,6 @@ @args T: type, table_data: *ZmplValue, columns: T +
@@ -70,4 +71,5 @@ } } -
\ No newline at end of file + +
\ No newline at end of file diff --git a/src/app/views/songs/get.zmpl b/src/app/views/songs/get.zmpl index e912930..1ceddef 100644 --- a/src/app/views/songs/get.zmpl +++ b/src/app/views/songs/get.zmpl @@ -9,12 +9,24 @@ @partial partials/header +

{{.song.song_name}}

-
{{.song.scrobbles}} scrobbles ({{.song.rank}} place)
-@partial partials/firstlast_listens(firstlast: .firstlast) -

Yearly Performance

-@partial partials/timescale(range: .yearly) -

Scrobbles

-@partial partials/newtable(T: ColumnChoices, table_data: .scrobbles, columns: columns) +
+ +
+
+
{{.song.scrobbles}} scrobbles ({{.song.rank}} place)
+ @partial partials/firstlast_listens(firstlast: .firstlast) +

Yearly Performance

+ @partial partials/timescale(range: .yearly) +

Scrobbles

+ @partial partials/newtable(T: ColumnChoices, table_data: .scrobbles, columns: columns) +
+
+

Rating

+ + +
+
\ No newline at end of file