From e847e92e218c1eb2bbe2e5269f2ae080759cb35c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Pe=C3=B1a?= Date: Sun, 21 Mar 2021 10:07:50 +0100 Subject: [PATCH 1/4] Adds album's year to base and card view (#1366) --- front/src/components/audio/album/Card.vue | 3 +++ front/src/components/library/AlbumBase.vue | 3 +++ 2 files changed, 6 insertions(+) diff --git a/front/src/components/audio/album/Card.vue b/front/src/components/audio/album/Card.vue index aafa2e4a4..d1952e5dd 100644 --- a/front/src/components/audio/album/Card.vue +++ b/front/src/components/audio/album/Card.vue @@ -17,6 +17,9 @@ {{ album.artist.name }} +
+ {{ album.release_date | moment('Y') }} +
diff --git a/front/src/components/library/AlbumBase.vue b/front/src/components/library/AlbumBase.vue index 8ae555f6c..370d9ad25 100644 --- a/front/src/components/library/AlbumBase.vue +++ b/front/src/components/library/AlbumBase.vue @@ -59,6 +59,9 @@

{{ object.title }} + + {{ object.release_date | moment('Y') }} +

From ed11735499903889d8bf9022678ccf11bc93bc06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Pe=C3=B1a?= Date: Sun, 21 Mar 2021 16:14:46 +0100 Subject: [PATCH 2/4] Adds Changelog-Fragment (#1366) --- changes/changelog.d/1366.enhancement | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/changelog.d/1366.enhancement diff --git a/changes/changelog.d/1366.enhancement b/changes/changelog.d/1366.enhancement new file mode 100644 index 000000000..e58f8ebe4 --- /dev/null +++ b/changes/changelog.d/1366.enhancement @@ -0,0 +1 @@ +Adds year to album's card and album's base UI From f712669013ea293a8922c99205bfe55cb744e5ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Pe=C3=B1a?= Date: Thu, 25 Mar 2021 20:11:33 +0100 Subject: [PATCH 3/4] Improves album's year placement (#1366) Better consistency between different views --- front/src/components/audio/album/Card.vue | 6 ++---- front/src/components/library/AlbumBase.vue | 11 ++++------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/front/src/components/audio/album/Card.vue b/front/src/components/audio/album/Card.vue index d1952e5dd..1fb6dc49b 100644 --- a/front/src/components/audio/album/Card.vue +++ b/front/src/components/audio/album/Card.vue @@ -16,13 +16,11 @@ {{ album.artist.name }} - -
- {{ album.release_date | moment('Y') }} -
+
+ {{ album.release_date | moment('Y') }} · %{ count } track
diff --git a/front/src/components/library/AlbumBase.vue b/front/src/components/library/AlbumBase.vue index 370d9ad25..26b1f2171 100644 --- a/front/src/components/library/AlbumBase.vue +++ b/front/src/components/library/AlbumBase.vue @@ -58,16 +58,13 @@

- {{ object.title }} - - {{ object.release_date | moment('Y') }} - + {{ object.title }}

- -