[%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or # implied. See the License for the specific language governing # rights and limitations under the License. # # The Original Code is the Bugzilla Bug Tracking System. # # The Initial Developer of the Original Code is Netscape Communications # Corporation. Portions created by Netscape are # Copyright (C) 1998 Netscape Communications Corporation. All # Rights Reserved. # # Contributor(s): Myk Melez # Frédéric Buclin #%] [% RETURN UNLESS attachments.size || Param("maxattachmentsize") || Param("maxlocalattachment") %]
[% count = 0 %] [% obsolete_attachments = 0 %] [% FOREACH attachment = attachments %] [% count = count + 1 %] [% IF !attachment.isprivate || user.is_insider || attachment.attacher.id == user.id %] [% IF attachment.isobsolete %] [% obsolete_attachments = obsolete_attachments + 1 %] [% END %] [% IF show_attachment_flags %] [% END %] [% END %] [% END %]
Attachments
[% IF attachment.datasize %] [% END %] [% attachment.description FILTER html FILTER obsolete(attachment.isobsolete) %] [% "" IF attachment.datasize %] [% IF attachment.datasize %] ([% attachment.datasize FILTER unitconvert %], [% IF attachment.ispatch %] patch) [% ELSE %] [%+ attachment.contenttype FILTER html %]) [% END %] [% ELSE %] (deleted) [% END %]
[%- attachment.attached FILTER time %], [% INCLUDE global/user.html.tmpl who = attachment.attacher %]
[% IF attachment.flags.size == 0 %] no flags [% ELSE %] [% FOREACH flag = attachment.flags %] [% IF user.id %] [% flag.setter.nick FILTER html %]: [% ELSIF flag.setter.name %] [% flag.setter.nick FILTER html %]: [% ELSE %] [% flag.setter.nick FILTER html %]: [% END %] [%+ flag.type.name FILTER html FILTER no_break %][% flag.status %] [%+ IF flag.status == "?" && flag.requestee %] [% IF user.id %] ([% flag.requestee.nick FILTER html %]) [% ELSIF flag.requestee.name %] ([% flag.requestee.nick FILTER html %]) [% ELSE %] ([% flag.requestee.nick FILTER html %]) [% END %] [% END %]
[% END %] [% END %]
Details [% IF attachment.ispatch && feature_enabled('patch_viewer') %] | Diff [% END %] [% Hook.process("action") %]