diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-21 15:34:11 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-21 15:34:11 +0000 |
commit | 66afc8c054f2b1e7253d9e96d60622d6040bf48d (patch) | |
tree | 6022ebc6d124b2bb7b95691b2b7a3648c6925b01 /app/views/settings | |
parent | 2bd419f23b42dc08ad29ba9fc9ecdbfa003587f3 (diff) | |
download | redmine-66afc8c054f2b1e7253d9e96d60622d6040bf48d.tar.gz redmine-66afc8c054f2b1e7253d9e96d60622d6040bf48d.zip |
Adds a setting to limit the size of text attachments that can be displayed by the file viewer (default set to 512KB). Larger files are sent for download.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2503 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/settings')
-rw-r--r-- | app/views/settings/_general.rhtml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/settings/_general.rhtml b/app/views/settings/_general.rhtml index e78667154..b6e570ba4 100644 --- a/app/views/settings/_general.rhtml +++ b/app/views/settings/_general.rhtml @@ -33,6 +33,9 @@ <p><label><%= l(:setting_feeds_limit) %></label> <%= text_field_tag 'settings[feeds_limit]', Setting.feeds_limit, :size => 6 %></p> +<p><label><%= l(:setting_file_max_size_displayed) %></label> +<%= text_field_tag 'settings[setting_file_max_size_displayed]', Setting.setting_file_max_size_displayed, :size => 6 %> KB</p> + <p><label><%= l(:setting_diff_max_lines_displayed) %></label> <%= text_field_tag 'settings[diff_max_lines_displayed]', Setting.diff_max_lines_displayed, :size => 6 %></p> </div> |