summaryrefslogtreecommitdiffstats
path: root/extensions/Review/web/js
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-08-07 23:52:05 +0200
committerByron Jones <bjones@mozilla.com>2013-08-07 23:52:05 +0200
commit84787ef596fca79e34630ad885b1a58ccb1f05d2 (patch)
tree36e3d9d80930ce9caa2b9ffb7ea63a4d00dffe9b /extensions/Review/web/js
parent23d694ce704a2ebcad27d668d9e519272913f2b1 (diff)
downloadbugzilla-84787ef596fca79e34630ad885b1a58ccb1f05d2.tar.gz
bugzilla-84787ef596fca79e34630ad885b1a58ccb1f05d2.tar.xz
Bug 902623: show the count of pending reviews next to suggested reviewers
Diffstat (limited to 'extensions/Review/web/js')
-rw-r--r--extensions/Review/web/js/review.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/extensions/Review/web/js/review.js b/extensions/Review/web/js/review.js
index 0dedd2410..6d0e24342 100644
--- a/extensions/Review/web/js/review.js
+++ b/extensions/Review/web/js/review.js
@@ -129,8 +129,14 @@ var REVIEW = {
add_menu_item: function(field_idx, user, is_mentor) {
var menu = REVIEW.fields[field_idx].menu;
+ var queue = '';
+ if (user.review_count == 0) {
+ queue = 'empty queue';
+ } else {
+ queue = user.review_count + ' review' + (user.review_count == 1 ? '' : 's') + ' in queue';
+ }
var item = menu.addItem(
- { text: user.identity, url: '#' + user.login }
+ { text: user.identity + ' (' + queue + ')', url: '#' + user.login }
);
if (is_mentor)
item.cfg.setProperty('classname', 'mentor');