5 <div class="mb-m print-hidden">
6 @include('partials.breadcrumbs', ['crumbs' => [
8 $page->hasChapter() ? $page->chapter : null,
13 <main class="content-wrap card">
14 <div class="page-content" page-display="{{ $page->id }}">
15 @include('pages.pointer', ['page' => $page])
16 @include('pages.page-display')
20 @if ($commentsEnabled)
21 <div class="container small p-none comments-container mb-l print-hidden">
22 @include('comments.comments', ['page' => $page])
23 <div class="clearfix"></div>
30 @if($page->tags->count() > 0)
32 @include('components.tag-list', ['entity' => $page])
36 @if ($page->attachments->count() > 0)
37 <div id="page-attachments" class="mb-l">
38 <h5>{{ trans('entities.pages_attachments') }}</h5>
40 @foreach($page->attachments as $attachment)
41 <div class="attachment icon-list">
42 <a class="icon-list-item py-xs" href="{{ $attachment->getUrl() }}" @if($attachment->external) target="_blank" @endif>
43 <span class="icon">@icon($attachment->external ? 'export' : 'file')</span>
44 <span>{{ $attachment->name }}</span>
52 @if (isset($pageNav) && count($pageNav))
53 <nav id="page-navigation" class="mb-xl" aria-label="{{ trans('entities.pages_navigation') }}">
54 <h5>{{ trans('entities.pages_navigation') }}</h5>
56 <div class="sidebar-page-nav menu">
57 @foreach($pageNav as $navItem)
58 <li class="page-nav-item h{{ $navItem['level'] }}">
59 <a href="{{ $navItem['link'] }}" class="limit-text block">{{ $navItem['text'] }}</a>
60 <div class="primary-background sidebar-page-nav-bullet"></div>
68 @include('partials.book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree])
72 <div id="page-details" class="entity-details mb-xl">
73 <h5>{{ trans('common.details') }}</h5>
74 <div class="body text-small blended-links">
75 @include('partials.entity-meta', ['entity' => $page])
77 @if($book->restricted)
78 <div class="active-restriction">
79 @if(userCan('restrictions-manage', $book))
80 <a href="{{ $book->getUrl('/permissions') }}">@icon('lock'){{ trans('entities.books_permissions_active') }}</a>
82 @icon('lock'){{ trans('entities.books_permissions_active') }}
87 @if($page->chapter && $page->chapter->restricted)
88 <div class="active-restriction">
89 @if(userCan('restrictions-manage', $page->chapter))
90 <a href="{{ $page->chapter->getUrl('/permissions') }}">@icon('lock'){{ trans('entities.chapters_permissions_active') }}</a>
92 @icon('lock'){{ trans('entities.chapters_permissions_active') }}
97 @if($page->restricted)
98 <div class="active-restriction">
99 @if(userCan('restrictions-manage', $page))
100 <a href="{{ $page->getUrl('/permissions') }}">@icon('lock'){{ trans('entities.pages_permissions_active') }}</a>
102 @icon('lock'){{ trans('entities.pages_permissions_active') }}
109 @icon('template'){{ trans('entities.pages_is_template') }}
115 <div class="actions mb-xl">
118 <div class="icon-list text-primary">
121 @if(userCan('page-update', $page))
122 <a href="{{ $page->getUrl('/edit') }}" class="icon-list-item">
123 <span>@icon('edit')</span>
124 <span>{{ trans('common.edit') }}</span>
127 @if(userCanOnAny('page-create'))
128 <a href="{{ $page->getUrl('/copy') }}" class="icon-list-item">
129 <span>@icon('copy')</span>
130 <span>{{ trans('common.copy') }}</span>
133 @if(userCan('page-update', $page))
134 @if(userCan('page-delete', $page))
135 <a href="{{ $page->getUrl('/move') }}" class="icon-list-item">
136 <span>@icon('folder')</span>
137 <span>{{ trans('common.move') }}</span>
140 <a href="{{ $page->getUrl('/revisions') }}" class="icon-list-item">
141 <span>@icon('history')</span>
142 <span>{{ trans('entities.revisions') }}</span>
145 @if(userCan('restrictions-manage', $page))
146 <a href="{{ $page->getUrl('/permissions') }}" class="icon-list-item">
147 <span>@icon('lock')</span>
148 <span>{{ trans('entities.permissions') }}</span>
151 @if(userCan('page-delete', $page))
152 <a href="{{ $page->getUrl('/delete') }}" class="icon-list-item">
153 <span>@icon('delete')</span>
154 <span>{{ trans('common.delete') }}</span>
158 <hr class="primary-background"/>
161 @include('partials.entity-export-menu', ['entity' => $page])