From db2a5492739a143ff828bbf25b1c97ab1524a9b9 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Fri, 18 Jun 2010 13:48:21 -0700 Subject: Bug 556422: Move the existing bug-moving functionality into an extension called OldBugMove. r=dkl, a=mkanat --- .../hook/bug/edit-after_comment_textarea.html.tmpl | 27 ++++++++++++++++++++ .../default/hook/bug/format_comment-type.txt.tmpl | 29 ++++++++++++++++++++++ .../user-error-auth_failure_action.html.tmpl | 23 +++++++++++++++++ .../hook/global/user-error-errors.html.tmpl | 29 ++++++++++++++++++++++ 4 files changed, 108 insertions(+) create mode 100644 extensions/OldBugMove/template/en/default/hook/bug/edit-after_comment_textarea.html.tmpl create mode 100644 extensions/OldBugMove/template/en/default/hook/bug/format_comment-type.txt.tmpl create mode 100644 extensions/OldBugMove/template/en/default/hook/global/user-error-auth_failure_action.html.tmpl create mode 100644 extensions/OldBugMove/template/en/default/hook/global/user-error-errors.html.tmpl (limited to 'extensions/OldBugMove/template/en/default/hook') diff --git a/extensions/OldBugMove/template/en/default/hook/bug/edit-after_comment_textarea.html.tmpl b/extensions/OldBugMove/template/en/default/hook/bug/edit-after_comment_textarea.html.tmpl new file mode 100644 index 000000000..71fe06590 --- /dev/null +++ b/extensions/OldBugMove/template/en/default/hook/bug/edit-after_comment_textarea.html.tmpl @@ -0,0 +1,27 @@ +[%# 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 Everything Solved, Inc. + # Portions created by the Initial Developer are Copyright (C) 2010 + # the Initial Developer. All Rights Reserved. + # + # Contributor(s): + # Max Kanat-Alexander + #%] + +[% IF oldbugmove_user_is_mover(user) AND bug.resolution != 'MOVED' %] +
+ +[% END %] diff --git a/extensions/OldBugMove/template/en/default/hook/bug/format_comment-type.txt.tmpl b/extensions/OldBugMove/template/en/default/hook/bug/format_comment-type.txt.tmpl new file mode 100644 index 000000000..1ce8e369d --- /dev/null +++ b/extensions/OldBugMove/template/en/default/hook/bug/format_comment-type.txt.tmpl @@ -0,0 +1,29 @@ +[%# 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 Everything Solved, Inc. + # Portions created by the Initial Developer are Copyright (C) 2010 + # the Initial Developer. All Rights Reserved. + # + # Contributor(s): + # Max Kanat-Alexander + #%] + +[% IF comment.type == constants.CMT_MOVED_TO %] +[% comment.body %] + +[%+ terms.Bug %] moved to [% Param("move-to-url") %]. +If the move succeeded, [% comment.extra_data FILTER email %] will receive a mail +containing the number of the new [% terms.bug %] in the other database. +If all went well, please paste in a link to the new [% terms.bug %]. +Otherwise, reopen this [% terms.bug %]. +[% END %] diff --git a/extensions/OldBugMove/template/en/default/hook/global/user-error-auth_failure_action.html.tmpl b/extensions/OldBugMove/template/en/default/hook/global/user-error-auth_failure_action.html.tmpl new file mode 100644 index 000000000..58500976b --- /dev/null +++ b/extensions/OldBugMove/template/en/default/hook/global/user-error-auth_failure_action.html.tmpl @@ -0,0 +1,23 @@ +[%# 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 Everything Solved, Inc. + # Portions created by the Initial Developer are Copyright (C) 2010 + # the Initial Developer. All Rights Reserved. + # + # Contributor(s): + # Max Kanat-Alexander + #%] + +[% IF action == "move" %] + move +[% END %] diff --git a/extensions/OldBugMove/template/en/default/hook/global/user-error-errors.html.tmpl b/extensions/OldBugMove/template/en/default/hook/global/user-error-errors.html.tmpl new file mode 100644 index 000000000..935117780 --- /dev/null +++ b/extensions/OldBugMove/template/en/default/hook/global/user-error-errors.html.tmpl @@ -0,0 +1,29 @@ +[%# 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 Everything Solved, Inc. + # Portions created by the Initial Developer are Copyright (C) 2010 + # the Initial Developer. All Rights Reserved. + # + # Contributor(s): + # Max Kanat-Alexander + #%] + +[% IF error == "oldbugmove_no_delete_moved" %] + As long as the OldBugMove extension is active, you cannot + delete the [%+ display_value("resolution", "MOVED") FILTER html %] + resolution. +[% ELSIF error == "oldbugmove_no_manual_move" %] + You cannot set the resolution of [% terms.abug %] to + [%+ display_value("resolution", "MOVED") FILTER html %] without + moving the [% terms.bug %]. +[% END %] -- cgit v1.2.3-24-g4f1b