1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Converted books view setting to user setting

Also cleaned up/moved new CSS and removed redundant new book methods.
This commit is contained in:
Dan Brown
2017-12-06 16:34:26 +00:00
parent bc1302a8d8
commit 261e57fc4e
11 changed files with 75 additions and 134 deletions

View File

@ -45,9 +45,9 @@
</div>
<div class="form-group">
<label for="books-view-type">{{ trans('settings.users_books_view_type') }}</label>
<select name="books_view_type" id="books-view-type">
<option @if($user->books_view_type === 'grid') selected @endif value="grid">Grid</option>
<option @if($user->books_view_type === 'list') selected @endif value="list">List</option>
<select name="setting[books_view_type]" id="books-view-type">
<option @if(setting()->getUser($user, 'books_view_type', 'list') === 'list') selected @endif value="list">List</option>
<option @if(setting()->getUser($user, 'books_view_type', 'list') === 'grid') selected @endif value="grid">Grid</option>
</select>
</div>
</div>