From ca3f033decd241cd22992d10d753bb9919d828ba Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Sat, 13 Oct 2012 16:00:45 +0000 Subject: [PATCH] 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 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- .../en/default/attachment/createformcontents.html.tmpl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index e7e6d102392..df99320666e 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -8429 \ No newline at end of file +8430 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/template/en/default/attachment/createformcontents.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/attachment/createformcontents.html.tmpl index c8016841cb6..48e4f4af0a2 100644 --- a/mozilla/webtools/bugzilla/template/en/default/attachment/createformcontents.html.tmpl +++ b/mozilla/webtools/bugzilla/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)