]> BookStack Code Mirror - bookstack/blob - resources/views/partials/book-tree.blade.php
Move logFailedAccess into Activity
[bookstack] / resources / views / partials / book-tree.blade.php
1 <nav id="book-tree" class="book-tree mb-xl" v-pre aria-label="{{ trans('entities.books_navigation') }}">
2     <h5>{{ trans('entities.books_navigation') }}</h5>
3
4     <ul class="sidebar-page-list mt-xs menu entity-list">
5         @if (userCan('view', $book))
6             <li class="list-item-book book">
7                 @include('partials.entity-list-item-basic', ['entity' => $book, 'classes' => ($current->matches($book)? 'selected' : '')])
8             </li>
9         @endif
10
11         @foreach($sidebarTree as $bookChild)
12             <li class="list-item-{{ $bookChild->getClassName() }} {{ $bookChild->getClassName() }} {{ $bookChild->isA('page') && $bookChild->draft ? 'draft' : '' }}">
13                 @include('partials.entity-list-item-basic', ['entity' => $bookChild, 'classes' => $current->matches($bookChild)? 'selected' : ''])
14
15                 @if($bookChild->isA('chapter') && count($bookChild->pages) > 0)
16                     <div class="entity-list-item no-hover">
17                         <span role="presentation" class="icon text-chapter"></span>
18                         <div class="content">
19                             @include('chapters.child-menu', [
20                                 'chapter' => $bookChild,
21                                 'current' => $current,
22                                 'isOpen'  => $bookChild->matchesOrContains($current)
23                             ])
24                         </div>
25                     </div>
26
27                 @endif
28
29             </li>
30         @endforeach
31     </ul>
32 </nav>