X-Git-Url: https://git.deb.at/?a=blobdiff_plain;ds=inline;f=templates%2Fhtml%2Fsearch.tmpl;h=f90586ae51b4d46a47fb803aa07fc6e94f5b3464;hb=3954845023a55026b0e57a131877cfd1b7fdc0b7;hp=8e6bed467e300568eb2505ee320856d8eacb6c45;hpb=994eceb69bd5a8865a51e00b3cfb1c7a1f03f78e;p=deb%2Fpackages.git
diff --git a/templates/html/search.tmpl b/templates/html/search.tmpl
index 8e6bed4..f90586a 100644
--- a/templates/html/search.tmpl
+++ b/templates/html/search.tmpl
@@ -48,7 +48,6 @@
-[%# @translators: I'm really sorry :/ %]
[% suite_wording = suite_enc.match("^(default|all)$") ? g("all suites") : g("suite(s)
$suite_enc");
section_wording = (section_enc == 'all') ? g("all sections") : g("section(s)
$section_enc");
arch_wording = (architectures_enc == 'any') ? g("all architectures") : g("architecture(s)
$architectures_enc");
@@ -58,6 +57,7 @@
source_wording, keyword_enc, suite_wording, section_wording, arch_wording);
ELSE;
exact_wording = opts.exact ? "" : g(" (including subword matching)");
+ # @translators: I'm really sorry :/
msg = g("You have searched for
%s in packages names and descriptions in %s, %s, and %s%s.",
keyword_enc, suite_wording, section_wording, arch_wording, exact_wording);
END %]
@@ -88,13 +88,13 @@
[% FOREACH s IN suites;
suite = s.suite %]
[% suite %]
- [%- ' (' _ suite_aliases.$suite _ ')' IF suite_aliases.$suite %][% ' (' _ s.subsection _ ')' IF s.subsection %]: [% IF s.trans_desc.$lang; s.trans_desc.$lang | html; ELSE; s.desc | html; END %] [%- IF s.section != main_section %] [[% s.section %]][% END %]
+ [%- ' (' _ suite_aliases.$suite _ ')' IF suite_aliases.$suite %][% ' (' _ s.subsection _ ')' IF s.subsection %]: [% IF s.trans_desc.$lang; s.trans_desc.$lang | html; ELSE; s.desc | html; END %] [%- IF s.section && s.section != main_section %] [[% s.section %]][% END %]
[% FOREACH s.versions %]
[% version %] [%- IF archive != main_archive %] [[% archive %]][% END %]: [% architectures.join(' ') %]
[% END %]
[% IF s.providers %]
[% IF s.versions.size > 0; g('also provided by:'); ELSE; g('provided by:'); END %]
- [% FOREACH provider IN s.providers %][% provider %][% ', ' UNLESS loop.last %][% END %]
+ [% FOREACH provider IN s.providers.sort %][% provider %][% ', ' UNLESS loop.last %][% END %]
[% END %]
[% END %]
@@ -110,7 +110,7 @@
[% origin %] ([% subsection %]): [% version %]
[%- IF section %] [[% section %]][% END %]
[%- IF real_archive %] [[% real_archive %]][% END %]
-
[% g('Binary packages:') %] [% FOREACH binary IN binaries %][% binary %][% ', ' UNLESS loop.last %][% END %]
+
[% g('Binary packages:') %] [% FOREACH binary IN binaries.sort %][% binary %][% ', ' UNLESS loop.last %][% END %]
[% IF binaries.size > 10 %]
[% END %]