Added faviourtes to other entity types

This commit is contained in:
Dan Brown 2021-05-16 10:26:28 +01:00
parent db9aa41096
commit 3ca149137e
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
4 changed files with 12 additions and 2 deletions

View File

@ -118,6 +118,9 @@
<hr class="primary-background"> <hr class="primary-background">
@if(signedInUser())
@include('partials.entity-favourite-action', ['entity' => $book])
@endif
@include('partials.entity-export-menu', ['entity' => $book]) @include('partials.entity-export-menu', ['entity' => $book])
</div> </div>
</div> </div>

View File

@ -123,6 +123,9 @@
<hr class="primary-background"/> <hr class="primary-background"/>
@if(signedInUser())
@include('partials.entity-favourite-action', ['entity' => $chapter])
@endif
@include('partials.entity-export-menu', ['entity' => $chapter]) @include('partials.entity-export-menu', ['entity' => $chapter])
</div> </div>
</div> </div>

View File

@ -150,9 +150,8 @@
<hr class="primary-background"/> <hr class="primary-background"/>
{{--Export--}}
@if(signedInUser()) @if(signedInUser())
@include('partials.entity-favourite-action', ['entity' => $page, 'alreadyFavourite' => $page->isFavourite()]) @include('partials.entity-favourite-action', ['entity' => $page])
@endif @endif
@include('partials.entity-export-menu', ['entity' => $page]) @include('partials.entity-export-menu', ['entity' => $page])
</div> </div>

View File

@ -133,6 +133,11 @@
</a> </a>
@endif @endif
@if(signedInUser())
<hr class="primary-background">
@include('partials.entity-favourite-action', ['entity' => $shelf])
@endif
</div> </div>
</div> </div>
@stop @stop