From aac379daeb1ebe360323df31d00cceecbaf48032 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 16 Jan 2018 07:37:06 -0800 Subject: [PATCH] If nopages is passed, hide page numbers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This seems weird since we’re checking for a negative, but there are only a few spots where we wouldn’t want page numbers, namely the dashboard sruff --- resources/views/partials/bootstrap-table.blade.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index 47515911f..300f21c30 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -50,8 +50,10 @@ paginationVAlign: 'both', sidePagination: '{{ (isset($clientSearch)) ? 'client' : 'server' }}', sortable: true, + @if (!isset($nopages)) pageSize: 20, pagination: true, + @endif cookie: true, cookieExpire: '2y', cookieIdTable: '{{ Route::currentRouteName() }}', @@ -72,7 +74,7 @@ paginationSwitchDown: 'fa-caret-square-o-down', paginationSwitchUp: 'fa-caret-square-o-up', columns: 'fa-columns', - @if( isset($multiSort)) + @if (isset($multiSort)) sort: 'fa fa-sort-amount-desc', plus: 'fa fa-plus', minus: 'fa fa-minus',