summaryrefslogtreecommitdiffstats
path: root/template/en/default/attachment
diff options
context:
space:
mode:
authorSunil Joshi <joshi_sunil@in.com>2012-10-13 17:46:36 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-10-13 17:46:36 +0200
commitae92fc16258923ee3ec8deaeeb453fbd0aaa56da (patch)
tree4c1a7a8c4b7584a37ec62fbf25f32db4a1960501 /template/en/default/attachment
parentaade844e708848c0b3efc7c7cb1ad49fc7728318 (diff)
downloadbugzilla-ae92fc16258923ee3ec8deaeeb453fbd0aaa56da.tar.gz
bugzilla-ae92fc16258923ee3ec8deaeeb453fbd0aaa56da.tar.xz
Bug 532478: When attaching a file to a bug, display the max size allowed for attachments
r/a=LpSolit
Diffstat (limited to 'template/en/default/attachment')
-rw-r--r--template/en/default/attachment/createformcontents.html.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/template/en/default/attachment/createformcontents.html.tmpl b/template/en/default/attachment/createformcontents.html.tmpl
index c8016841c..48e4f4af0 100644
--- a/template/en/default/attachment/createformcontents.html.tmpl
+++ b/template/en/default/attachment/createformcontents.html.tmpl
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
#%]
+[% max_local = Param('maxlocalattachment') * 1024 %]
+[% max_limit = Param('maxattachmentsize')> max_local ? Param('maxattachmentsize') : max_local %]
<tr class="attachment_data">
<th><label for="data">File</label>:</th>
<td>
@@ -14,6 +16,7 @@
javascript:TUI_toggle_class('attachment_data')"
>paste text as attachment</a>).<br>
<input type="file" id="data" name="data" size="50" onchange="DataFieldHandler()">
+ <br><em>(File size limit: [% max_limit FILTER html %] KB)</em>
</td>
</tr>
<tr class="attachment_text_field">