summaryrefslogtreecommitdiffstats
path: root/extensions/Review/template/en/default
diff options
context:
space:
mode:
authorGervase Markham <gerv@gerv.net>2015-05-11 19:38:55 +0200
committerGervase Markham <gerv@gerv.net>2015-05-11 19:38:55 +0200
commit3afcaf37c3b679c68c6f0610bd861cb80722733d (patch)
tree3196e59c5a0d39c3783a790f6e3daffd0da0e912 /extensions/Review/template/en/default
parentb34fcddb0e8c135d4f2feb9686223fddd9a8e7df (diff)
downloadbugzilla-3afcaf37c3b679c68c6f0610bd861cb80722733d.tar.gz
bugzilla-3afcaf37c3b679c68c6f0610bd861cb80722733d.tar.xz
Bug 751862 - Make it so people inactive in last 60 days can't be asked for review and aren't suggested. r=glob
Diffstat (limited to 'extensions/Review/template/en/default')
-rw-r--r--extensions/Review/template/en/default/hook/global/header-start.html.tmpl1
-rw-r--r--extensions/Review/template/en/default/hook/global/user-error-errors.html.tmpl6
2 files changed, 7 insertions, 0 deletions
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 a1ced8108..8bc72ecdb 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
@@ -43,6 +43,7 @@
review_suggestions = {
_mentors: [
[% FOREACH u = mentors %]
+ [% NEXT IF NOT u.is_active %]
[% PROCESS reviewer %][% "," UNLESS loop.last %]
[% END %]
],
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 112751076..aafdb5445 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
@@ -10,6 +10,12 @@
[% title = "Reviewer Required" %]
You must provide a reviewer for review requests.
+[% ELSIF error == "reviewer_inactive" %]
+ [% title = "Reviewer Is Inactive" %]
+ You can't ask <em>[% reviewer.identity FILTER html %]</em> for a review
+ because they have not logged in to [% terms.Bugzilla %] within the last
+ [%+ timeout FILTER none %] days.
+
[% ELSIF error == "reviewer_suggestions_param_required" %]
[% title = "Parameter Required" %]
You must provide either a bug_id, or a product (and optionally a