[%- PROCESS 'config/archive_layout.tmpl' -%] [%- keyword_str = search_keywords.join(' '); keyword_esc = uri_escape(keyword_str); keyword_enc = html_encode(keyword_str); section_str = params.values.section.no_replace.join(', '); section_esc = uri_escape(section_str); section_enc = html_encode(section_str); suite_str = params.values.suite.no_replace.join(', '); suite_esc = uri_escape(suite_str); suite_enc = html_encode(suite_str); architectures_str = params.values.arch.no_replace.join(', '); architectures_esc = uri_escape(architectures_str); architectures_enc = html_encode(architectures_str); -%] [%- PROCESS 'html/head.tmpl' title_tag = g("Package Search Results -- %s", keyword_enc) print_search_field = 'packages' search_field_values = { keywords => search_keywords.join(' '), searchon => opts.searchon_form, suite => params.values.suite.no_replace.join(','), architectures => params.values.arch.no_replace.join(','), sections => params.values.section.no_replace.join(','), } navigation = [ { name => g('Package Search Results') } ] -%] [%- PROCESS 'html/util.inc' -%]
[% g('You have searched only for words exactly matching your keywords. You can try to search allowing subword matching.', make_search_url('',"keywords=$keyword_esc",'exact',0) ) %]
[% END %] [% END %][% g('Search in specific suite:') %] [% FOREACH s IN all_suites %] [% IF s != suite_str %] [[% s %]] [% ELSE %] [[% s %]] [% END %] [% END %] [% IF search_suites.size == 1 %]
[% g('Search in all suites', make_search_url('',"keywords=$keyword_esc",'suite','all')) %] [% END %]
[% g('Limit search to a specific architecture:') %] [% FOREACH a IN all_architectures %] [% IF a != arch_str %] [[% a %]] [% ELSE %] [[% a %]] [% END %] [% END %] [% IF search_architectures.size == 1 %]
[% g('Search in all architectures', make_search_url('',"keywords=$keyword_esc",'arch','any')) %] [% END %]
[% g('Some results have not been displayed due to the search parameters.', "$search_url?keywords=$keyword_esc") %]
[% END %] [%- PROCESS 'html/messages.tmpl' -%][% msg %] [% IF results %] [% g('Found %u matching packages.', results) %]
[% END %] [% IF too_many_hits %] [% IF opts.searchon != "names" %][% g("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 %]
[%- IF results %]
[% g("Your keyword was too generic, for optimizing reasons some results might have been suppressed.
Please consider using a longer keyword or more keywords.") %]
[%- ELSE -%]
[% g("Your keyword was too generic.
Please consider using a longer keyword or more keywords.") %]
[% END -%]
[% g('Sorry, your search gave no results') %]
[% END %] [% FOREACH categories %] [% "[% g('%u results have not been displayed because you requested only exact matches.', make_search_url('',"keywords=$keyword_esc",'exact', 0), skipped) %] [% END %]