summaryrefslogtreecommitdiffstats
path: root/extensions/Review/template/en/default
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/Review/template/en/default')
-rw-r--r--extensions/Review/template/en/default/hook/account/prefs/account-field.html.tmpl26
-rw-r--r--extensions/Review/template/en/default/hook/global/header-start.html.tmpl4
-rw-r--r--extensions/Review/template/en/default/hook/global/setting-descs-settings.none.tmpl11
-rw-r--r--extensions/Review/template/en/default/hook/global/user-error-errors.html.tmpl5
4 files changed, 44 insertions, 2 deletions
diff --git a/extensions/Review/template/en/default/hook/account/prefs/account-field.html.tmpl b/extensions/Review/template/en/default/hook/account/prefs/account-field.html.tmpl
new file mode 100644
index 000000000..baf3a6b94
--- /dev/null
+++ b/extensions/Review/template/en/default/hook/account/prefs/account-field.html.tmpl
@@ -0,0 +1,26 @@
+[%# 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.
+ #%]
+
+<tr>
+ [%# this section is shared by both the needinfo and review extensions %]
+ [%# only show the label once %]
+ [% IF request_blocked_header %]
+ <td></td>
+ [% ELSE %]
+ [% request_blocked_header = 1 %]
+ <th align="right" valign="top">Request blocking:</th>
+ [% END %]
+ <td>
+ <input type="checkbox" id="block_reviews" name="block_reviews" value="1"
+ [% " checked" IF user.settings.block_reviews.value == "on" %]
+ >
+ <label for="block_reviews">
+ Block review and feedback requests
+ </label>
+ </td>
+</tr>
diff --git a/extensions/Review/template/en/default/hook/global/header-start.html.tmpl b/extensions/Review/template/en/default/hook/global/header-start.html.tmpl
index ff166ac4c..a1ced8108 100644
--- a/extensions/Review/template/en/default/hook/global/header-start.html.tmpl
+++ b/extensions/Review/template/en/default/hook/global/header-start.html.tmpl
@@ -24,12 +24,12 @@
[% IF bug %]
[%# create attachment %]
- [% mentors = bug.mentors %]
+ [% mentors = bug.mentors( exclude_review_blocked => 1 ) %]
[% product_obj = bug.product_obj %]
[% component_obj = bug.component_obj %]
[% ELSIF attachment.bug %]
[%# edit attachment %]
- [% mentors = attachment.bug.mentors %]
+ [% mentors = attachment.bug.mentors( exclude_review_blocked => 1 ) %]
[% product_obj = attachment.bug.product_obj %]
[% component_obj = attachment.bug.component_obj %]
[% ELSE %]
diff --git a/extensions/Review/template/en/default/hook/global/setting-descs-settings.none.tmpl b/extensions/Review/template/en/default/hook/global/setting-descs-settings.none.tmpl
new file mode 100644
index 000000000..f265aed10
--- /dev/null
+++ b/extensions/Review/template/en/default/hook/global/setting-descs-settings.none.tmpl
@@ -0,0 +1,11 @@
+[%# 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.
+ #%]
+
+[%
+ setting_descs.block_reviews = "Block review and feedback requests"
+%]
diff --git a/extensions/Review/template/en/default/hook/global/user-error-errors.html.tmpl b/extensions/Review/template/en/default/hook/global/user-error-errors.html.tmpl
index ca143cca3..4fcd47a68 100644
--- a/extensions/Review/template/en/default/hook/global/user-error-errors.html.tmpl
+++ b/extensions/Review/template/en/default/hook/global/user-error-errors.html.tmpl
@@ -23,4 +23,9 @@
[% title = "Parameters Required" %]
You may not search flag state activity without any search terms.
+[% ELSIF error == "reviews_blocked" %]
+ [% title = "Request Blocked" %]
+ [% user.identity FILTER html %] is not currently accepting
+ '[% flagtype FILTER html %]' requests.
+
[% END %]