From a6251f6fe464dbb0af5d930961406aeff253cc8a Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 24 Oct 2006 03:29:46 +0000 Subject: =?UTF-8?q?Bug=20317409:=20Add=20an=20option=20to=20hide=20obsolet?= =?UTF-8?q?e=20attachments=20-=20Patch=20by=20Fr=C3=A9d=C3=A9ric=20Buclin?= =?UTF-8?q?=20=20r=3Dbkor=20a=3Dmyk?= 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') 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.1