mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Replace categories with keywords
Remove package base categories. Instead, users can now specify up to twenty custom keywords that are taken into consideration when searching. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
4c1bb8b7e5
commit
5fb7a74e23
11 changed files with 112 additions and 183 deletions
|
@ -19,7 +19,6 @@ $outdated_flags = array(
|
|||
|
||||
$sortby = array(
|
||||
'n' => __('Name'),
|
||||
'c' => __('Category'),
|
||||
'v' => __('Votes'),
|
||||
'p' => __('Popularity'),
|
||||
'w' => __('Voted'),
|
||||
|
@ -44,19 +43,6 @@ $per_page = array(50, 100, 250);
|
|||
|
||||
<fieldset>
|
||||
<legend><?= __('Enter search criteria') ?></legend>
|
||||
<div>
|
||||
<label for="id_category"><?= __("Category"); ?></label>
|
||||
<select name='C' id="id_category">
|
||||
<option value='0'><?= __("Any"); ?></option>
|
||||
<?php foreach (pkgbase_categories() as $id => $cat): ?>
|
||||
<?php if (isset($_REQUEST['C']) && $_REQUEST['C'] == $id): ?>
|
||||
<option value="<?= $id ?>" selected="selected"><?= $cat; ?></option>
|
||||
<?php else: ?>
|
||||
<option value="<?= $id ?>"><?= $cat; ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<label for="id_method"><?= __("Search by"); ?></label>
|
||||
<select name='SeB'>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue