From: myk%mozilla.org <> Date: Tue, 22 Jul 2003 01:07:59 +0000 (+0000) Subject: Fix for bug 98147: disables "View All Attachments" link if there are no attachments... X-Git-Tag: bugzilla-2.17.5~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cbd960d0d477d8a7d3757afcac273a375544e45;p=thirdparty%2Fbugzilla.git Fix for bug 98147: disables "View All Attachments" link if there are no attachments to view. Patch by Vlad Dascalu . Thanks Vlad! r=myk, a=myk --- diff --git a/css/edit_bug.css b/css/edit_bug.css index a836f7e4c3..64fa4cd71d 100644 --- a/css/edit_bug.css +++ b/css/edit_bug.css @@ -1,4 +1,5 @@ .bz_private { color: darkred ; background : #f3eeee ; } +.bz_disabled { color: #a0a0a0 ; } table#flags th, table#flags td { vertical-align: baseline; text-align: left; } diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl index d64e659535..a1b31dad3e 100644 --- a/template/en/default/attachment/list.html.tmpl +++ b/template/en/default/attachment/list.html.tmpl @@ -85,9 +85,15 @@ Create a New Attachment (proposed patch, testcase, etc.) - - View All - + [% IF attachments.size %] + + View All + + [% ELSE %] + + View All + + [% END %]