blob: c11e6ea42d985214dc831c255087a18ac00502e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
[%# 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.
#%]
[%
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 %]
<tr>
[% PROCESS "bug/field-label.html.tmpl" %]
<td class="field_value" id="field_container_[% field.name FILTER html %]" colspan="2">
<div id="[% field.name FILTER html %]_edit_container" class="bz_default_hidden">
<div>
(<a href="#" id="[% field.name FILTER html %]_edit_action">edit</a>)
</div>
[% IF split_cf_crash_signature.size %]
[% FOREACH sig = split_cf_crash_signature %]
[% IF sig.match('^\[\@\s*') && sig.match('\s*\]$') %]
[% sig = sig.replace('(^\[\@\s*|\s*\]$)', '') %]
<a href="https://crash-stats.mozilla.com/report/list?signature=[% sig FILTER uri %]"
target="_blank">[@ [% sig FILTER html %] ]</a><br>
[% ELSE %]
[% sig FILTER html %]<br>
[% END %]
[% END %]
[% ELSIF value %]
<pre class="field_textarea_readonly">[% value FILTER html %]</pre>
[% END %]
</div>
<div id="[% field.name FILTER html %]_input">
[% INCLUDE global/textarea.html.tmpl
id = field.name name = field.name minrows = 4 maxrows = 8
cols = 60 defaultcontent = value %]
</div>
<script type="text/javascript">
hideEditableField('[% field.name FILTER js %]_edit_container',
'[% field.name FILTER js %]_input',
'[% field.name FILTER js %]_edit_action',
'[% field.name FILTER js %]',
'[% value FILTER js %]',
'',
true);
</script>
</td>
</tr>
[%
RETURN;
END;
%]
|