From f89fdca1b49a873b89e8955ce1553677455ecf60 Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" <> Date: Wed, 24 Jan 2007 03:04:27 +0000 Subject: Bug 367679 - "Usability changes to new attachment table" [p=reed r=LpSolit a=LpSolit] --- template/en/default/attachment/list.html.tmpl | 18 ++++++++++-------- template/en/default/filterexceptions.pl | 1 + 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl index 275e92df2..99f51064d 100644 --- a/template/en/default/attachment/list.html.tmpl +++ b/template/en/default/attachment/list.html.tmpl @@ -59,12 +59,14 @@ [% count = 0 %] - [% has_obsolete_attachments = 0 %] + [% 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 %] + [% IF attachment.isobsolete %] + [% obsolete_attachments = obsolete_attachments + 1 %] + [% END %] @@ -72,16 +74,16 @@ [% END %] - [% attachment.description FILTER html FILTER obsolete(attachment.isobsolete) %] + [% attachment.description FILTER html FILTER obsolete(attachment.isobsolete) %] [% "" IF attachment.datasize %] [% IF attachment.datasize %] ([% attachment.datasize FILTER unitconvert %], [% IF attachment.ispatch %] - patch) + patch) [% ELSIF attachment.isurl %] - url) + url) [% ELSE %] [%+ attachment.contenttype FILTER html %]) [% END %] @@ -104,7 +106,7 @@ [% IF show_attachment_flags %] [% IF attachment.flags.size == 0 %] - no flag + no flags [% ELSE %] [% FOREACH flag = attachment.flags %] [% flag.setter.nick FILTER html %]: @@ -132,8 +134,8 @@ [% IF attachments.size %] - [% IF has_obsolete_attachments %] - Hide Obsolete | + [% IF obsolete_attachments %] + Hide Obsolete ([% obsolete_attachments %]) | [% END %] View All diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl index fe19b42d8..9a2060870 100644 --- a/template/en/default/filterexceptions.pl +++ b/template/en/default/filterexceptions.pl @@ -434,6 +434,7 @@ 'attachment.id', 'flag.status', 'bugid', + 'obsolete_attachments', ], 'attachment/show-multiple.html.tmpl' => [ -- cgit v1.2.3-65-gdbad