Show bookshelves that a book belongs to on a book view

Closes #1598
This commit is contained in:
Christopher Wilkinson
2019-09-27 00:45:10 +01:00
parent 7cd956b24b
commit 4ad4dfa55a
5 changed files with 52 additions and 3 deletions

View File

@ -57,9 +57,7 @@
@stop
@section('right')
<div class="mb-xl">
<h5>{{ trans('common.details') }}</h5>
<div class="text-small text-muted blended-links">
@ -76,7 +74,6 @@
</div>
</div>
<div class="actions mb-xl">
<h5>{{ trans('common.actions') }}</h5>
<div class="icon-list text-primary">
@ -125,6 +122,16 @@
</div>
</div>
<div class="actions mb-xl">
<h5>{{ trans('entities.shelves_long') }}</h5>
@if(count($bookParentShelves) > 0)
@include('partials.entity-list', ['entities' => $bookParentShelves, 'style' => 'compact'])
@else
<div class="body text-muted">{{ trans('entities.book_parent_shelves_empty') }}</div>
@endif
</div>
@stop
@section('left')