diff options
Diffstat (limited to 'extensions/BMO/template/en/default/hook/bug_modal/attachments-warnings.html.tmpl')
-rw-r--r-- | extensions/BMO/template/en/default/hook/bug_modal/attachments-warnings.html.tmpl | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/extensions/BMO/template/en/default/hook/bug_modal/attachments-warnings.html.tmpl b/extensions/BMO/template/en/default/hook/bug_modal/attachments-warnings.html.tmpl index b00eabc1f..5242f47b4 100644 --- a/extensions/BMO/template/en/default/hook/bug_modal/attachments-warnings.html.tmpl +++ b/extensions/BMO/template/en/default/hook/bug_modal/attachments-warnings.html.tmpl @@ -7,10 +7,22 @@ #%] [% - RETURN UNLESS user.in_group('editbugs'); - RETURN UNLESS bug.attachments.size && bug.is_unassigned && bug.has_current_patch; + RETURN UNLESS user.in_group('editbugs') || bug.assigned_to.id == user.id; + RETURN UNLESS bug.attachments.size && bug.has_current_patch; %] -<div id="unassigned_with_patches"> - <img src="extensions/BMO/web/images/sign_warning.png" width="16" height="16"> - Unassigned [% terms.bug %] with patches attached -</div> + +[% 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"> + sec-approval required on patches before landing + </a> + </div> +[% END %] |