Skip to content

Commit

Permalink
Merge pull request #10797 from snipe/features/use_max_results_in_pagi…
Browse files Browse the repository at this point in the history
…nation

Use the max_results env value in the paginator
  • Loading branch information
snipe authored Mar 8, 2022
2 parents 3e2fe10 + def570d commit 33ee63f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/partials/bootstrap-table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ classes: 'table table-responsive table-no-bordered',
paginationLastText: "{{ trans('general.last') }}",
paginationPreText: "{{ trans('general.previous') }}",
paginationNextText: "{{ trans('general.next') }}",
pageList: ['10','20', '30','50','100','150','200', '500', '1000'],
pageList: ['10','20', '30','50','100','150','200'{!! ((config('app.max_results') > 200) ? ",'500'" : '') !!}{!! ((config('app.max_results') > 500) ? ",'".config('app.max_results')."'" : '') !!}],
pageSize: {{ (($snipeSettings->per_page!='') && ($snipeSettings->per_page > 0)) ? $snipeSettings->per_page : 20 }},
paginationVAlign: 'both',
queryParams: function (params) {
Expand Down

0 comments on commit 33ee63f

Please sign in to comment.