mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-30 07:32:39 +01:00
a61c9c5e98
- Primarily moved and re-organised view files. - Included readme within views to document the convention. - Fixed some issues with page field select list in previous commit. - Tweaked some route names while going through. - Split some views out further. Closes #2805
35 lines
1.5 KiB
PHP
35 lines
1.5 KiB
PHP
<nav id="book-tree"
|
|
class="book-tree mb-xl"
|
|
aria-label="{{ trans('entities.books_navigation') }}">
|
|
|
|
<h5>{{ trans('entities.books_navigation') }}</h5>
|
|
|
|
<ul class="sidebar-page-list mt-xs menu entity-list">
|
|
@if (userCan('view', $book))
|
|
<li class="list-item-book book">
|
|
@include('entities.list-item-basic', ['entity' => $book, 'classes' => ($current->matches($book)? 'selected' : '')])
|
|
</li>
|
|
@endif
|
|
|
|
@foreach($sidebarTree as $bookChild)
|
|
<li class="list-item-{{ $bookChild->getType() }} {{ $bookChild->getType() }} {{ $bookChild->isA('page') && $bookChild->draft ? 'draft' : '' }}">
|
|
@include('entities.list-item-basic', ['entity' => $bookChild, 'classes' => $current->matches($bookChild)? 'selected' : ''])
|
|
|
|
@if($bookChild->isA('chapter') && count($bookChild->visible_pages) > 0)
|
|
<div class="entity-list-item no-hover">
|
|
<span role="presentation" class="icon text-chapter"></span>
|
|
<div class="content">
|
|
@include('chapters.parts.child-menu', [
|
|
'chapter' => $bookChild,
|
|
'current' => $current,
|
|
'isOpen' => $bookChild->matchesOrContains($current)
|
|
])
|
|
</div>
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
</nav> |