diff options
author | Byron Jones <glob@mozilla.com> | 2015-05-22 07:33:40 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-05-22 07:33:40 +0200 |
commit | 0677733f0afbf6e4b5b414e8ae928dea34bff893 (patch) | |
tree | 8f836f9da7745f0bbc25f8ecd70cebe26d054cba /extensions/BMO/template/en/default | |
parent | b09be15c170b39ec2c1553efcfd8f795e4847ad5 (diff) | |
download | bugzilla-0677733f0afbf6e4b5b414e8ae928dea34bff893.tar.gz bugzilla-0677733f0afbf6e4b5b414e8ae928dea34bff893.tar.xz |
Bug 1135164: display a warning on show_bug when an unassigned bug has a patch attached
Diffstat (limited to 'extensions/BMO/template/en/default')
-rw-r--r-- | extensions/BMO/template/en/default/hook/attachment/list-warnings.html.tmpl | 18 | ||||
-rw-r--r-- | extensions/BMO/template/en/default/hook/bug_modal/attachments-warnings.html.tmpl | 16 |
2 files changed, 34 insertions, 0 deletions
diff --git a/extensions/BMO/template/en/default/hook/attachment/list-warnings.html.tmpl b/extensions/BMO/template/en/default/hook/attachment/list-warnings.html.tmpl new file mode 100644 index 000000000..11998e12f --- /dev/null +++ b/extensions/BMO/template/en/default/hook/attachment/list-warnings.html.tmpl @@ -0,0 +1,18 @@ +[%# 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'); + RETURN UNLESS bug.attachments.size && bug.is_unassigned && bug.has_patch; +%] +<tr class="bz_attach_footer"> + <td colspan="[% show_attachment_flags ? 3 : 2 %]" id="unassigned_with_patches"> + <img src="extensions/BMO/web/images/sign_warning.png" width="16" height="16"> + Unassigned [% terms.bug %] with patches attached + </td> +</tr> 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 new file mode 100644 index 000000000..ca2a5a58c --- /dev/null +++ b/extensions/BMO/template/en/default/hook/bug_modal/attachments-warnings.html.tmpl @@ -0,0 +1,16 @@ +[%# 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'); + RETURN UNLESS bug.attachments.size && bug.is_unassigned && bug.has_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> |