From f0c7611262b3948e72e8a18a036569a78f3b51f2 Mon Sep 17 00:00:00 2001 From: "wurblzap%gmail.com" <> Date: Fri, 14 Jul 2006 03:07:57 +0000 Subject: Bug 69000: Permit a stored query to be marked "shared" and accessible by other users. Patch by Marc Schumann , r=vladd, a=myk --- .../default/account/prefs/saved-searches.html.tmpl | 88 +++++++++++++++++++++- 1 file changed, 86 insertions(+), 2 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 7f0052bba..16ec67876 100644 --- a/template/en/default/account/prefs/saved-searches.html.tmpl +++ b/template/en/default/account/prefs/saved-searches.html.tmpl @@ -19,6 +19,13 @@ # Contributor(s): Gervase Markham #%] +[%# INTERFACE: + # queries: list of the named queries visible to the user, both own and shared + # by others. Cleaned-up result of Bugzilla::User::queries. + # queryshare_groups: list of groups the user may share queries with + # (id, name). + #%] +

Your saved searches are as follows:

@@ -40,6 +47,17 @@ Show in Footer + [% querysharegroup_regexp = '^' _ Param('querysharegroup') _ '$' %] + [% may_share = user.groups.keys.grep($querysharegroup_regexp).size %] + [% IF may_share %] + + Share With + a Group + [% UNLESS queryshare_groups.size %] + (there are no groups you may share queries with) + [% END %] + + [% END %] My Bugs @@ -59,8 +77,12 @@ value="1" [% " checked" IF user.showmybugslink %]> + + — + [% FOREACH q = queries %] + [% NEXT UNLESS q.userid == user.id %] [% q.name FILTER html %] @@ -79,9 +101,71 @@ + + + [% IF queryshare_groups.size %] + + [% ELSE %] + — + [% END %] + + + [% END %] + +
+ +

You may use these searches saved and shared by others:

+ +
+ + + + + + + + [% found_shared_query = 0 %] + [% FOREACH q = queries %] + [% NEXT IF q.userid == user.id %] + [% found_shared_query = 1 %] + + + + + + + [% END %] + [% IF !found_shared_query %] + + [% END %] -- cgit v1.2.3-24-g4f1b
+ Search + + Shared By + + Run + + Show in + Footer +
[% q.name FILTER html %][% q.user.identity FILTER html %] + Run + + + [% " checked" IF q.link_in_footer %]> +
+ <None>