diff options
author | Dan McGee <dan@archlinux.org> | 2014-10-18 18:28:26 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2014-10-18 18:28:26 -0500 |
commit | 061805aa73d3d5b418a61fa6d6591d1a7d03d9ed (patch) | |
tree | b7cd8cca5eba3c358a000b399cc2cd756b88b6a1 /templates/packages/search_paginator.html | |
parent | 4def86ec76d9975be8a357b6fc06104cc2b31fed (diff) |
FS#30773: put exact matches at top
There have been a few proposed solutions to this, but there really isn't
anything without a drawback. Things break pagination, require loading
the entire result set from the database, etc.
Just plop a new table on the page if someone did a so-called "simple"
search and we have a match. Only show on the first page of the search
results. This results in a relatively fast experience for someone doing
something like searching for the "perl" package.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/search_paginator.html')
-rw-r--r-- | templates/packages/search_paginator.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/packages/search_paginator.html b/templates/packages/search_paginator.html index 4c2bef03..a748d26b 100644 --- a/templates/packages/search_paginator.html +++ b/templates/packages/search_paginator.html @@ -1,6 +1,6 @@ <div class="pkglist-stats"> {% if is_paginated %} - <p>{{ paginator.count }} packages found. + <p>{{ paginator.count }} matching packages found. Page {{ page_obj.number }} of {{ paginator.num_pages }}.</p> <div class="pkglist-nav"> @@ -22,6 +22,6 @@ </span> </div> {% else %} - <p>{{ package_list|length }} packages found.</p> + <p>{{ package_list|length }} matching package{{ package_list|pluralize }} found.</p> {% endif %} </div> |