X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=templates%2Fhtml%2Fsearch.tmpl;h=9eafd1ee313428e0bf9a35575e982c3a0096b7f2;hb=643c0d669ad783d14919ee7b7644ee4f05e7c0bf;hp=6425cbfc76013d48682ff577dad561dca7d0bf68;hpb=32f5a5ba7f66aedf7afc095dce485073fe030b88;p=deb%2Fpackages.git diff --git a/templates/html/search.tmpl b/templates/html/search.tmpl index 6425cbf..9eafd1e 100644 --- a/templates/html/search.tmpl +++ b/templates/html/search.tmpl @@ -8,8 +8,7 @@ suite => params.values.suite.no_replace.join(','), architectures => params.values.arch.no_replace.join(','), sections => params.values.section.no_replace.join(','), - }; - + } navigation = [ { name => 'Package Search Results' } ] -%] @@ -66,10 +65,15 @@ Found [% results %] matching packages.
[% END %] [% IF too_many_hits %] +[% IF opts.search != "names" %] +Note that this only shows the best matches, sorted by relevance. +If the first few packages don't match what you searched for, try using more keywords or alternative +keywords.
+[% ELSE %]Your search was too wide so we will only display exact matches. At least [% too_many_hits %] results have been omitted and will not be displayed. Please consider using a longer keyword or more keywords.
-[% END %] +[% END; END %] [% UNLESS results %]Sorry, your search gave no results
@@ -82,7 +86,7 @@ Please consider using a longer keyword or more keywords.[% skipped %] results have not been displayed because you requested only exact matches. +
[% skipped %] results have not been displayed because you requested only exact matches. [% END %] + +[%- PROCESS 'html/foot.tmpl' -%]