summaryrefslogtreecommitdiffstats
path: root/extensions/Review/template/en/default/hook/attachment
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-07-18 09:07:57 +0200
committerByron Jones <bjones@mozilla.com>2013-07-18 09:07:57 +0200
commitcc20ecfa1b8c151690e8d12c8ad5c544fa1a4a5a (patch)
tree3202a2614139d143131fa5b900a928ec64ce6be3 /extensions/Review/template/en/default/hook/attachment
parent1551a42f3337482bd6aaa1493d987e05d704f128 (diff)
downloadbugzilla-cc20ecfa1b8c151690e8d12c8ad5c544fa1a4a5a.tar.gz
bugzilla-cc20ecfa1b8c151690e8d12c8ad5c544fa1a4a5a.tar.xz
Bug 804708: Add a 'Review' extension to customise the review flag for Mozilla's workflow (make requestee/reviewer mandatory, provide review suggestions, etc)
Diffstat (limited to 'extensions/Review/template/en/default/hook/attachment')
-rw-r--r--extensions/Review/template/en/default/hook/attachment/create-end.html.tmpl20
-rw-r--r--extensions/Review/template/en/default/hook/attachment/edit-end.html.tmpl15
2 files changed, 35 insertions, 0 deletions
diff --git a/extensions/Review/template/en/default/hook/attachment/create-end.html.tmpl b/extensions/Review/template/en/default/hook/attachment/create-end.html.tmpl
new file mode 100644
index 000000000..c8e2a68a1
--- /dev/null
+++ b/extensions/Review/template/en/default/hook/attachment/create-end.html.tmpl
@@ -0,0 +1,20 @@
+[%# This Source Code Form is subject to the terms of the Mozilla Public
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ #
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0.
+ #%]
+
+[% UNLESS bug %]
+ [% bug = attachment.bug %]
+[% END %]
+
+[% IF bug.product_obj.reviewer_required %]
+<script>
+ YAHOO.util.Event.onDOMReady(function() {
+ REVIEW.init_mandatory();
+ REVIEW.init_create_attachment();
+ });
+</script>
+[% END %]
diff --git a/extensions/Review/template/en/default/hook/attachment/edit-end.html.tmpl b/extensions/Review/template/en/default/hook/attachment/edit-end.html.tmpl
new file mode 100644
index 000000000..bc6230d1c
--- /dev/null
+++ b/extensions/Review/template/en/default/hook/attachment/edit-end.html.tmpl
@@ -0,0 +1,15 @@
+[%# This Source Code Form is subject to the terms of the Mozilla Public
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ #
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0.
+ #%]
+
+[% IF attachment.bug.product_obj.reviewer_required %]
+<script>
+YAHOO.util.Event.onDOMReady(function() {
+ REVIEW.init_mandatory();
+});
+</script>
+[% END %]