diff options
author | reed%reedloden.com <> | 2007-01-24 03:04:27 +0000 |
---|---|---|
committer | reed%reedloden.com <> | 2007-01-24 03:04:27 +0000 |
commit | f89fdca1b49a873b89e8955ce1553677455ecf60 (patch) | |
tree | cb33e95ba9858d1dc9d22e9effd499107614e4e7 /template/en | |
parent | c751a9d8da14e4f6a4c3713e630dbc0912b9ab85 (diff) | |
download | bugs-f89fdca1b49a873b89e8955ce1553677455ecf60.tar bugs-f89fdca1b49a873b89e8955ce1553677455ecf60.tar.gz bugs-f89fdca1b49a873b89e8955ce1553677455ecf60.tar.bz2 bugs-f89fdca1b49a873b89e8955ce1553677455ecf60.tar.xz bugs-f89fdca1b49a873b89e8955ce1553677455ecf60.zip |
Bug 367679 - "Usability changes to new attachment table" [p=reed r=LpSolit a=LpSolit]
Diffstat (limited to 'template/en')
-rw-r--r-- | template/en/default/attachment/list.html.tmpl | 18 | ||||
-rw-r--r-- | 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 @@ </tr> [% 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 %] <tr class="[% "bz_private" IF attachment.isprivate %][%-%] [%+ "bz_tr_obsolete" IF attachment.isobsolete %]"> <td valign="top"> @@ -72,16 +74,16 @@ <a name="a[% count %]" href="attachment.cgi?id=[% attachment.id %]" title="View the content of the attachment"> [% END %] - [% attachment.description FILTER html FILTER obsolete(attachment.isobsolete) %] + <b>[% attachment.description FILTER html FILTER obsolete(attachment.isobsolete) %]</b> [% "</a>" IF attachment.datasize %] <span class="bz_attach_extra_info"> [% IF attachment.datasize %] ([% attachment.datasize FILTER unitconvert %], [% IF attachment.ispatch %] - <i>patch</i>) + patch) [% ELSIF attachment.isurl %] - <i>url</i>) + url) [% ELSE %] [%+ attachment.contenttype FILTER html %]) [% END %] @@ -104,7 +106,7 @@ [% IF show_attachment_flags %] <td class="bz_attach_flags" valign="top"> [% IF attachment.flags.size == 0 %] - <i>no flag</i> + <i>no flags</i> [% ELSE %] [% FOREACH flag = attachment.flags %] [% flag.setter.nick FILTER html %]: @@ -132,8 +134,8 @@ <td colspan="[% show_attachment_flags ? 3 : 2 %]"> [% IF attachments.size %] <span class="bz_attach_view_hide"> - [% IF has_obsolete_attachments %] - <a href="#a0" onClick="return toggle_display(this);">Hide Obsolete</a> | + [% IF obsolete_attachments %] + <a href="#a0" onClick="return toggle_display(this);">Hide Obsolete</a> ([% obsolete_attachments %]) | [% END %] <a href="attachment.cgi?bugid=[% bugid %]&action=viewall">View All</a> </span> 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' => [ |