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