diff options
Diffstat (limited to 'template/en/default/attachment/list.html.tmpl')
-rw-r--r-- | template/en/default/attachment/list.html.tmpl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl index 53f20f236..89eef1836 100644 --- a/template/en/default/attachment/list.html.tmpl +++ b/template/en/default/attachment/list.html.tmpl @@ -19,6 +19,8 @@ # Frédéric Buclin <LpSolit@gmail.com> #%] +[% RETURN UNLESS attachments.size || Param("maxattachmentsize") %] + <script type="text/javascript"> <!-- function toggle_display(link) { @@ -155,8 +157,10 @@ function toggle_display(link) { [% END %] </span> [% END %] - <a href="attachment.cgi?bugid=[% bugid %]&action=enter">Add an attachment</a> - (proposed patch, testcase, etc.) + [% IF Param("maxattachmentsize") %] + <a href="attachment.cgi?bugid=[% bugid %]&action=enter">Add an attachment</a> + (proposed patch, testcase, etc.) + [% END %] </td> </tr> </table> |