X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=templates%2Fhtml%2Fsearch.tmpl;h=42ee062001bab83213f1e04c5a5c9888964f2747;hb=8a8494d6306fcf536dfdecbd0cab0e3e83c4112c;hp=4503526eced2bfe981ce1d8620e1b7380f507bab;hpb=233101015535e2e723fe6455a8d91d0be54703bb;p=deb%2Fpackages.git
diff --git a/templates/html/search.tmpl b/templates/html/search.tmpl
index 4503526..42ee062 100644
--- a/templates/html/search.tmpl
+++ b/templates/html/search.tmpl
@@ -38,7 +38,7 @@
[% END %]
[% END %]
-
[% g('Search in specific suite:') %]
+
[% g('Limit to suite:') %]
[% FOREACH s IN all_suites %]
[% IF s != suite_str %]
[[% s %]]
@@ -51,7 +51,7 @@
make_search_url('',"keywords=$keyword_esc",'suite','all')) %]
[% END %]
-
[% g('Limit search to a specific architecture:') %]
+
[% g('Limit to a architecture:') %]
[% FOREACH a IN all_architectures %]
[% IF a != arch_str %]
[[% a %]]
@@ -97,15 +97,19 @@
[% 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.") %]
+
+
[% 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 -%]
+
[% END; END %]
[% UNLESS results || too_many_hits %]
@@ -123,9 +127,9 @@
[% suite %]
[%- ' (' _ suite_aliases.$suite _ ')' IF suite_aliases.$suite %][% ' (' _ s.subsection _ ')' IF s.subsection %]:
[% PROCESS desc_i18n trans_desc=s.trans_desc desc=s.desc %]
- [%- PROCESS marker text=section title=section_titles.$section IF section && section != main_section %]
+ [%- PROCESS marker text=section title=section_titles.$section url=section_urls.$section IF section && section != main_section %]
[% FOREACH s.versions %]
-
[% version %] [%- IF archive != main_archive %] [[% archive %]][% END %]: [% architectures.join(' ') %]
+
[% version %] [%- IF archive != main_archive %] [[% IF mirrors.$archive.url %][% END %][% archive %][% IF mirrors.$archive.url %][% END %]][% END %]: [% architectures.join(' ') %]
[% END %]
[% IF s.providers %]
[% IF s.versions.size > 0; g('also provided by:'); ELSE; g('provided by:'); END %]
@@ -143,7 +147,7 @@
[% origin = (archive == main_archive) ? suite : "$suite/$archive";
js_id = string2id("$pkg$suite$archive") %]
[% origin %] ([% subsection %]): [% version %]
- [%- PROCESS marker text=section title=section_titles.$section IF section %] [%- PROCESS marker text=real_archive title=mirrors.$real_archive.title IF real_archive %]
+ [%- PROCESS marker text=section title=section_titles.$section url=section_urls.$section IF section %] [%- PROCESS marker text=real_archive title=mirrors.$real_archive.title url=mirrors.$real_archive.url IF real_archive %]
[% g('Binary packages:') %] [% FOREACH binary IN binaries.sort %][% binary %][% ', ' UNLESS loop.last %][% END %]
[% IF binaries.size > 10 %]