]> BookStack Code Mirror - bookstack/blobdiff - resources/views/partials/breadcrumbs.blade.php
Cleaned up sidebar book tree and moved details
[bookstack] / resources / views / partials / breadcrumbs.blade.php
index 3d07e1338238fdb7d82f613b6847fe5be9a32b36..df5d1aa049fce72ba44a9e45a1a8ac73b826f8a6 100644 (file)
@@ -1,7 +1,7 @@
 <div class="breadcrumbs text-center">
     <?php $breadcrumbCount = 0; ?>
 
-    {{--Show top level item--}}
+    {{-- Show top level books item --}}
     @if (count($crumbs) > 0 && array_first($crumbs) instanceof  \BookStack\Entities\Book)
         <a href="{{  baseUrl('/books')  }}" class="text-book icon-list-item outline-hover">
             <span>@icon('books')</span>
         <?php $breadcrumbCount++; ?>
     @endif
 
+    {{-- Show top level shelves item --}}
+    @if (count($crumbs) > 0 && array_first($crumbs) instanceof  \BookStack\Entities\Bookshelf)
+        <a href="{{  baseUrl('/shelves')  }}" class="text-bookshelf icon-list-item outline-hover">
+            <span>@icon('bookshelf')</span>
+            <span>{{ trans('entities.shelves') }}</span>
+        </a>
+        <?php $breadcrumbCount++; ?>
+    @endif
+
     @foreach($crumbs as $key => $crumb)
         <?php $isEntity = ($crumb instanceof \BookStack\Entities\Entity); ?>