]> BookStack Code Mirror - bookstack/blobdiff - resources/views/books/index.blade.php
Add prev and next button to navigate through different pages
[bookstack] / resources / views / books / index.blade.php
index 61d99848955188c3d1e9905ad235277442461429..81fb66cfcd18148a796cd478ed53b43110a4817c 100644 (file)
     <div class="actions mb-xl">
         <h5>{{ trans('common.actions') }}</h5>
         <div class="icon-list text-primary">
-            @if($currentUser->can('book-create-all'))
-                <a href="{{ baseUrl("/create-book") }}" class="icon-list-item">
+            @if(user()->can('book-create-all'))
+                <a href="{{ url("/create-book") }}" class="icon-list-item">
                     <span>@icon('add')</span>
                     <span>{{ trans('entities.books_create') }}</span>
                 </a>
             @endif
 
-            @include('partials.view-toggle', ['view' => $view, 'type' => 'book'])
+            @include('partials.view-toggle', ['view' => $view, 'type' => 'books'])
         </div>
     </div>