Reviewed #1688, Show parent shelves on books page

- Moved list to the left of the page to align with other navigational
items.
- Hid list of no shelves, to help hide shelf references if not in use.
- Tweaked test to ensure it wasn't finding shelf name in breadcrumb
rather than list being tested.
This commit is contained in:
Dan Brown
2020-04-09 17:29:22 +01:00
parent 898cedf536
commit 47e645909e
5 changed files with 9 additions and 13 deletions

View File

@ -114,7 +114,7 @@ class BookController extends Controller
{
$book = $this->bookRepo->getBySlug($slug);
$bookChildren = (new BookContents($book))->getTree(true);
$bookParentShelves = $book->shelves()->visible();
$bookParentShelves = $book->shelves()->visible()->get();
Views::add($book);
if ($request->has('shelf')) {