[%# 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. #%] [%# # bug: (bug object) the main bug object # active_attachments: array of active attachment objects # obsolete_attachments: array of obsolete attachment objects #%] [% FOREACH attachment IN bug.attachments %] [% NEXT IF attachment.isprivate && !(user.is_insider || attachment.attacher.id == user.id); attachment_rendered = 0; Hook.process("row"); NEXT IF attachment_rendered; %] [% END %]
[% activity_id = bug.find_activity_id_for_attachment(attachment) %] [% IF activity_id %] [% INCLUDE bug_modal/rel_time.html.tmpl ts=attachment.attached %] [% ELSE %] [% INCLUDE bug_modal/rel_time.html.tmpl ts=attachment.attached %] [% END %] [% INCLUDE bug_modal/user.html.tmpl u=attachment.attacher %]
[% IF attachment.datasize %] [%- attachment.datasize FILTER unitconvert %] [% ELSE %] (deleted) [% END %], [%+ attachment.ispatch ? "patch" : attachment.contenttype FILTER html -%]
[% FOREACH flag IN attachment.flags %]
[% INCLUDE bug_modal/user.html.tmpl u=flag.setter simple=1 %]: [% activity_id = bug.find_activity_id_for_flag(flag) %] [% IF activity_id %] [%+ flag.type.name FILTER html %][% flag.status FILTER none %] [% activity_id ? "" : "" %] [% IF flag.requestee %] [%+ INCLUDE bug_modal/user.html.tmpl u=flag.requestee simple=1 %] [% END %]
[% END %]
Details [% IF attachment.ispatch %] | Diff [% END %] [% Hook.process("action", "attachment/list.html.tmpl") %]
[% IF obsolete_attachments %] [% END %]
[%# BMO - attachment related warnings %] [% Hook.process("warnings") %]