2 <div class="book-tree" ng-non-bindable>
4 @if(isset($page) && $page->tags->count() > 0)
5 <div class="tag-display">
6 <h6 class="text-muted">{{ trans('entities.page_tags') }}</h6>
9 @foreach($page->tags as $tag)
11 <td @if(!$tag->value) colspan="2" @endif><a href="{{ baseUrl('/search?term=%5B' . urlencode($tag->name) .'%5D') }}">{{ $tag->name }}</a></td>
12 @if($tag->value) <td class="tag-value"><a href="{{ baseUrl('/search?term=%5B' . urlencode($tag->name) .'%3D' . urlencode($tag->value) . '%5D') }}">{{$tag->value}}</a></td> @endif
20 @if (isset($page) && $page->attachments->count() > 0)
21 <h6 class="text-muted">{{ trans('entities.pages_attachments') }}</h6>
22 @foreach($page->attachments as $attachment)
23 <div class="attachment">
24 <a href="{{ $attachment->getUrl() }}" @if($attachment->external) target="_blank" @endif><i class="zmdi zmdi-{{ $attachment->external ? 'open-in-new' : 'file' }}"></i>{{ $attachment->name }}</a>
29 @if (isset($pageNav) && count($pageNav))
30 <h6 class="text-muted">{{ trans('entities.pages_navigation') }}</h6>
31 <div class="sidebar-page-nav menu">
32 @foreach($pageNav as $navItem)
33 <li class="page-nav-item h{{ $navItem['level'] }}">
34 <a href="{{ $navItem['link'] }}">{{ $navItem['text'] }}</a>
40 <h6 class="text-muted">{{ trans('entities.books_navigation') }}</h6>
41 <ul class="sidebar-page-list menu">
42 <li class="book-header"><a href="{{ $book->getUrl() }}" class="book {{ $current->matches($book)? 'selected' : '' }}"><i class="zmdi zmdi-book"></i>{{$book->name}}</a></li>
45 @foreach($sidebarTree as $bookChild)
46 <li class="list-item-{{ $bookChild->getClassName() }} {{ $bookChild->getClassName() }} {{ $bookChild->isA('page') && $bookChild->draft ? 'draft' : '' }}">
47 <a href="{{ $bookChild->getUrl() }}" class="{{ $bookChild->getClassName() }} {{ $current->matches($bookChild)? 'selected' : '' }}">
48 @if($bookChild->isA('chapter'))<i class="zmdi zmdi-collection-bookmark"></i>@else <i class="zmdi zmdi-file-text"></i>@endif{{ $bookChild->name }}
51 @if($bookChild->isA('chapter') && count($bookChild->pages) > 0)
52 <p class="text-muted chapter-toggle @if($bookChild->matchesOrContains($current)) open @endif">
53 <i class="zmdi zmdi-caret-right"></i> <i class="zmdi zmdi-file-text"></i> <span>{{ trans('entities.x_pages', ['count' => $bookChild->pages->count()]) }}</span>
55 <ul class="menu sub-menu inset-list @if($bookChild->matchesOrContains($current)) open @endif">
56 @foreach($bookChild->pages as $childPage)
57 <li class="list-item-page {{ $childPage->isA('page') && $childPage->draft ? 'draft' : '' }}">
58 <a href="{{ $childPage->getUrl() }}" class="page {{ $current->matches($childPage)? 'selected' : '' }}">
59 <i class="zmdi zmdi-file-text"></i> {{ $childPage->name }}