diff options
author | Sunil Joshi <joshi_sunil@in.com> | 2012-10-13 17:46:36 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-10-13 17:46:36 +0200 |
commit | ae92fc16258923ee3ec8deaeeb453fbd0aaa56da (patch) | |
tree | 4c1a7a8c4b7584a37ec62fbf25f32db4a1960501 /template/en/default/attachment | |
parent | aade844e708848c0b3efc7c7cb1ad49fc7728318 (diff) | |
download | bugs-ae92fc16258923ee3ec8deaeeb453fbd0aaa56da.tar bugs-ae92fc16258923ee3ec8deaeeb453fbd0aaa56da.tar.gz bugs-ae92fc16258923ee3ec8deaeeb453fbd0aaa56da.tar.bz2 bugs-ae92fc16258923ee3ec8deaeeb453fbd0aaa56da.tar.xz bugs-ae92fc16258923ee3ec8deaeeb453fbd0aaa56da.zip |
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.tmpl | 3 |
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"> |