diff options
author | myk%mozilla.org <> | 2003-07-22 03:07:59 +0200 |
---|---|---|
committer | myk%mozilla.org <> | 2003-07-22 03:07:59 +0200 |
commit | 3cbd960d0d477d8a7d3757afcac273a375544e45 (patch) | |
tree | 2a88b816e5dc95daf962492d4a384fc06c6070bc /template/en/default/attachment | |
parent | 15c0c76706b274d7a3dadbebdfa18d5bd70bd80f (diff) | |
download | bugzilla-3cbd960d0d477d8a7d3757afcac273a375544e45.tar.gz bugzilla-3cbd960d0d477d8a7d3757afcac273a375544e45.tar.xz |
Fix for bug 98147: disables "View All Attachments" link if there are no attachments to view.
Patch by Vlad Dascalu <jocuri@softhome.net>. Thanks Vlad!
r=myk, a=myk
Diffstat (limited to 'template/en/default/attachment')
-rw-r--r-- | template/en/default/attachment/list.html.tmpl | 12 |
1 files changed, 9 insertions, 3 deletions
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 @@ <td colspan="[% show_attachment_flags ? 4 : 3 %]"> <a href="attachment.cgi?bugid=[% bugid %]&action=enter">Create a New Attachment</a> (proposed patch, testcase, etc.) </td> - <td colspan="1"> - <a href="attachment.cgi?bugid=[% bugid %]&action=viewall">View All</a> - </td> + [% IF attachments.size %] + <td> + <a href="attachment.cgi?bugid=[% bugid %]&action=viewall">View All</a> + </td> + [% ELSE %] + <td class="bz_disabled"> + View All + </td> + [% END %] </tr> </table> <br> |