1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

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

@@ -135,6 +135,7 @@ return [
'books_sort_chapters_last' => 'Chapters Last',
'books_sort_show_other' => 'Show Other Books',
'books_sort_save' => 'Save New Order',
'book_parent_shelves_empty' => 'Shelves that this book is on will appear here.',
// Chapters
'chapter' => 'Chapter',

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')