From 383e47ca9ec03a821519474555408c6e78152a7c Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 26 Oct 2005 00:55:02 +0000 Subject: Bug 313020: Implement the ability to add individual bugs to saved searches - Patch by Frédéric Buclin r=joel a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../en/default/global/per-bug-queries.html.tmpl | 40 ++++++++++++++++++++++ template/en/default/global/setting-descs.none.tmpl | 3 +- template/en/default/global/useful-links.html.tmpl | 4 +++ template/en/default/global/user-error.html.tmpl | 4 +++ 4 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 template/en/default/global/per-bug-queries.html.tmpl (limited to 'template/en/default/global') diff --git a/template/en/default/global/per-bug-queries.html.tmpl b/template/en/default/global/per-bug-queries.html.tmpl new file mode 100644 index 000000000..537ed01e4 --- /dev/null +++ b/template/en/default/global/per-bug-queries.html.tmpl @@ -0,0 +1,40 @@ +[%# 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. + # + # Contributor(s): Frédéric Buclin + #%] + +[% IF user.id && user.settings.per_bug_queries.value == "on" %] + +[% END %] diff --git a/template/en/default/global/setting-descs.none.tmpl b/template/en/default/global/setting-descs.none.tmpl index 9957cf6a4..3ca7fe3f3 100644 --- a/template/en/default/global/setting-descs.none.tmpl +++ b/template/en/default/global/setting-descs.none.tmpl @@ -27,7 +27,8 @@ "newest_to_oldest_desc_first" => "Newest to Oldest, but keep Description at the top", "off" => "Off", "oldest_to_newest" => "Oldest to Newest", - "on" => "On" + "on" => "On", + "per_bug_queries" => "Add individual $terms.bugs to saved searches", "post_bug_submit_action" => "After changing $terms.abug", "next_bug" => "Show next $terms.bug in my list", "same_bug" => "Show the updated $terms.bug", diff --git a/template/en/default/global/useful-links.html.tmpl b/template/en/default/global/useful-links.html.tmpl index ef7f3d19f..b2e598163 100644 --- a/template/en/default/global/useful-links.html.tmpl +++ b/template/en/default/global/useful-links.html.tmpl @@ -134,6 +134,10 @@ + [%# Individual bugs addition %] + + [% PROCESS "global/per-bug-queries.html.tmpl" %] + [%# Sections of links to more things users can do on this installation. %] [% Hook.process("end") %] diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index b1c8e7c91..299cf2d2b 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -866,6 +866,10 @@ [% title = BLOCK %]No [% terms.Bugs %] Chosen[% END %] You apparently didn't choose any [% terms.bugs %] to modify. + [% ELSIF error == "no_bug_ids" %] + [% title = BLOCK %]No [% terms.Bugs %] Chosen[% END %] + You didn't choose any [% terms.bugs %] to add to the saved search. + [% ELSIF error == "no_component_change_for_multiple_products" %] [% title = "Action Not Permitted" %] You cannot change the component for a list of [% terms.bugs %] covering more than -- cgit v1.2.3-24-g4f1b