diff options
author | Byron Jones <bjones@mozilla.com> | 2012-11-07 08:40:53 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-11-07 08:40:53 +0100 |
commit | 40f5156e2e047efb2d863181ae7afb02c460d313 (patch) | |
tree | 2c754cf75f59bbbadb81f43e5f031a17509b5a47 /extensions/ShadowBugs/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl | |
parent | 7cd9fd570d61e316e2398a8b9db274d200d73bc4 (diff) | |
download | bugzilla-40f5156e2e047efb2d863181ae7afb02c460d313.tar.gz bugzilla-40f5156e2e047efb2d863181ae7afb02c460d313.tar.xz |
Bug 801713: implement "bug shadowing" feature
Diffstat (limited to 'extensions/ShadowBugs/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl')
-rw-r--r-- | extensions/ShadowBugs/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/extensions/ShadowBugs/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl b/extensions/ShadowBugs/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl new file mode 100644 index 000000000..8e8327ef2 --- /dev/null +++ b/extensions/ShadowBugs/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl @@ -0,0 +1,27 @@ +[%# 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 IF Bugzilla.is_cf_shadow_bug_hidden(bug) %] +[% field = Bugzilla.process_cache.shadow_bug_field %] +[% shadowed_by = bug.related_bugs(field).pop %] +<tr> + [% IF shadowed_by && user.can_see_bug(shadowed_by) %] + <th class="field_label"> + [% field.reverse_desc FILTER html %]: + </th> + <td> + [% shadowed_by.id FILTER bug_link(shadowed_by, use_alias => 1) FILTER none %][% " " %] + </td> + [% ELSE %] + [% PROCESS bug/field.html.tmpl + value = bug.cf_shadow_bug + editable = bug.check_can_change_field(field.name, 0, 1) + no_tds = false + value_span = 2 %] + [% END %] +</tr> |