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
This commit is contained in:
myk%mozilla.org 2003-07-21 18:08:01 +00:00
parent 74e4dbf9c7
commit 10aab2f0cd
2 changed files with 10 additions and 3 deletions

View File

@ -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; }

View File

@ -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>