summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/hook/bug_modal/attachments-warnings.html.tmpl
blob: 8e94229ff6d77b6cb3c93a6af3e00cd6764fac99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[%# 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.in_group('editbugs') || bug.assigned_to.id == user.id;
  RETURN UNLESS bug.attachments.size && bug.has_current_patch;
%]

[% IF bug.is_unassigned %]
  <div class="attachment-warning">
    <img src="extensions/BMO/web/images/sign_warning.png" width="16" height="16">
    Unassigned [% terms.bug %] with patches attached
  </div>
[% END %]

[% IF bug.missing_sec_approval %]
  <div id="sec-approval-warning" class="attachment-warning">
    <img src="extensions/BMO/web/images/sign_warning.png" width="16" height="16">
    <a href="https://wiki.mozilla.org/Security/Bug_Approval_Process" target="_blank" rel="noopener noreferrer">
      sec-approval required on patches before landing
    </a>
  </div>
[% END %]