X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=templates%2Fhtml%2Fsearch_contents.tmpl;h=a5ed01c8bd7e595671a784a327dfa61c288cebc8;hb=39c8d5a2fa0e09b0ee557c46a6f0bb34f327f18e;hp=2deef0bb7ee0839c44a8c7b6ef0de7d574842118;hpb=32f5a5ba7f66aedf7afc095dce485073fe030b88;p=deb%2Fpackages.git diff --git a/templates/html/search_contents.tmpl b/templates/html/search_contents.tmpl index 2deef0b..a5ed01c 100644 --- a/templates/html/search_contents.tmpl +++ b/templates/html/search_contents.tmpl @@ -1,8 +1,20 @@ +[%- 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); + + 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 = "$organisation Package Contents Search Results" + title_tag = g("Package Contents Search Results -- %s", keyword_enc) keywords = "$suite" print_search_field = 'packages' - navigation = [ { title => '', name => 'Packages Contents Search Results', url => '' } ] + navigation = [ { title => '', name => g('Package Contents Search Results'), url => '' } ] search_field_values = { keywords => search_keywords.join(' '), searchon => 'contents', @@ -14,46 +26,42 @@ } -%] -[% 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); - - architectures_str = params.values.arch.no_replace.join(', '); - architectures_esc = uri_escape(architectures_str); - architectures_enc = html_encode(architectures_str); -%]
Search in other suite: +
[% g('Search in other suite:') %] [% FOREACH s IN all_suites %] -[[% s %]] + [% IF s != suite %] + [[% s %]] + [% ELSE %] + [[% s %]] + [% END %] [% END %] [% UNLESS search_architectures.size == 1 || all_architectures.size == 1 %] -
Limit search to a specific architecture: +
[% g('Limit to a architecture:') %] [% FOREACH a IN all_architectures %] [[% a %]][% END %] [% END %] [% IF search_architectures.size == 1 %] -
Search in all architectures +
[% g('Search in all architectures', + make_search_url('',"keywords=$keyword_esc",'arch','any')) %] [% END %]
You have searched for [% wording %] [% keyword_enc %] in [% suite_wording %], [% section_wording %], and [% arch_wording %]. +[%# @translators: I'm really sorry :/ %] +
[% g('You have searched for %s %s in suite %s, %s, and %s.', + wording, keyword_enc, suite, section_wording, arch_wording) %] [% IF results.size %] -Found [% results.size %] results. +[% g('Found %u results.', results.size) %] [% IF too_many_hits %] -
Note: Your search was too wide so we will only display only the first about 100 matches. -Please consider using a longer keyword or more keywords.
+[% g('Note: Your search was too wide so we will only display only the first about 100 matches. Please consider using a longer keyword or more keywords.') %]
+File | -Packages | ++ [%- g('File') %] | ++ [%- g('Packages') %] | [% FOREACH packages %] [% arch_str = architectures.join(', '); - SET arch_str = "not $arch_str" IF ( arch_str && architectures_are_rev ); + SET arch_str = g("not %s", arch_str) IF ( arch_str && architectures_are_rev ); SET arch_str = " [$arch_str]" IF arch_str; pkg_esc = uri_escape(pkg) %] [% pkg | html %][% arch_str %][% ', ' UNLESS loop.last %] @@ -111,13 +123,15 @@ Please consider using a longer keyword or more keywords. [% END %] [% IF results.size > 20 %] - |
---|---|---|---|
File | Packages | ||
[% g('File') %] | [% g('Packages') %] |
Sorry, your search gave no results
+[% g('Sorry, your search gave no results') %]
[% END %] + +[%- PROCESS 'html/foot.tmpl' -%]