From 3208ebbf96c52c8b62f92524dc92ce3a0c6b4048 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 3 Mar 2015 12:03:24 +0800 Subject: Bug 880552: Add links to socorro from the crash signatures in show_bug.cgi --- .../default/hook/bug/edit-custom_field.html.tmpl | 57 ++++++++++++++++++++-- 1 file changed, 54 insertions(+), 3 deletions(-) (limited to 'extensions/BMO/template/en') diff --git a/extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl b/extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl index 6e871f731..c11e6ea42 100644 --- a/extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl +++ b/extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl @@ -6,6 +6,57 @@ # defined by the Mozilla Public License, v. 2.0. #%] -[% IF field.name == 'cf_rank' %] - [% field.hidden = 1 %] -[% END %] +[% + IF field.name == 'cf_rank'; + field.hidden = 1; + RETURN; + END; +%] + +[% + IF field.name == 'cf_crash_signature'; + field.hidden = 1; + value = bug.cf_crash_signature; +%] + [%# lifted from bug/field.html.tmpl %] + + [% PROCESS "bug/field-label.html.tmpl" %] + +
+
+ (edit) +
+ [% IF split_cf_crash_signature.size %] + [% FOREACH sig = 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 %]
+ [% END %] +
+
+ [% INCLUDE global/textarea.html.tmpl + id = field.name name = field.name minrows = 4 maxrows = 8 + cols = 60 defaultcontent = value %] +
+ + + +[% + RETURN; + END; +%] -- cgit v1.2.3-24-g4f1b