]> BookStack Code Mirror - bookstack/blob - resources/views/pages/parts/editor-toolbox.blade.php
Comments: Added read-only listing into page editor
[bookstack] / resources / views / pages / parts / editor-toolbox.blade.php
1 <div component="editor-toolbox" class="floating-toolbox">
2
3     <div class="tabs primary-background-light">
4         <button type="button" refs="editor-toolbox@toggle" aria-expanded="false" class="toolbox-toggle">@icon('caret-left-circle')</button>
5         <button type="button" refs="editor-toolbox@tab-button" data-tab="tags" title="{{ trans('entities.page_tags') }}" class="active">@icon('tag')</button>
6         @if(userCan('attachment-create-all'))
7             <button type="button" refs="editor-toolbox@tab-button" data-tab="files" title="{{ trans('entities.attachments') }}">@icon('attach')</button>
8         @endif
9         <button type="button" refs="editor-toolbox@tab-button" data-tab="templates" title="{{ trans('entities.templates') }}">@icon('template')</button>
10         @if($comments->enabled())
11             <button type="button" refs="editor-toolbox@tab-button" data-tab="comments" title="{{ trans('entities.comments') }}">@icon('comment')</button>
12         @endif
13     </div>
14
15     <div refs="editor-toolbox@tab-content" data-tab-content="tags" class="toolbox-tab-content">
16         <h4>{{ trans('entities.page_tags') }}</h4>
17         <div class="px-l">
18             @include('entities.tag-manager', ['entity' => $page])
19         </div>
20     </div>
21
22     @if(userCan('attachment-create-all'))
23         @include('attachments.manager', ['page' => $page])
24     @endif
25
26     <div refs="editor-toolbox@tab-content" data-tab-content="templates" class="toolbox-tab-content">
27         <h4>{{ trans('entities.templates') }}</h4>
28
29         <div class="px-l">
30             @include('pages.parts.template-manager', ['page' => $page, 'templates' => $templates])
31         </div>
32     </div>
33
34     @if($comments->enabled())
35         @include('pages.parts.toolbox-comments')
36     @endif
37
38 </div>