From a6251f6fe464dbb0af5d930961406aeff253cc8a Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 24 Oct 2006 03:29:46 +0000 Subject: Bug 317409: Add an option to hide obsolete attachments - Patch by Frédéric Buclin r=bkor a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/attachment/list.html.tmpl | 37 +++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) (limited to 'template/en') diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl index a0445b16a..57840db03 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 %]
-- cgit v1.2.3-24-g4f1b