From 3ca149137e5b33422f82456e1512fba417322968 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sun, 16 May 2021 10:26:28 +0100 Subject: [PATCH] Added faviourtes to other entity types --- resources/views/books/show.blade.php | 3 +++ resources/views/chapters/show.blade.php | 3 +++ resources/views/pages/show.blade.php | 3 +-- resources/views/shelves/show.blade.php | 5 +++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/resources/views/books/show.blade.php b/resources/views/books/show.blade.php index def198bdd..b850127ff 100644 --- a/resources/views/books/show.blade.php +++ b/resources/views/books/show.blade.php @@ -118,6 +118,9 @@
+ @if(signedInUser()) + @include('partials.entity-favourite-action', ['entity' => $book]) + @endif @include('partials.entity-export-menu', ['entity' => $book]) diff --git a/resources/views/chapters/show.blade.php b/resources/views/chapters/show.blade.php index db02ebcc4..8aa3be111 100644 --- a/resources/views/chapters/show.blade.php +++ b/resources/views/chapters/show.blade.php @@ -123,6 +123,9 @@
+ @if(signedInUser()) + @include('partials.entity-favourite-action', ['entity' => $chapter]) + @endif @include('partials.entity-export-menu', ['entity' => $chapter]) diff --git a/resources/views/pages/show.blade.php b/resources/views/pages/show.blade.php index 73a107cf7..5baf2a16c 100644 --- a/resources/views/pages/show.blade.php +++ b/resources/views/pages/show.blade.php @@ -150,9 +150,8 @@
- {{--Export--}} @if(signedInUser()) - @include('partials.entity-favourite-action', ['entity' => $page, 'alreadyFavourite' => $page->isFavourite()]) + @include('partials.entity-favourite-action', ['entity' => $page]) @endif @include('partials.entity-export-menu', ['entity' => $page]) diff --git a/resources/views/shelves/show.blade.php b/resources/views/shelves/show.blade.php index 7ed36c906..431fa54cc 100644 --- a/resources/views/shelves/show.blade.php +++ b/resources/views/shelves/show.blade.php @@ -133,6 +133,11 @@ @endif + @if(signedInUser()) +
+ @include('partials.entity-favourite-action', ['entity' => $shelf]) + @endif + @stop