From: lpsolit%gmail.com <> Date: Tue, 24 Oct 2006 03:29:46 +0000 (+0000) Subject: Bug 317409: Add an option to hide obsolete attachments - Patch by Frédéric Buclin... X-Git-Tag: bugzilla-2.23.4~248 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6251f6fe464dbb0af5d930961406aeff253cc8a;p=thirdparty%2Fbugzilla.git Bug 317409: Add an option to hide obsolete attachments - Patch by Frédéric Buclin r=bkor a=myk --- diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl index a0445b16a2..57840db03b 100644 --- a/template/en/default/attachment/list.html.tmpl +++ b/template/en/default/attachment/list.html.tmpl @@ -17,10 +17,36 @@ # Rights Reserved. # # Contributor(s): Myk Melez + # Frédéric Buclin #%] + +
- +
@@ -33,10 +59,14 @@ [% count = 0 %] + [% has_obsolete_attachments = 0 %] + [% FOREACH attachment = attachments %] [% count = count + 1 %] [% IF !attachment.isprivate || user.is_insider || attachment.attacher.id == user.id %] - + [% SET has_obsolete_attachments = 1 IF attachment.isobsolete %] + @@ -99,6 +129,9 @@ [% IF attachments.size %] [% ELSE %]
Attachment TypeActions
[% attachment.description FILTER html FILTER obsolete(attachment.isobsolete) %] View All + [% IF has_obsolete_attachments %] +
Hide Obsolete + [% END %]