From 92059de568ef17628928a6cf19d6fca3ee505f2b Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 28 Apr 2015 12:44:41 +0800 Subject: Bug 1149659: crash signature not linking to signature summary on socorro --- .../edit-custom_field-cf_crash_signature.html.tmpl | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 extensions/BMO/template/en/default/hook/bug_modal/edit-custom_field-cf_crash_signature.html.tmpl (limited to 'extensions/BMO/template/en/default') diff --git a/extensions/BMO/template/en/default/hook/bug_modal/edit-custom_field-cf_crash_signature.html.tmpl b/extensions/BMO/template/en/default/hook/bug_modal/edit-custom_field-cf_crash_signature.html.tmpl new file mode 100644 index 000000000..cd826ed8b --- /dev/null +++ b/extensions/BMO/template/en/default/hook/bug_modal/edit-custom_field-cf_crash_signature.html.tmpl @@ -0,0 +1,38 @@ +[%# 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. + #%] + +[% + rendered_custom_fields.push('cf_crash_signature'); + WRAPPER bug_modal/field.html.tmpl + field = field + field_type = field.type + hide_on_view = bug.${field.name} == "" || bug.${field.name} == "---"; +%] + [% + IF split_cf_crash_signature.size; + FOREACH sig IN split_cf_crash_signature; + "
"; + IF sig.match('^\[\@\s*') && sig.match('\s*\]$'); + sig = sig.replace('(^\[\@\s*|\s*\]$)', ''); + %] + + [@ [% sig FILTER html %] ] + + [% + ELSE; + sig FILTER html; + END; + "
"; + END; + ELSIF value; + %] + [% value FILTER html FILTER html_line_break %] + [% + END + %] +[% END %] -- cgit v1.2.3-24-g4f1b