Bug 532478: When attaching a file to a bug, display the max size allowed for attachments

r/a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@264336 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org 2012-10-13 16:00:45 +00:00
parent 6c6e93ea81
commit ca3f033dec
2 changed files with 4 additions and 1 deletions

View File

@ -1 +1 @@
8429
8430

View File

@ -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">