X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=templates%2Fhtml%2Fsearch.tmpl;h=faf582c596c1da612c2aaac922e9094b72299274;hb=e3267460f5a73aba7118b0b90918981fd12099d1;hp=74171b252818d875bcea36b3c83f222a0604d81b;hpb=fd86d8529dc854454c7ed14958606a13b8625ada;p=deb%2Fpackages.git
diff --git a/templates/html/search.tmpl b/templates/html/search.tmpl
index 74171b2..faf582c 100644
--- a/templates/html/search.tmpl
+++ b/templates/html/search.tmpl
@@ -65,10 +65,15 @@ Found [% results %] matching packages.
[% END %]
[% IF too_many_hits %]
+[% IF opts.searchon != "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
@@ -80,8 +85,10 @@ Please consider using a longer keyword or more keywords.
[% FOREACH packages %]
Package [% pkg %]
- [% FOREACH s IN suites %]
- - [% s.suite %][% ' (' _ s.subsect _ ')' IF s.subsect %]: [% s.desc %] [%- IF s.section != main_section %] [[% s.section %]][% END %]
+ [% FOREACH s IN suites;
+ suite = s.suite %]
+
- [% suite %]
+ [%- ' (' _ suite_aliases.$suite _ ')' IF suite_aliases.$suite %][% ' (' _ s.subsection _ ')' IF s.subsection %]: [% s.desc %] [%- IF s.section != main_section %] [[% s.section %]][% END %]
[% FOREACH s.versions %]
[% version %] [%- IF archive != main_archive %] [[% archive %]][% END %]: [% architectures.join(' ') %]
[% END %]
@@ -102,7 +109,7 @@ Please consider using a longer keyword or more keywords.
- [% origin %] ([% subsection %]): [% version %]
[%- IF section %] [[% section %]][% END %]
[%- IF real_archive %] [[% real_archive %]][% END %]
-
Binary packages: [% FOREACH binary IN binaries %][% binary %][% ', ' UNLESS loop.last %][% END %]
+
Binary packages: [% FOREACH binary IN binaries %][% binary %][% ', ' UNLESS loop.last %][% END %]
[% IF binaries.size > 10 %]
[% END %]
@@ -118,3 +125,5 @@ Please consider using a longer keyword or more keywords.
[% END %]
+
+[%- PROCESS 'html/foot.tmpl' -%]