diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-06-18 22:48:21 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-06-18 22:48:21 +0200 |
commit | db2a5492739a143ff828bbf25b1c97ab1524a9b9 (patch) | |
tree | 5047b59069a9f21f4a45ce770d991fc53fcba245 /extensions/OldBugMove/template/en/default/hook/bug | |
parent | 7ae63b1e06f607ede3ed32829ac9316e4c657247 (diff) | |
download | bugzilla-db2a5492739a143ff828bbf25b1c97ab1524a9b9.tar.gz bugzilla-db2a5492739a143ff828bbf25b1c97ab1524a9b9.tar.xz |
Bug 556422: Move the existing bug-moving functionality into an extension
called OldBugMove.
r=dkl, a=mkanat
Diffstat (limited to 'extensions/OldBugMove/template/en/default/hook/bug')
-rw-r--r-- | extensions/OldBugMove/template/en/default/hook/bug/edit-after_comment_textarea.html.tmpl | 27 | ||||
-rw-r--r-- | extensions/OldBugMove/template/en/default/hook/bug/format_comment-type.txt.tmpl | 29 |
2 files changed, 56 insertions, 0 deletions
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 <mkanat@bugzilla.org> + #%] + +[% IF oldbugmove_user_is_mover(user) AND bug.resolution != 'MOVED' %] + <br> + <input type="submit" name="oldbugmove_[% bug.id FILTER html %]" + id="oldbugmove" + value="Move [% terms.Bug FILTER html %] to + [%= Param('move-to-url') FILTER html %]"> +[% 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 <mkanat@bugzilla.org> + #%] + +[% 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 %] |