From 6211b3855747efc05a26e469441ded24fff3b88d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 22 Jul 2018 17:09:08 +0200 Subject: [PATCH] fix hdr align if no pages, change perpage to 10 --- app/Http/Controllers/UserController.php | 2 +- resources/views/user/view.blade.php | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 4c2a871..c4a7e6e 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.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')); } diff --git a/resources/views/user/view.blade.php b/resources/views/user/view.blade.php index 2913748..82033da 100644 --- a/resources/views/user/view.blade.php +++ b/resources/views/user/view.blade.php @@ -76,11 +76,9 @@ @endif - @if ($tables->hasPages()) - - @endif + @if(authed() && user()->is($user)) New