From 80fc05854135e575e7811b55f521e8bb9855a2ee Mon Sep 17 00:00:00 2001 From: Dexter Morgan Date: Fri, 26 Nov 2010 14:56:29 +0000 Subject: Add custom template with identity support --- .../default/account/prefs/saved-searches.html.tmpl | 209 +++++++++++++++++++++ 1 file changed, 209 insertions(+) create mode 100644 template/en/default/account/prefs/saved-searches.html.tmpl (limited to 'template/en/default/account/prefs/saved-searches.html.tmpl') diff --git a/template/en/default/account/prefs/saved-searches.html.tmpl b/template/en/default/account/prefs/saved-searches.html.tmpl new file mode 100644 index 0000000..f128613 --- /dev/null +++ b/template/en/default/account/prefs/saved-searches.html.tmpl @@ -0,0 +1,209 @@ +[%# 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 url_quote %] + 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 %] -- cgit v1.2.1