diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2010-04-19 21:25:01 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2010-04-19 21:25:01 +0200 |
commit | 702d430118ec7aaa70de10d30901dd3443875186 (patch) | |
tree | d78cf7b17ff225c3d8baecea4e7a1f598e2846e2 /template/en/default/attachment | |
parent | d26192f57f78ae55f51bfac72e4b275516acb940 (diff) | |
download | bugzilla-702d430118ec7aaa70de10d30901dd3443875186.tar.gz bugzilla-702d430118ec7aaa70de10d30901dd3443875186.tar.xz |
Bug 560215: maxattachmentsize = 0 means that you cannot attach any file to bugs
r=mkanat a=LpSolit
Diffstat (limited to 'template/en/default/attachment')
-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> |