From 2d952ffa8c9f22b1c2c7930bc4e2673e72e51f5b Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 15 Sep 2009 16:52:09 +0000 Subject: Bug 510669: Do not display the "shared searches" table if there is no search shared with you - Patch by Frédéric Buclin r=pyrzak a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../en/default/account/prefs/saved-searches.html.tmpl | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'template') diff --git a/template/en/default/account/prefs/saved-searches.html.tmpl b/template/en/default/account/prefs/saved-searches.html.tmpl index 280b932ba..f1286134b 100644 --- a/template/en/default/account/prefs/saved-searches.html.tmpl +++ b/template/en/default/account/prefs/saved-searches.html.tmpl @@ -155,9 +155,9 @@ [% END %] -

You may use these searches saved and shared by others:

+[% IF user.queries_available.size %] +

You may use these searches saved and shared by others:

-
- [% found_shared_query = 0 %] [% FOREACH q = user.queries_available %] - [% found_shared_query = 1 %] @@ -205,12 +203,7 @@ [% END %] - [% IF !found_shared_query %] - - - - [% END %]
@@ -180,9 +180,7 @@ Footer
[% q.name FILTER html %] [% q.user.identity FILTER html %]
- <None> -
-
+[% ELSE %] +

No searches are shared with you by other users.

+[% END %] -- cgit v1.2.3-24-g4f1b