[%# 1.0@bugzilla.org %] [%# 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: # 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:

[% querysharegroup_regexp = '^' _ Param('querysharegroup') _ '$' %] [% may_share = user.groups.keys.grep($querysharegroup_regexp).size %] [% IF may_share %] [% END %] [% FOREACH q = queries %] [% NEXT UNLESS q.userid == user.id %] [% END %]
Search Run Edit Forget Show in Footer Share With a Group [% UNLESS queryshare_groups.size %] (there are no groups you may share queries with) [% END %]
My Bugs [% filtered_username = user.login FILTER url_quote %] Run    
[% q.name FILTER html %] Run Edit [% IF q.usedinwhine %] Remove from whining first [% ELSE %] Forget [% END %] [% IF queryshare_groups.size %] [% ELSE %] — [% 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 %]
Search Shared By Run Show in Footer
[% q.name FILTER html %] [% q.user.identity FILTER html %] Run
<None>