fix hdr align if no pages, change perpage to 10
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user