From 4827e4de822cbc33acbf66c1d5b4a392c5a3f90c Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 27 Feb 2007 00:21:05 +0000 Subject: =?UTF-8?q?Bug=20369982:=20Meaningless=20column=20in=20userprefs.c?= =?UTF-8?q?gi=20if=20the=20user=20cannot=20share=20his=20saved=20searches?= =?UTF-8?q?=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20Buclin=20=20r=3Dwicked=20a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/account/prefs/saved-searches.html.tmpl | 27 +++++++++------------- 1 file changed, 11 insertions(+), 16 deletions(-) (limited to 'template/en/default/account/prefs') diff --git a/template/en/default/account/prefs/saved-searches.html.tmpl b/template/en/default/account/prefs/saved-searches.html.tmpl index e4bbc51ae..399f31b17 100644 --- a/template/en/default/account/prefs/saved-searches.html.tmpl +++ b/template/en/default/account/prefs/saved-searches.html.tmpl @@ -45,15 +45,10 @@ Show in Footer - [% querysharegroup_regexp = '^' _ Param('querysharegroup') _ '$' %] - [% may_share = user.groups.keys.grep($querysharegroup_regexp).size %] + [% may_share = user.in_group(Param('querysharegroup')) && queryshare_groups.size %] [% IF may_share %] - Share With - a Group - [% UNLESS queryshare_groups.size %] - (there are no groups you may share queries with) - [% END %] + Share With a Group [% END %] @@ -75,9 +70,11 @@ value="1" [% " checked" IF user.showmybugslink %]> - - — - + [% IF may_share %] + + — + + [% END %] [% FOREACH q = user.queries %] @@ -104,8 +101,8 @@ alt="[% q.name FILTER html %]" [% " checked" IF q.link_in_footer %]> - - [% IF queryshare_groups.size %] + [% IF may_share %] + - [% ELSE %] - — - [% END %] - + + [% END %] [% END %] -- cgit v1.2.1