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 --- template/en/default/attachment/list.html.tmpl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'template/en/default/attachment/list.html.tmpl') 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