mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Sync search result statistics with archweb
* Use archweb classes for search result statistics. * Add some space between page numbers. * Display current page number instead of current item range. * Hide page numbers if the result fits into a single page. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
7c004693f7
commit
4aad42d993
4 changed files with 14 additions and 13 deletions
|
@ -30,7 +30,7 @@ $orderby = array(
|
|||
'd' => __('Descending')
|
||||
);
|
||||
|
||||
$pages = array(50, 100, 250);
|
||||
$per_page = array(50, 100, 250);
|
||||
?>
|
||||
|
||||
<div id="pkglist-search" class="box filter-criteria">
|
||||
|
@ -109,7 +109,7 @@ $pages = array(50, 100, 250);
|
|||
<div>
|
||||
<label for="id_per_page"><?php print __("Per page"); ?></label>
|
||||
<select name='PP'>
|
||||
<?php foreach ($pages as $i): ?>
|
||||
<?php foreach ($per_page as $i): ?>
|
||||
<?php if (isset($_REQUEST['PP']) && $_REQUEST['PP'] == $i): ?>
|
||||
<option value="<?php print $i; ?>" selected="selected"><?php print $i; ?></option>
|
||||
<?php else: ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue