Skip to content
Permalink
Browse files

Merge pull request #193 from Calinou/increase-default-items-per-page

Display 20 items per page by default
  • Loading branch information...
bojidar-bg committed Oct 8, 2019
2 parents 37f09eb + 85edf9b commit b90603c8f4967164e30e4c9c11de9d26fe07fe8f
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/routes/asset.php
  2. +1 −1 src/routes/asset_edit.php
  3. +1 −1 templates/_pagination.phtml
@@ -10,7 +10,7 @@
$username = '%';
$order_column = 'modify_date';
$support_levels = [];
$page_size = 10;
$page_size = 20;
$max_page_size = 500;
$page_offset = 0;
$min_godot_version = 0;
@@ -308,7 +308,7 @@ function _add_previews_to_edit($c, $error, &$response, $edit_id, $previews, $ass
$filter = '%';
$username = '%';
$statuses = [];
$page_size = 10;
$page_size = 20;
$max_page_size = 500;
$page_offset = 0;
if (isset($params['asset'])) {
@@ -55,7 +55,7 @@
</p>
<p>
Change items per page to: <span class="btn-group btn-group-xs" role="group" aria-label="Page size">
<?php foreach ([10, 20, 50, 100, 200, 500] as $amount) { ?>
<?php foreach ([20, 50, 100, 200, 500] as $amount) { ?>
<a href="?<?php echo esc(http_build_query(['max_results' => $amount, 'page' => floor($data['page'] * $data['page_length'] / $amount)] + $params)) ?>" class="btn btn-default" aria-label="Per page">
<?php echo raw($amount); ?>
</a>

0 comments on commit b90603c

Please sign in to comment.
You can’t perform that action at this time.