From 3cbd960d0d477d8a7d3757afcac273a375544e45 Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Tue, 22 Jul 2003 01:07:59 +0000 Subject: 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 --- css/edit_bug.css | 1 + template/en/default/attachment/list.html.tmpl | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/css/edit_bug.css b/css/edit_bug.css index a836f7e4c..64fa4cd71 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 d64e65953..a1b31dad3 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 %]
-- cgit v1.2.3-24-g4f1b