From ba8ce6005b88be5d6ded406c4692b2d92238b02e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kalle=20S=C3=B6derman?= Date: Wed, 2 Feb 2011 23:43:01 +0000 Subject: [PATCH] Search results use note class, text made shorter --- templates/html/search.tmpl | 12 ++++++++---- templates/html/search_contents.tmpl | 6 ++++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/templates/html/search.tmpl b/templates/html/search.tmpl index 683d8bc..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 %] diff --git a/templates/html/search_contents.tmpl b/templates/html/search_contents.tmpl index 3388fe3..a5ed01c 100644 --- a/templates/html/search_contents.tmpl +++ b/templates/html/search_contents.tmpl @@ -55,7 +55,7 @@ [% END %] [% UNLESS search_architectures.size == 1 || all_architectures.size == 1 %] -

[% g('Limit search to a specific architecture:') %] +

[% g('Limit to a architecture:') %] [% FOREACH a IN all_architectures %] [[% a %]][% END %] [% END %] @@ -85,7 +85,9 @@ [% g('Found %u results.', results.size) %] [% IF too_many_hits %] -

[% 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.') %]

+
+

[% 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.') %]

+
[% END %] -- 2.39.2