]> BookStack Code Mirror - bookstack/blobdiff - resources/views/common/home-shelves.blade.php
Add the "Create Shelf" resp. "Create Book" to the home view
[bookstack] / resources / views / common / home-shelves.blade.php
index a9c58589386df4ac996facacd32c3edc8c3c4753..3935734d4667d3872b3be0d220fd427eecec536d 100644 (file)
     <div class="actions mb-xl">
         <h5>{{ trans('common.actions') }}</h5>
         <div class="icon-list text-primary">
+            @if($currentUser->can('bookshelf-create-all'))
+                <a href="{{ url("/create-shelf") }}" class="icon-list-item">
+                    <span>@icon('add')</span>
+                    <span>{{ trans('entities.shelves_new_action') }}</span>
+                </a>
+            @endif
             @include('partials.view-toggle', ['view' => $view, 'type' => 'shelf'])
             @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
         </div>