X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/3da8c01c1f8fbb3e2928151f5ba598321020a70d..refs/pull/846/head:/resources/views/pages/show.blade.php diff --git a/resources/views/pages/show.blade.php b/resources/views/pages/show.blade.php index bd2580a66..dabc7b965 100644 --- a/resources/views/pages/show.blade.php +++ b/resources/views/pages/show.blade.php @@ -7,7 +7,7 @@
-
{{ trans('entities.export') }}
+
@icon('export'){{ trans('entities.export') }}
@if(userCan('page-update', $page)) - {{ trans('common.edit') }} + @icon('edit'){{ trans('common.edit') }} @endif @if(userCan('page-update', $page) || userCan('restrictions-manage', $page) || userCan('page-delete', $page)) @@ -42,33 +42,33 @@ @section('sidebar') @if($book->restricted || ($page->chapter && $page->chapter->restricted) || $page->restricted)
-

{{ trans('entities.permissions') }}

+

@icon('permission') {{ trans('entities.permissions') }}

@if($book->restricted) @if(userCan('restrictions-manage', $book)) - {{ trans('entities.books_permissions_active') }} + @icon('lock'){{ trans('entities.books_permissions_active') }} @else - {{ trans('entities.books_permissions_active') }} + @icon('lock'){{ trans('entities.books_permissions_active') }} @endif
@endif @if($page->chapter && $page->chapter->restricted) @if(userCan('restrictions-manage', $page->chapter)) - {{ trans('entities.chapters_permissions_active') }} + @icon('lock'){{ trans('entities.chapters_permissions_active') }} @else - {{ trans('entities.chapters_permissions_active') }} + @icon('lock'){{ trans('entities.chapters_permissions_active') }} @endif
@endif @if($page->restricted) @if(userCan('restrictions-manage', $page)) - {{ trans('entities.pages_permissions_active') }} + @icon('lock'){{ trans('entities.pages_permissions_active') }} @else - {{ trans('entities.pages_permissions_active') }} + @icon('lock'){{ trans('entities.pages_permissions_active') }} @endif
@endif @@ -77,37 +77,71 @@
@endif - @include('pages/sidebar-tree-list', ['book' => $book, 'sidebarTree' => $sidebarTree, 'pageNav' => $pageNav]) + @if($page->tags->count() > 0) +
+

@icon('tag') {{ trans('entities.page_tags') }}

+
+ @include('components.tag-list', ['entity' => $page]) +
+
+ @endif + + @if ($page->attachments->count() > 0) +
+

@icon('attach') {{ trans('entities.pages_attachments') }}

+
+ @foreach($page->attachments as $attachment) + + @endforeach +
+
+ @endif + + @if (isset($pageNav) && count($pageNav)) +
+

@icon('open-book') {{ trans('entities.pages_navigation') }}

+
+ +
+
+ @endif
-

{{ trans('common.details') }}

+

@icon('info') {{ trans('common.details') }}

- @include('partials.entity-meta', ['entity' => $book]) + @include('partials.entity-meta', ['entity' => $page])
+ + @include('partials/book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree]) + @stop @section('body') -
+
- + @icon('link') @icon('include', ['style' => 'display:none;']) - +
@include('pages/page-display')
-
- @include('comments/comments', ['pageId' => $page->id]) -
-@stop - -@section('scripts') - + @if ($commentsEnabled) +
+ @include('comments/comments', ['page' => $page]) +
+ @endif @stop