From: lpsolit%gmail.com <> Date: Tue, 15 Sep 2009 16:52:09 +0000 (+0000) Subject: Bug 510669: Do not display the "shared searches" table if there is no search shared... X-Git-Tag: bugzilla-3.5.1~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d952ffa8c9f22b1c2c7930bc4e2673e72e51f5b;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/template/en/default/account/prefs/saved-searches.html.tmpl b/template/en/default/account/prefs/saved-searches.html.tmpl index 280b932ba8..f1286134bc 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 %]