[%# 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 user.setting('mga_inline_history') == 'off' %] [% FOREACH activity = comment.inline_history %] [% IF activity.after %]
[% END %]
[% FOREACH change = activity.changes %] [% IF change.attachid AND field_descs.${change.fieldname}.match('^Attachment') %] [% field_descs.${change.fieldname}.replace('^Attachment', "Attachment ${change.attachid}") FILTER none %]: [% ELSIF activity.comment_id AND field_descs.${change.fieldname}.match('^Comment') %] [% comment_num = change.comment.count %] [% field_descs.${change.fieldname}.replace('^Comment', "Comment $comment_num") FILTER none %]: [% ELSE %] [% field_descs.${change.fieldname} FILTER html %]: [% END %] [% PROCESS format_field_value value = change.removed %] => [% PROCESS format_field_value value = change.added %]
[% END %] [% BLOCK format_field_value %] [% IF value.length %] [% IF change.fieldname == 'assigned_to' || change.fieldname == 'reporter' || change.fieldname == 'qa_contact' || change.fieldname == 'cc' || change.fieldname == 'flagtypes.name' %] [% display_value(change.fieldname, value) FILTER email FILTER html %] [% ELSIF change.fieldname == 'cf_cve' %] [%# Split long lists of CVE's on multiple lines %] [% display_value(change.fieldname, value.replace(',', ', ')) FILTER html FILTER html_line_break %] [% ELSE %] [% display_value(change.fieldname, value) FILTER html FILTER html_line_break %] [% END %] [% ELSE %] (none) [% END %] [% END %][% END %]