Commit 3cbd960d authored by myk%mozilla.org's avatar myk%mozilla.org

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
parent 15c0c767
.bz_private { color: darkred ; background : #f3eeee ; } .bz_private { color: darkred ; background : #f3eeee ; }
.bz_disabled { color: #a0a0a0 ; }
table#flags th, table#flags td { vertical-align: baseline; text-align: left; } table#flags th, table#flags td { vertical-align: baseline; text-align: left; }
...@@ -85,9 +85,15 @@ ...@@ -85,9 +85,15 @@
<td colspan="[% show_attachment_flags ? 4 : 3 %]"> <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.) <a href="attachment.cgi?bugid=[% bugid %]&amp;action=enter">Create a New Attachment</a> (proposed patch, testcase, etc.)
</td> </td>
<td colspan="1"> [% IF attachments.size %]
<a href="attachment.cgi?bugid=[% bugid %]&amp;action=viewall">View All</a> <td>
</td> <a href="attachment.cgi?bugid=[% bugid %]&amp;action=viewall">View All</a>
</td>
[% ELSE %]
<td class="bz_disabled">
View All
</td>
[% END %]
</tr> </tr>
</table> </table>
<br> <br>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment