From: reed%reedloden.com <> Date: Wed, 24 Jan 2007 03:04:27 +0000 (+0000) Subject: Bug 367679 - "Usability changes to new attachment table" [p=reed r=LpSolit a=LpSolit] X-Git-Tag: bugzilla-2.23.4~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f89fdca1b49a873b89e8955ce1553677455ecf60;p=thirdparty%2Fbugzilla.git Bug 367679 - "Usability changes to new attachment table" [p=reed r=LpSolit a=LpSolit] --- diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl index 275e92df27..99f51064dc 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 fe19b42d8a..9a20608707 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' => [