From: Abijeet Date: Sat, 12 May 2018 08:46:05 +0000 (+0530) Subject: Added the book view toggle option on the homepage. X-Git-Tag: v0.22.0~1^2~11^2~4 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/8254c3be8d416fce276585f81baf45f5bc755347 Added the book view toggle option on the homepage. Signed-off-by: Abijeet --- diff --git a/resources/views/books/index.blade.php b/resources/views/books/index.blade.php index f625ae6fb..d3e0d1297 100644 --- a/resources/views/books/index.blade.php +++ b/resources/views/books/index.blade.php @@ -3,16 +3,7 @@ @section('toolbar')
-
id}/switch-book-view") }}" method="POST" class="inline"> - {!! csrf_field() !!} - {!! method_field('PATCH') !!} - - @if ($booksViewType === 'list') - - @else - - @endif -
+ @include('partials/book-view-toggle', ['booksViewType' => $booksViewType])
diff --git a/resources/views/home-book.blade.php b/resources/views/home-book.blade.php index ef94a78a1..e3b523570 100644 --- a/resources/views/home-book.blade.php +++ b/resources/views/home-book.blade.php @@ -4,6 +4,7 @@
@icon('expand-text'){{ trans('common.toggle_details') }} + @include('partials/book-view-toggle', ['booksViewType' => $booksViewType])
@stop diff --git a/resources/views/partials/book-view-toggle.blade.php b/resources/views/partials/book-view-toggle.blade.php new file mode 100644 index 000000000..61df7ab8d --- /dev/null +++ b/resources/views/partials/book-view-toggle.blade.php @@ -0,0 +1,10 @@ +
id}/switch-book-view") }}" method="POST" class="inline"> + {!! csrf_field() !!} + {!! method_field('PATCH') !!} + + @if ($booksViewType === 'list') + + @else + + @endif +
\ No newline at end of file