[%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or # implied. See the License for the specific language governing # rights and limitations under the License. # # The Original Code is the Bugzilla Bug Tracking System. # # The Initial Developer of the Original Code is Netscape Communications # Corporation. Portions created by Netscape are # Copyright (C) 1998 Netscape Communications Corporation. All # Rights Reserved. # # Contributor(s): Gervase Markham #%] [%# INTERFACE: # queryshare_groups: list of groups the user may share queries with # (id, name). # bless_group_ids: list of group ids the user may bless. #%] [% IF user.can_bless %] [% END %]

Your saved searches are as follows:

[% may_share = user.in_group(Param('querysharegroup')) && queryshare_groups.size %] [% IF may_share %] [% END %] [% IF may_share %] [% END %] [% FOREACH q = user.queries %] [% IF may_share %] [% END %] [% END %]
Search Run Edit Forget Show in Footer Share With a Group
My [% terms.Bugs %] [% filtered_username = user.login FILTER uri %] Run    
[% q.name FILTER html %] Run Edit [% IF q.used_in_whine %] Remove from whining first [% ELSE %] Forget [% END %] [% IF user.can_bless %] [% END %] [% IF q.shared_with_users %] (shared with [% q.shared_with_users FILTER html %] [%+ q.shared_with_users > 1 ? "users" : "user" %]) [% END %]
[% IF user.can_bless %]

Note that for every search that has the "Add to footer" selected, a link to the shared search is added to the footer of every user that is a direct member of the group at the time you click Submit Changes.

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

You may use these searches saved and shared by others:

[% FOREACH q = user.queries_available %] [% END %]
Search Shared By Shared To Run Edit Show in Footer
[% q.name FILTER html %] [% q.user.identity FILTER html %] [% q.shared_with_group.name FILTER html %] Run Edit
[% ELSE %]

No searches are shared with you by other users.

[% END %]