6 @include('partials.breadcrumbs', ['crumbs' => [
8 $page->hasChapter() ? $page->chapter : null,
13 <div class="content-wrap card">
14 <div class="page-content flex" page-display="{{ $page->id }}">
16 <div class="pointer-container" id="pointer">
17 <div class="pointer anim {{ userCan('page-update', $page) ? 'is-page-editable' : ''}}" >
18 <span class="icon text-primary">@icon('link') @icon('include', ['style' => 'display:none;'])</span>
19 <span class="input-group">
20 <input readonly="readonly" type="text" id="pointer-url" placeholder="url">
21 <button class="button icon" data-clipboard-target="#pointer-url" type="button" title="{{ trans('entities.pages_copy_link') }}">@icon('copy')</button>
23 @if(userCan('page-update', $page))
24 <a href="{{ $page->getUrl('/edit') }}" id="pointer-edit" data-edit-href="{{ $page->getUrl('/edit') }}"
25 class="button icon heading-edit-icon" title="{{ trans('entities.pages_edit_content_link')}}">@icon('edit')</a>
30 @include('pages.page-display')
34 @if ($commentsEnabled)
35 <div class="container small p-none comments-container mb-l">
36 @include('comments.comments', ['page' => $page])
37 <div class="clearfix"></div>
44 @if($page->tags->count() > 0)
46 @include('components.tag-list', ['entity' => $page])
50 @if ($page->attachments->count() > 0)
51 <div id="page-attachments" class="mb-l">
52 <h5>{{ trans('entities.pages_attachments') }}</h5>
54 @foreach($page->attachments as $attachment)
55 <div class="attachment icon-list">
56 <a class="icon-list-item py-xs" href="{{ $attachment->getUrl() }}" @if($attachment->external) target="_blank" @endif>
57 <span class="icon">@icon($attachment->external ? 'export' : 'file')</span>
58 <span>{{ $attachment->name }}</span>
66 @if (isset($pageNav) && count($pageNav))
67 <div id="page-navigation" class="mb-xl">
68 <h5>{{ trans('entities.pages_navigation') }}</h5>
70 <div class="sidebar-page-nav menu">
71 @foreach($pageNav as $navItem)
72 <li class="page-nav-item h{{ $navItem['level'] }}">
73 <a href="{{ $navItem['link'] }}">{{ $navItem['text'] }}</a>
74 <div class="primary-background sidebar-page-nav-bullet"></div>
82 @include('partials.book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree])
86 <div id="page-details" class="entity-details mb-xl">
87 <h5>{{ trans('common.details') }}</h5>
88 <div class="body text-small blended-links">
89 @include('partials.entity-meta', ['entity' => $page])
91 @if($book->restricted)
92 <div class="active-restriction">
93 @if(userCan('restrictions-manage', $book))
94 <a href="{{ $book->getUrl('/permissions') }}">@icon('lock'){{ trans('entities.books_permissions_active') }}</a>
96 @icon('lock'){{ trans('entities.books_permissions_active') }}
101 @if($page->chapter && $page->chapter->restricted)
102 <div class="active-restriction">
103 @if(userCan('restrictions-manage', $page->chapter))
104 <a href="{{ $page->chapter->getUrl('/permissions') }}">@icon('lock'){{ trans('entities.chapters_permissions_active') }}</a>
106 @icon('lock'){{ trans('entities.chapters_permissions_active') }}
111 @if($page->restricted)
112 <div class="active-restriction">
113 @if(userCan('restrictions-manage', $page))
114 <a href="{{ $page->getUrl('/permissions') }}">@icon('lock'){{ trans('entities.pages_permissions_active') }}</a>
116 @icon('lock'){{ trans('entities.pages_permissions_active') }}
123 <div class="actions mb-xl">
126 <div class="icon-list text-primary">
129 @if(userCan('page-update', $page))
130 <a href="{{ $page->getUrl('/edit') }}" class="icon-list-item">
131 <span>@icon('edit')</span>
132 <span>{{ trans('common.edit') }}</span>
135 @if(userCanOnAny('page-create'))
136 <a href="{{ $page->getUrl('/copy') }}" class="icon-list-item">
137 <span>@icon('copy')</span>
138 <span>{{ trans('common.copy') }}</span>
141 @if(userCan('page-update', $page))
142 @if(userCan('page-delete', $page))
143 <a href="{{ $page->getUrl('/move') }}" class="icon-list-item">
144 <span>@icon('folder')</span>
145 <span>{{ trans('common.move') }}</span>
148 <a href="{{ $page->getUrl('/revisions') }}" class="icon-list-item">
149 <span>@icon('history')</span>
150 <span>{{ trans('entities.revisions') }}</span>
153 @if(userCan('restrictions-manage', $page))
154 <a href="{{ $page->getUrl('/permissions') }}" class="icon-list-item">
155 <span>@icon('lock')</span>
156 <span>{{ trans('entities.permissions') }}</span>
159 @if(userCan('page-delete', $page))
160 <a href="{{ $page->getUrl('/delete') }}" class="icon-list-item">
161 <span>@icon('delete')</span>
162 <span>{{ trans('common.delete') }}</span>
166 <hr class="primary-background"/>
169 <div dropdown class="dropdown-container block">
170 <div dropdown-toggle class="icon-list-item">
171 <span>@icon('export')</span>
172 <span>{{ trans('entities.export') }}</span>
174 <ul class="dropdown-menu wide">
175 <li><a href="{{ $page->getUrl('/export/html') }}" target="_blank">{{ trans('entities.export_html') }} <span class="text-muted float right">.html</span></a></li>
176 <li><a href="{{ $page->getUrl('/export/pdf') }}" target="_blank">{{ trans('entities.export_pdf') }} <span class="text-muted float right">.pdf</span></a></li>
177 <li><a href="{{ $page->getUrl('/export/plaintext') }}" target="_blank">{{ trans('entities.export_text') }} <span class="text-muted float right">.txt</span></a></li>