From 6487c1803fa947f73c4667bb10f762a98487aa1b Mon Sep 17 00:00:00 2001
From: Jean-Philippe Lang
- <%= file_field_tag 'attachments[]', :size => 30 %>
- <%= file_field_tag 'attachments[]', :size => 30 %>
+ <%= file_field_tag 'attachments[]', :size => 30 %> (<%= l(:label_max_size) %>: <%= human_size(Attachment.max_size) %>) <%= submit_tag l(:button_add) %> <%= end_form_tag %> <% end %> diff --git a/app/views/projects/add_document.rhtml b/app/views/projects/add_document.rhtml index e788a7bc..37e0b7d6 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 %>
+<%= file_field_tag 'attachments[]', :size => 30 %> (<%= l(:label_max_size) %>: <%= human_size(Attachment.max_size) %>)-<%= file_field_tag 'attachments[]', :size => 30 %>
+<%= file_field_tag 'attachments[]', :size => 30 %> (<%= l(:label_max_size) %>: <%= human_size(Attachment.max_size) %>) <%= 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 b60f91a2..dfd1b314 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 %>
+<%= file_field_tag 'attachments[]', :size => 30 %> (<%= l(:label_max_size) %>: <%= human_size(Attachment.max_size) %>) diff --git a/config/config_custom.example.rb b/config/config_custom.example.rb index 689d9dae..b00e716b 100644 --- a/config/config_custom.example.rb +++ b/config/config_custom.example.rb @@ -63,3 +63,7 @@ # Textile formatting is automativaly disabled if RedCloth is not available # Set to true to manually disable. # $RDM_TEXTILE_DISABLED = true + +# Maximum size for attachments (in bytes) +# Default to 5 MB +# $RDM_ATTACHMENT_MAX_SIZE = 5*1024*1024 diff --git a/lang/de.yml b/lang/de.yml index 34fedc1e..03bbe18c 100644 --- a/lang/de.yml +++ b/lang/de.yml @@ -295,6 +295,7 @@ label_modified: geändert label_deleted: gelöscht label_latest_revision: Neueste Neuausgabe label_view_revisions: Die Neuausgaben ansehen +label_max_size: Maximale GröÃe button_login: Einloggen button_submit: Einreichen diff --git a/lang/en.yml b/lang/en.yml index b6734985..d41457d6 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -295,6 +295,7 @@ label_modified: modified label_deleted: deleted label_latest_revision: Latest revision label_view_revisions: View revisions +label_max_size: Maximum size button_login: Login button_submit: Submit diff --git a/lang/es.yml b/lang/es.yml index 7eb3fa9f..73ae4cec 100644 --- a/lang/es.yml +++ b/lang/es.yml @@ -295,6 +295,7 @@ label_modified: modificado label_deleted: suprimido label_latest_revision: La revisión más última label_view_revisions: Ver las revisiones +label_max_size: Tamaño máximo button_login: Conexión button_submit: Someter diff --git a/lang/fr.yml b/lang/fr.yml index 4b4b0492..e0e9d996 100644 --- a/lang/fr.yml +++ b/lang/fr.yml @@ -296,6 +296,7 @@ label_modified: modifié label_deleted: supprimé label_latest_revision: Dernière révision label_view_revisions: Voir les révisions +label_max_size: Taille maximale button_login: Connexion button_submit: Soumettre -- 2.11.0