summaryrefslogtreecommitdiffstats
path: root/template/en/default/attachment
diff options
context:
space:
mode:
authormyk%mozilla.org <>2003-07-22 03:07:59 +0200
committermyk%mozilla.org <>2003-07-22 03:07:59 +0200
commit3cbd960d0d477d8a7d3757afcac273a375544e45 (patch)
tree2a88b816e5dc95daf962492d4a384fc06c6070bc /template/en/default/attachment
parent15c0c76706b274d7a3dadbebdfa18d5bd70bd80f (diff)
downloadbugzilla-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.tmpl12
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 %]&amp;action=enter">Create a New Attachment</a> (proposed patch, testcase, etc.)
</td>
- <td colspan="1">
- <a href="attachment.cgi?bugid=[% bugid %]&amp;action=viewall">View All</a>
- </td>
+ [% IF attachments.size %]
+ <td>
+ <a href="attachment.cgi?bugid=[% bugid %]&amp;action=viewall">View All</a>
+ </td>
+ [% ELSE %]
+ <td class="bz_disabled">
+ View All
+ </td>
+ [% END %]
</tr>
</table>
<br>