From 1e9aad03f8d97bac21781919f40770bbf978bfa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Pomyka=C5=82a?= <37307597+Akasiek@users.noreply.github.com> Date: Sun, 31 Jul 2022 21:27:18 +0200 Subject: [PATCH] Fixed occasions when artist, band or album has no image --- frontend/views/album/_album_card.php | 16 ++++++++-------- frontend/views/album/_view_album_jumbotron.php | 3 ++- frontend/views/components/_default_card.php | 4 +++- frontend/views/components/_default_jumbotron.php | 2 +- 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/frontend/views/album/_album_card.php b/frontend/views/album/_album_card.php index 7d95c12..691cf83 100644 --- a/frontend/views/album/_album_card.php +++ b/frontend/views/album/_album_card.php @@ -13,14 +13,14 @@ }, $genres)); - ?>
- Album artwork + Album artwork type !== "LP") : ?>

type ?> @@ -31,18 +31,18 @@

+ '/album/view', + 'slug' => $model->slug, + ]) ?>" class="hover:underline transition underline-offset-2" title="title ?>"> title ?>

+ '/' . ($model->artist_id ? 'artist' : 'band') . '/view/', + 'slug' => $model->artist->slug ?? $model->band->slug, + ]) ?>" class="hover:underline transition" title="artist->name ?? $model->band->name ?>"> artist->name ?? $model->band->name ?>

diff --git a/frontend/views/album/_view_album_jumbotron.php b/frontend/views/album/_view_album_jumbotron.php index 4db9ab4..4c119fb 100644 --- a/frontend/views/album/_view_album_jumbotron.php +++ b/frontend/views/album/_view_album_jumbotron.php @@ -16,7 +16,8 @@