]> BookStack Code Mirror - bookstack/blobdiff - resources/views/chapters/list-item.blade.php
Tightened and cleaned some list styles
[bookstack] / resources / views / chapters / list-item.blade.php
index f66c3781f9aaa7a350d6e702bc80bf890c7e18c8..1567557d2cef48f6bdf8d77ce3047ba3f993d415 100644 (file)
@@ -1,5 +1,11 @@
 <div class="chapter entity-list-item" data-entity-type="chapter" data-entity-id="{{$chapter->id}}">
     <h3>
+        @if (isset($showPath) && $showPath)
+            <a href="{{ $chapter->book->getUrl() }}" class="text-book">
+                <i class="zmdi zmdi-book"></i>{{ $chapter->book->name }}
+            </a>
+            <span class="text-muted">&nbsp;&nbsp;&raquo;&nbsp;&nbsp;</span>
+        @endif
         <a href="{{ $chapter->getUrl() }}" class="text-chapter">
             <i class="zmdi zmdi-collection-bookmark"></i>{{ $chapter->name }}
         </a>