From 1879703e14d3e19803997e5f5e746d25c78faf71 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 21 Jul 2007 15:59:23 +0000 Subject: Bug 365890: Searches shared by users with bless rights are in the footer by default, with no warning - Patch by Teemu Mannermaa r/a=LpSolit --- template/en/default/account/prefs/prefs.html.tmpl | 1 + .../default/account/prefs/saved-searches.html.tmpl | 33 +++++++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) (limited to 'template/en/default/account') diff --git a/template/en/default/account/prefs/prefs.html.tmpl b/template/en/default/account/prefs/prefs.html.tmpl index da1b489e8..eada10557 100644 --- a/template/en/default/account/prefs/prefs.html.tmpl +++ b/template/en/default/account/prefs/prefs.html.tmpl @@ -41,6 +41,7 @@ title = "User Preferences" subheader = filtered_login style_urls = ['skins/standard/admin.css'] + javascript_urls = ['js/util.js'] %] [% tabs = [{ name => "settings", label => "General Preferences", diff --git a/template/en/default/account/prefs/saved-searches.html.tmpl b/template/en/default/account/prefs/saved-searches.html.tmpl index 2e5c8eac6..173933d00 100644 --- a/template/en/default/account/prefs/saved-searches.html.tmpl +++ b/template/en/default/account/prefs/saved-searches.html.tmpl @@ -22,8 +22,25 @@ [%# 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:

@@ -103,7 +120,8 @@ [% IF may_share %] - [% FOREACH group = queryshare_groups %] [% 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" %]) @@ -121,6 +147,11 @@ [% 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 %]

You may use these searches saved and shared by others:

-- cgit v1.2.3-24-g4f1b