fix hdr align if no pages, change perpage to 10

pull/26/head
Ondřej Hruška 6 years ago
parent 8356997133
commit 6211b38557
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      app/Http/Controllers/UserController.php
  2. 8
      resources/views/user/view.blade.php

@ -17,7 +17,7 @@ class UserController extends Controller
{
$tables = $user->tables()
->with('revision:id,row_count')
->paginate(3);
->paginate(10);
return view('user.view')->with(compact('tables', 'user'));
}

@ -76,11 +76,9 @@
@endif
</span>
@if ($tables->hasPages())
<nav class="ml-auto" aria-label="Pages of the table list">
{{ $tables->links(null, ['ulClass' => 'pagination-sm mb-0 pagination-outline-light']) }}
</nav>
@endif
<nav class="ml-auto" aria-label="Pages of the table list">
{{ $tables->links(null, ['ulClass' => 'pagination-sm mb-0 pagination-outline-light']) }}
</nav>
@if(authed() && user()->is($user))
<a href="{{route('table.create')}}" class="btn ml-3">New</a>

Loading…
Cancel
Save