2 <div class="book-tree" ng-non-bindable>
4 @if(isset($page) && $page->tags->count() > 0)
5 <div class="card tag-display">
6 <h3><i class="zmdi zmdi-tag"></i> {{ trans('entities.page_tags') }}</h3>
10 @foreach($page->tags as $tag)
12 <td @if(!$tag->value) colspan="2" @endif><a href="{{ baseUrl('/search?term=%5B' . urlencode($tag->name) .'%5D') }}">{{ $tag->name }}</a></td>
13 @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
22 @if (isset($page) && $page->attachments->count() > 0)
24 <h3><i class="zmdi zmdi-attachment-alt"></i> {{ trans('entities.pages_attachments') }}</h3>
26 @foreach($page->attachments as $attachment)
27 <div class="attachment">
28 <a href="{{ $attachment->getUrl() }}" @if($attachment->external) target="_blank" @endif><i class="zmdi zmdi-{{ $attachment->external ? 'open-in-new' : 'file' }}"></i>{{ $attachment->name }}</a>
35 @if (isset($pageNav) && count($pageNav))
37 <h3><i class="zmdi zmdi-compass"></i> {{ trans('entities.pages_navigation') }}</h3>
39 <div class="sidebar-page-nav menu">
40 @foreach($pageNav as $navItem)
41 <li class="page-nav-item h{{ $navItem['level'] }}">
42 <a href="{{ $navItem['link'] }}">{{ $navItem['text'] }}</a>
51 <h3><i class="zmdi zmdi-book"></i> {{ trans('entities.books_navigation') }}</h3>
53 <ul class="sidebar-page-list menu">
55 @if (userCan('view', $book))
56 <li class="book-header"><a href="{{ $book->getUrl() }}" class="book {{ $current->matches($book)? 'selected' : '' }}"><i class="zmdi zmdi-book"></i>{{$book->name}}</a></li>
59 @foreach($sidebarTree as $bookChild)
60 <li class="list-item-{{ $bookChild->getClassName() }} {{ $bookChild->getClassName() }} {{ $bookChild->isA('page') && $bookChild->draft ? 'draft' : '' }}">
61 <a href="{{ $bookChild->getUrl() }}" class="{{ $bookChild->getClassName() }} {{ $current->matches($bookChild)? 'selected' : '' }}">
62 @if($bookChild->isA('chapter'))<i class="zmdi zmdi-collection-bookmark"></i>@else <i class="zmdi zmdi-file-text"></i>@endif{{ $bookChild->name }}
65 @if($bookChild->isA('chapter') && count($bookChild->pages) > 0)
66 <p chapter-toggle class="text-muted @if($bookChild->matchesOrContains($current)) open @endif">
67 <i class="zmdi zmdi-caret-right"></i> <i class="zmdi zmdi-file-text"></i> <span>{{ trans('entities.x_pages', ['count' => $bookChild->pages->count()]) }}</span>
69 <ul class="menu sub-menu inset-list @if($bookChild->matchesOrContains($current)) open @endif">
70 @foreach($bookChild->pages as $childPage)
71 <li class="list-item-page {{ $childPage->isA('page') && $childPage->draft ? 'draft' : '' }}">
72 <a href="{{ $childPage->getUrl() }}" class="page {{ $current->matches($childPage)? 'selected' : '' }}">
73 <i class="zmdi zmdi-file-text"></i> {{ $childPage->name }}