]> 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 fcf9cb4bb8fef819b7a79f84f1cab8f3673a5a38..81fb66cfcd18148a796cd478ed53b43110a4817c 100644 (file)
@@ -1,6 +1,8 @@
 @extends('tri-layout')
 
-@section('container-classes', 'mt-xl')
+@section('body')
+    @include('books.list', ['books' => $books, 'view' => $view])
+@stop
 
 @section('left')
     @if($recents)
     </div>
 @stop
 
-@section('body')
-    @include('books.list', ['books' => $books, 'view' => $view])
-@stop
-
 @section('right')
 
     <div class="actions mb-xl">
-        <h5>Actions</h5>
+        <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">
-                    <span class="icon">@icon('add')</span>
+            @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('books.view-toggle', ['view' => $view])
+
+            @include('partials.view-toggle', ['view' => $view, 'type' => 'books'])
         </div>
     </div>