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()
|
$tables = $user->tables()
|
||||||
->with('revision:id,row_count')
|
->with('revision:id,row_count')
|
||||||
->paginate(3);
|
->paginate(10);
|
||||||
|
|
||||||
return view('user.view')->with(compact('tables', 'user'));
|
return view('user.view')->with(compact('tables', 'user'));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,11 +76,9 @@
|
|||||||
@endif
|
@endif
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
@if ($tables->hasPages())
|
|
||||||
<nav class="ml-auto" aria-label="Pages of the table list">
|
<nav class="ml-auto" aria-label="Pages of the table list">
|
||||||
{{ $tables->links(null, ['ulClass' => 'pagination-sm mb-0 pagination-outline-light']) }}
|
{{ $tables->links(null, ['ulClass' => 'pagination-sm mb-0 pagination-outline-light']) }}
|
||||||
</nav>
|
</nav>
|
||||||
@endif
|
|
||||||
|
|
||||||
@if(authed() && user()->is($user))
|
@if(authed() && user()->is($user))
|
||||||
<a href="{{route('table.create')}}" class="btn ml-3">New</a>
|
<a href="{{route('table.create')}}" class="btn ml-3">New</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user