From ae92fc16258923ee3ec8deaeeb453fbd0aaa56da Mon Sep 17 00:00:00 2001 From: Sunil Joshi Date: Sat, 13 Oct 2012 17:46:36 +0200 Subject: Bug 532478: When attaching a file to a bug, display the max size allowed for attachments r/a=LpSolit --- template/en/default/attachment/createformcontents.html.tmpl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'template/en/default/attachment') 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 %] : @@ -14,6 +16,7 @@ javascript:TUI_toggle_class('attachment_data')" >paste text as attachment).
+
(File size limit: [% max_limit FILTER html %] KB) -- cgit v1.2.3-24-g4f1b