summaryrefslogtreecommitdiffstats
path: root/extensions/Review/template/en/default/hook/global/header-message.html.tmpl
blob: e4bb1c6874bd9545a6ad095c7a5763af5b4055d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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="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>