X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=templates%2Fhtml%2Fsearch.tmpl;h=683d8bc0435673a6dda87ca2ae0cfaf701f18eb7;hb=3d5a72874e7898645841a33b357af6ec2eff226b;hp=d28efc186b6fbdb435c21a422ae72f818a47286d;hpb=3473fbb148f956cde4eedea954e1a7dbae88a0ab;p=deb%2Fpackages.git
diff --git a/templates/html/search.tmpl b/templates/html/search.tmpl
index d28efc1..683d8bc 100644
--- a/templates/html/search.tmpl
+++ b/templates/html/search.tmpl
@@ -1,4 +1,5 @@
[%- PROCESS 'config/archive_layout.tmpl' -%]
+[%- PROCESS 'config/mirrors.tmpl' -%]
[%- keyword_str = search_keywords.join(' ');
keyword_esc = uri_escape(keyword_str);
keyword_enc = html_encode(keyword_str);
@@ -67,7 +68,7 @@
[% IF opts.searchon == "names" && non_results %]
[% g('Some results have not been displayed due to the search parameters.',
- "$search_url$keyword_esc") %]
+ "$search_url?keywords=$keyword_esc") %]
[% END %]
@@ -118,13 +119,13 @@
[% g('Package %s', pkg) %]
[% FOREACH s IN suites;
- suite = s.suite %]
+ suite = s.suite ; section = s.section %]
- [% 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=s.section IF s.section && s.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 %]
@@ -142,7 +143,7 @@
[% origin = (archive == main_archive) ? suite : "$suite/$archive";
js_id = string2id("$pkg$suite$archive") %]
- [% origin %] ([% subsection %]): [% version %]
- [%- PROCESS marker text=section IF section %] [%- PROCESS marker text=real_archive 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 %]