Explorar el Código

Moves a few settings to a "Display" panel.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2275 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/0.9.0
Jean-Philippe Lang hace 15 años
padre
commit
99c2e98975
Se han modificado 34 ficheros con 56 adiciones y 18 borrados
  1. 1
    0
      app/helpers/settings_helper.rb
  2. 24
    0
      app/views/settings/_display.rhtml
  3. 0
    18
      app/views/settings/_general.rhtml
  4. 1
    0
      lang/bg.yml
  5. 1
    0
      lang/ca.yml
  6. 1
    0
      lang/cs.yml
  7. 1
    0
      lang/da.yml
  8. 1
    0
      lang/de.yml
  9. 1
    0
      lang/en.yml
  10. 1
    0
      lang/es.yml
  11. 1
    0
      lang/fi.yml
  12. 1
    0
      lang/fr.yml
  13. 1
    0
      lang/he.yml
  14. 1
    0
      lang/hu.yml
  15. 1
    0
      lang/it.yml
  16. 1
    0
      lang/ja.yml
  17. 1
    0
      lang/ko.yml
  18. 1
    0
      lang/lt.yml
  19. 1
    0
      lang/nl.yml
  20. 1
    0
      lang/no.yml
  21. 1
    0
      lang/pl.yml
  22. 1
    0
      lang/pt-br.yml
  23. 1
    0
      lang/pt.yml
  24. 1
    0
      lang/ro.yml
  25. 1
    0
      lang/ru.yml
  26. 1
    0
      lang/sk.yml
  27. 1
    0
      lang/sr.yml
  28. 1
    0
      lang/sv.yml
  29. 1
    0
      lang/th.yml
  30. 1
    0
      lang/tr.yml
  31. 1
    0
      lang/uk.yml
  32. 1
    0
      lang/vn.yml
  33. 1
    0
      lang/zh-tw.yml
  34. 1
    0
      lang/zh.yml

+ 1
- 0
app/helpers/settings_helper.rb Ver fichero

@@ -18,6 +18,7 @@
module SettingsHelper
def administration_settings_tabs
tabs = [{:name => 'general', :partial => 'settings/general', :label => :label_general},
{:name => 'display', :partial => 'settings/display', :label => :label_display},
{:name => 'authentication', :partial => 'settings/authentication', :label => :label_authentication},
{:name => 'projects', :partial => 'settings/projects', :label => :label_project_plural},
{:name => 'issues', :partial => 'settings/issues', :label => :label_issue_tracking},

+ 24
- 0
app/views/settings/_display.rhtml Ver fichero

@@ -0,0 +1,24 @@
<% form_tag({:action => 'edit', :tab => 'display'}) do %>

<div class="box tabular settings">
<p><label><%= l(:label_theme) %></label>
<%= select_tag 'settings[ui_theme]', options_for_select( ([[l(:label_default), '']] + Redmine::Themes.themes.collect {|t| [t.name, t.id]}), Setting.ui_theme) %></p>

<p><label><%= l(:setting_default_language) %></label>
<%= select_tag 'settings[default_language]', options_for_select( lang_options_for_select(false), Setting.default_language) %></p>

<p><label><%= l(:setting_date_format) %></label>
<%= select_tag 'settings[date_format]', options_for_select( [[l(:label_language_based), '']] + Setting::DATE_FORMATS.collect {|f| [Date.today.strftime(f), f]}, Setting.date_format) %></p>

<p><label><%= l(:setting_time_format) %></label>
<%= select_tag 'settings[time_format]', options_for_select( [[l(:label_language_based), '']] + Setting::TIME_FORMATS.collect {|f| [Time.now.strftime(f), f]}, Setting.time_format) %></p>

<p><label><%= l(:setting_user_format) %></label>
<%= select_tag 'settings[user_format]', options_for_select( @options[:user_format], Setting.user_format.to_s ) %></p>

<p><label><%= l(:setting_gravatar_enabled) %></label>
<%= check_box_tag 'settings[gravatar_enabled]', 1, Setting.gravatar_enabled? %><%= hidden_field_tag 'settings[gravatar_enabled]', 0 %></p>
</div>

<%= submit_tag l(:button_save) %>
<% end %>

+ 0
- 18
app/views/settings/_general.rhtml Ver fichero

@@ -8,21 +8,6 @@
<%= text_area_tag 'settings[welcome_text]', Setting.welcome_text, :cols => 60, :rows => 5, :class => 'wiki-edit' %></p>
<%= wikitoolbar_for 'settings[welcome_text]' %>

<p><label><%= l(:label_theme) %></label>
<%= select_tag 'settings[ui_theme]', options_for_select( ([[l(:label_default), '']] + Redmine::Themes.themes.collect {|t| [t.name, t.id]}), Setting.ui_theme) %></p>

<p><label><%= l(:setting_default_language) %></label>
<%= select_tag 'settings[default_language]', options_for_select( lang_options_for_select(false), Setting.default_language) %></p>

<p><label><%= l(:setting_date_format) %></label>
<%= select_tag 'settings[date_format]', options_for_select( [[l(:label_language_based), '']] + Setting::DATE_FORMATS.collect {|f| [Date.today.strftime(f), f]}, Setting.date_format) %></p>

<p><label><%= l(:setting_time_format) %></label>
<%= select_tag 'settings[time_format]', options_for_select( [[l(:label_language_based), '']] + Setting::TIME_FORMATS.collect {|f| [Time.now.strftime(f), f]}, Setting.time_format) %></p>

<p><label><%= l(:setting_user_format) %></label>
<%= select_tag 'settings[user_format]', options_for_select( @options[:user_format], Setting.user_format.to_s ) %></p>

<p><label><%= l(:setting_attachment_max_size) %></label>
<%= text_field_tag 'settings[attachment_max_size]', Setting.attachment_max_size, :size => 6 %> KB</p>

@@ -50,9 +35,6 @@

<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>

<p><label><%= l(:setting_gravatar_enabled) %></label>
<%= check_box_tag 'settings[gravatar_enabled]', 1, Setting.gravatar_enabled? %><%= hidden_field_tag 'settings[gravatar_enabled]', 0 %></p>
</div>

<%= submit_tag l(:button_save) %>

+ 1
- 0
lang/bg.yml Ver fichero

@@ -700,3 +700,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/ca.yml Ver fichero

@@ -701,3 +701,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/cs.yml Ver fichero

@@ -705,3 +705,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/da.yml Ver fichero

@@ -701,3 +701,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/de.yml Ver fichero

@@ -702,3 +702,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/en.yml Ver fichero

@@ -584,6 +584,7 @@ label_incoming_emails: Incoming emails
label_generate_key: Generate a key
label_issue_watchers: Watchers
label_example: Example
label_display: Display

button_login: Login
button_submit: Submit

+ 1
- 0
lang/es.yml Ver fichero

@@ -685,3 +685,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/fi.yml Ver fichero

@@ -700,3 +700,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/fr.yml Ver fichero

@@ -584,6 +584,7 @@ label_incoming_emails: Emails entrants
label_generate_key: Générer une clé
label_issue_watchers: Observateurs
label_example: Exemple
label_display: Affichage

button_login: Connexion
button_submit: Soumettre

+ 1
- 0
lang/he.yml Ver fichero

@@ -700,3 +700,4 @@ text_diff_truncated: '... This diff was truncated because it exceeds the maximum
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/hu.yml Ver fichero

@@ -701,3 +701,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/it.yml Ver fichero

@@ -700,3 +700,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/ja.yml Ver fichero

@@ -701,3 +701,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/ko.yml Ver fichero

@@ -700,3 +700,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/lt.yml Ver fichero

@@ -702,3 +702,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/nl.yml Ver fichero

@@ -702,3 +702,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/no.yml Ver fichero

@@ -701,3 +701,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/pl.yml Ver fichero

@@ -719,3 +719,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/pt-br.yml Ver fichero

@@ -701,3 +701,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/pt.yml Ver fichero

@@ -702,3 +702,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/ro.yml Ver fichero

@@ -700,3 +700,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/ru.yml Ver fichero

@@ -734,3 +734,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/sk.yml Ver fichero

@@ -706,3 +706,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/sr.yml Ver fichero

@@ -701,3 +701,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/sv.yml Ver fichero

@@ -701,3 +701,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/th.yml Ver fichero

@@ -703,3 +703,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/tr.yml Ver fichero

@@ -701,3 +701,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/uk.yml Ver fichero

@@ -702,3 +702,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/vn.yml Ver fichero

@@ -703,3 +703,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/zh-tw.yml Ver fichero

@@ -702,3 +702,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

+ 1
- 0
lang/zh.yml Ver fichero

@@ -702,3 +702,4 @@ text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
button_create_and_continue: Create and continue
text_custom_field_possible_values_info: 'One line for each value'
label_display: Display

Cargando…
Cancelar
Guardar