summaryrefslogtreecommitdiffstats
path: root/extensions/Review/template/en/default/hook/global/header-badge.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/Review/template/en/default/hook/global/header-badge.html.tmpl')
-rw-r--r--extensions/Review/template/en/default/hook/global/header-badge.html.tmpl23
1 files changed, 23 insertions, 0 deletions
diff --git a/extensions/Review/template/en/default/hook/global/header-badge.html.tmpl b/extensions/Review/template/en/default/hook/global/header-badge.html.tmpl
new file mode 100644
index 000000000..aca61561e
--- /dev/null
+++ b/extensions/Review/template/en/default/hook/global/header-badge.html.tmpl
@@ -0,0 +1,23 @@
+[%# 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.
+ #%]
+
+[% RETURN UNLESS
+ user.review_request_count
+ || user.feedback_request_count
+ || user.needinfo_request_count
+%]
+
+<a id="header-flags" class="badge"
+ href="request.cgi?action=queue&amp;requestee=[% user.login FILTER uri %]&amp;group=type"
+ title="Flags requested of you:
+ [%- " review (" _ user.review_request_count _ ")" IF user.review_request_count -%]
+ [%- " feedback (" _ user.feedback_request_count _ ")" IF user.feedback_request_count -%]
+ [%- " needinfo (" _ user.needinfo_request_count _ ")" IF user.needinfo_request_count -%]
+">
+ [%- user.review_request_count + user.feedback_request_count + user.needinfo_request_count ~%]
+</a>