From 0b4d4db131304eac84dc90b289a95db3410a2bfe Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 21 Jan 2007 11:50:22 +0000 Subject: settings are now stored in the database (config_custom.rb no more used) and editable through the application in: Admin -> Settings git-svn-id: http://redmine.rubyforge.org/svn/trunk@167 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/add_document.rhtml | 2 +- app/views/projects/add_file.rhtml | 2 +- app/views/projects/add_issue.rhtml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'app/views/projects') diff --git a/app/views/projects/add_document.rhtml b/app/views/projects/add_document.rhtml index b570eabbd..57a62756b 100644 --- a/app/views/projects/add_document.rhtml +++ b/app/views/projects/add_document.rhtml @@ -6,7 +6,7 @@

-<%= file_field_tag 'attachments[]', :size => 30 %> (<%= l(:label_max_size) %>: <%= human_size(Attachment.max_size) %>)

+<%= file_field_tag 'attachments[]', :size => 30 %> (<%= l(:label_max_size) %>: <%= human_size(Setting.attachment_max_size.to_i.kilobytes) %>)

<%= submit_tag l(:button_create) %> diff --git a/app/views/projects/add_file.rhtml b/app/views/projects/add_file.rhtml index baffbe8e8..6efc1d2c5 100644 --- a/app/views/projects/add_file.rhtml +++ b/app/views/projects/add_file.rhtml @@ -9,7 +9,7 @@

-<%= file_field_tag 'attachments[]', :size => 30 %> (<%= l(:label_max_size) %>: <%= human_size(Attachment.max_size) %>)

+<%= file_field_tag 'attachments[]', :size => 30 %> (<%= l(:label_max_size) %>: <%= human_size(Setting.attachment_max_size.to_i.kilobytes) %>)

<%= submit_tag l(:button_add) %> <%= end_form_tag %> \ No newline at end of file diff --git a/app/views/projects/add_issue.rhtml b/app/views/projects/add_issue.rhtml index 951b53bb9..fd463b5b4 100644 --- a/app/views/projects/add_issue.rhtml +++ b/app/views/projects/add_issue.rhtml @@ -27,7 +27,7 @@

-<%= file_field_tag 'attachments[]', :size => 30 %> (<%= l(:label_max_size) %>: <%= human_size(Attachment.max_size) %>)

+<%= file_field_tag 'attachments[]', :size => 30 %> (<%= l(:label_max_size) %>: <%= human_size(Setting.attachment_max_size.to_i.kilobytes) %>)

@@ -35,7 +35,7 @@ <%= submit_tag l(:button_create) %> <% end %> -<% unless $RDM_TEXTILE_DISABLED %> +<% if Setting.text_formatting == 'textile' %> <%= javascript_include_tag 'jstoolbar' %>