Revision 912:5e80956cc792 app/views/settings
| app/views/settings/_authentication.html.erb | ||
|---|---|---|
| 1 |
<% form_tag({:action => 'edit', :tab => 'authentication'}) do %>
|
|
| 2 |
|
|
| 3 |
<div class="box tabular settings"> |
|
| 4 |
<p><%= setting_check_box :login_required %></p> |
|
| 5 |
|
|
| 6 |
<p><%= setting_select :autologin, [[l(:label_disabled), 0]] + [1, 7, 30, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), days.to_s]} %></p>
|
|
| 7 |
|
|
| 8 |
<p><%= setting_select :self_registration, [[l(:label_disabled), "0"], |
|
| 9 |
[l(:label_registration_activation_by_email), "1"], |
|
| 10 |
[l(:label_registration_manual_activation), "2"], |
|
| 11 |
[l(:label_registration_automatic_activation), "3"]] %></p> |
|
| 12 |
|
|
| 13 |
<p><%= setting_text_field :password_min_length, :size => 6 %></p> |
|
| 14 |
|
|
| 15 |
<p><%= setting_check_box :lost_password, :label => :label_password_lost %></p> |
|
| 16 |
|
|
| 17 |
<p><%= setting_check_box :openid, :disabled => !Object.const_defined?(:OpenID) %></p> |
|
| 18 |
|
|
| 19 |
<p><%= setting_check_box :rest_api_enabled %></p> |
|
| 20 |
</div> |
|
| 21 |
|
|
| 22 |
<%= submit_tag l(:button_save) %> |
|
| 23 |
<% end %> |
|
| app/views/settings/_authentication.rhtml | ||
|---|---|---|
| 1 |
<% form_tag({:action => 'edit', :tab => 'authentication'}) do %>
|
|
| 2 |
|
|
| 3 |
<div class="box tabular settings"> |
|
| 4 |
<p><%= setting_check_box :login_required %></p> |
|
| 5 |
|
|
| 6 |
<p><%= setting_select :autologin, [[l(:label_disabled), 0]] + [1, 7, 30, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), days.to_s]} %></p>
|
|
| 7 |
|
|
| 8 |
<p><%= setting_select :self_registration, [[l(:label_disabled), "0"], |
|
| 9 |
[l(:label_registration_activation_by_email), "1"], |
|
| 10 |
[l(:label_registration_manual_activation), "2"], |
|
| 11 |
[l(:label_registration_automatic_activation), "3"]] %></p> |
|
| 12 |
|
|
| 13 |
<p><%= setting_text_field :password_min_length, :size => 6 %></p> |
|
| 14 |
|
|
| 15 |
<p><%= setting_check_box :lost_password, :label => :label_password_lost %></p> |
|
| 16 |
|
|
| 17 |
<p><%= setting_check_box :openid, :disabled => !Object.const_defined?(:OpenID) %></p> |
|
| 18 |
|
|
| 19 |
<p><%= setting_check_box :rest_api_enabled %></p> |
|
| 20 |
</div> |
|
| 21 |
|
|
| 22 |
<div style="float:right;"> |
|
| 23 |
<%= link_to l(:label_ldap_authentication), {:controller => 'ldap_auth_sources', :action => 'index'}, :class => 'icon icon-server-authentication' %>
|
|
| 24 |
</div> |
|
| 25 |
|
|
| 26 |
<%= submit_tag l(:button_save) %> |
|
| 27 |
<% end %> |
|
| app/views/settings/_display.html.erb | ||
|---|---|---|
| 1 |
<% form_tag({:action => 'edit', :tab => 'display'}) do %>
|
|
| 2 |
|
|
| 3 |
<div class="box tabular settings"> |
|
| 4 |
<p><%= setting_select :ui_theme, Redmine::Themes.themes.collect {|t| [t.name, t.id]}, :blank => :label_default, :label => :label_theme %></p>
|
|
| 5 |
|
|
| 6 |
<p><%= setting_select :default_language, lang_options_for_select(false) %></p> |
|
| 7 |
|
|
| 8 |
<p><%= setting_select :start_of_week, [[day_name(1),'1'], [day_name(6),'6'], [day_name(7),'7']], :blank => :label_language_based %></p> |
|
| 9 |
|
|
| 10 |
<p><%= setting_select :date_format, Setting::DATE_FORMATS.collect {|f| [Date.today.strftime(f), f]}, :blank => :label_language_based %></p>
|
|
| 11 |
|
|
| 12 |
<p><%= setting_select :time_format, Setting::TIME_FORMATS.collect {|f| [Time.now.strftime(f), f]}, :blank => :label_language_based %></p>
|
|
| 13 |
|
|
| 14 |
<p><%= setting_select :user_format, @options[:user_format] %></p> |
|
| 15 |
|
|
| 16 |
<p><%= setting_check_box :gravatar_enabled %></p> |
|
| 17 |
|
|
| 18 |
<p><%= setting_select :gravatar_default, [["Wavatars", 'wavatar'], ["Identicons", 'identicon'], ["Monster ids", 'monsterid'], ["Retro", 'retro'], ["Mystery man", 'mm']], :blank => :label_none %></p> |
|
| 19 |
</div> |
|
| 20 |
|
|
| 21 |
<%= submit_tag l(:button_save) %> |
|
| 22 |
<% end %> |
|
| app/views/settings/_display.rhtml | ||
|---|---|---|
| 1 |
<% form_tag({:action => 'edit', :tab => 'display'}) do %>
|
|
| 2 |
|
|
| 3 |
<div class="box tabular settings"> |
|
| 4 |
<p><%= setting_select :ui_theme, Redmine::Themes.themes.collect {|t| [t.name, t.id]}, :blank => :label_default, :label => :label_theme %></p>
|
|
| 5 |
|
|
| 6 |
<p><%= setting_select :default_language, lang_options_for_select(false) %></p> |
|
| 7 |
|
|
| 8 |
<p><%= setting_select :start_of_week, [[day_name(1),'1'], [day_name(6),'6'], [day_name(7),'7']], :blank => :label_language_based %></p> |
|
| 9 |
|
|
| 10 |
<p><%= setting_select :date_format, Setting::DATE_FORMATS.collect {|f| [Date.today.strftime(f), f]}, :blank => :label_language_based %></p>
|
|
| 11 |
|
|
| 12 |
<p><%= setting_select :time_format, Setting::TIME_FORMATS.collect {|f| [Time.now.strftime(f), f]}, :blank => :label_language_based %></p>
|
|
| 13 |
|
|
| 14 |
<p><%= setting_select :user_format, @options[:user_format] %></p> |
|
| 15 |
|
|
| 16 |
<p><%= setting_check_box :gravatar_enabled %></p> |
|
| 17 |
|
|
| 18 |
<p><%= setting_select :gravatar_default, [["Wavatars", 'wavatar'], ["Identicons", 'identicon'], ["Monster ids", 'monsterid'], ["Retro", 'retro'], ["Mystery man", 'mm']], :blank => :label_none %></p> |
|
| 19 |
</div> |
|
| 20 |
|
|
| 21 |
<%= submit_tag l(:button_save) %> |
|
| 22 |
<% end %> |
|
| app/views/settings/_general.html.erb | ||
|---|---|---|
| 1 |
<% form_tag({:action => 'edit'}) do %>
|
|
| 2 |
|
|
| 3 |
<div class="box tabular settings"> |
|
| 4 |
<p><%= setting_text_field :app_title, :size => 30 %></p> |
|
| 5 |
|
|
| 6 |
<p><%= setting_text_area :notifications_text, :cols => 60, :rows => 5, :class => 'wiki-edit' %></p> |
|
| 7 |
<%= wikitoolbar_for 'settings_notifications_text' %> |
|
| 8 |
|
|
| 9 |
<p><%= setting_text_area :welcome_text, :cols => 60, :rows => 5, :class => 'wiki-edit' %></p> |
|
| 10 |
<%= wikitoolbar_for 'settings_welcome_text' %> |
|
| 11 |
|
|
| 12 |
<p><%= setting_text_area :tipoftheday_text, :cols => 60, :rows => 5, :class => 'wiki-edit' %></p> |
|
| 13 |
<%= wikitoolbar_for 'settings_tipoftheday_text' %> |
|
| 14 |
|
|
| 15 |
<p><%= setting_text_field :attachment_max_size, :size => 6 %> <%= l(:"number.human.storage_units.units.kb") %></p> |
|
| 16 |
|
|
| 17 |
<p><%= setting_text_field :per_page_options, :size => 20 %><br /> |
|
| 18 |
<em><%= l(:text_comma_separated) %></em></p> |
|
| 19 |
|
|
| 20 |
<p><%= setting_text_field :activity_days_default, :size => 6 %> <%= l(:label_day_plural) %></p> |
|
| 21 |
|
|
| 22 |
<p><%= setting_text_field :host_name, :size => 60 %><br /> |
|
| 23 |
<em><%= l(:label_example) %>: <%= @guessed_host_and_path %></em></p> |
|
| 24 |
|
|
| 25 |
<p><%= setting_select :protocol, [['HTTP', 'http'], ['HTTPS', 'https']] %></p> |
|
| 26 |
|
|
| 27 |
<p><%= setting_select :text_formatting, Redmine::WikiFormatting.format_names.collect{|name| [name, name.to_s]}, :blank => :label_none %></p>
|
|
| 28 |
|
|
| 29 |
<p><%= setting_check_box :cache_formatted_text %></p> |
|
| 30 |
|
|
| 31 |
<p><%= setting_select :wiki_compression, [['Gzip', 'gzip']], :blank => :label_none %></p> |
|
| 32 |
|
|
| 33 |
<p><%= setting_text_field :feeds_limit, :size => 6 %></p> |
|
| 34 |
|
|
| 35 |
<p><%= setting_text_field :file_max_size_displayed, :size => 6 %> <%= l(:"number.human.storage_units.units.kb") %></p> |
|
| 36 |
|
|
| 37 |
<p><%= setting_text_field :diff_max_lines_displayed, :size => 6 %></p> |
|
| 38 |
|
|
| 39 |
<p><%= setting_text_field :repositories_encodings, :size => 60 %><br /> |
|
| 40 |
<em><%= l(:text_comma_separated) %></em></p> |
|
| 41 |
|
|
| 42 |
<%= call_hook(:view_settings_general_form) %> |
|
| 43 |
</div> |
|
| 44 |
|
|
| 45 |
<%= submit_tag l(:button_save) %> |
|
| 46 |
<% end %> |
|
| app/views/settings/_general.rhtml | ||
|---|---|---|
| 1 |
<% form_tag({:action => 'edit'}) do %>
|
|
| 2 |
|
|
| 3 |
<div class="box tabular settings"> |
|
| 4 |
<p><%= setting_text_field :app_title, :size => 30 %></p> |
|
| 5 |
|
|
| 6 |
<p><%= setting_text_area :notifications_text, :cols => 60, :rows => 5, :class => 'wiki-edit' %></p> |
|
| 7 |
<%= wikitoolbar_for 'settings_notifications_text' %> |
|
| 8 |
|
|
| 9 |
<p><%= setting_text_area :welcome_text, :cols => 60, :rows => 5, :class => 'wiki-edit' %></p> |
|
| 10 |
<%= wikitoolbar_for 'settings_welcome_text' %> |
|
| 11 |
|
|
| 12 |
<p><%= setting_text_area :tipoftheday_text, :cols => 60, :rows => 5, :class => 'wiki-edit' %></p> |
|
| 13 |
<%= wikitoolbar_for 'settings_tipoftheday_text' %> |
|
| 14 |
|
|
| 15 |
<p><%= setting_text_field :attachment_max_size, :size => 6 %> <%= l(:"number.human.storage_units.units.kb") %></p> |
|
| 16 |
|
|
| 17 |
<p><%= setting_text_field :per_page_options, :size => 20 %><br /> |
|
| 18 |
<em><%= l(:text_comma_separated) %></em></p> |
|
| 19 |
|
|
| 20 |
<p><%= setting_text_field :activity_days_default, :size => 6 %> <%= l(:label_day_plural) %></p> |
|
| 21 |
|
|
| 22 |
<p><%= setting_text_field :host_name, :size => 60 %><br /> |
|
| 23 |
<em><%= l(:label_example) %>: <%= @guessed_host_and_path %></em></p> |
|
| 24 |
|
|
| 25 |
<p><%= setting_select :protocol, [['HTTP', 'http'], ['HTTPS', 'https']] %></p> |
|
| 26 |
|
|
| 27 |
<p><%= setting_select :text_formatting, Redmine::WikiFormatting.format_names.collect{|name| [name, name.to_s]}, :blank => :label_none %></p>
|
|
| 28 |
|
|
| 29 |
<p><%= setting_check_box :cache_formatted_text %></p> |
|
| 30 |
|
|
| 31 |
<p><%= setting_select :wiki_compression, [['Gzip', 'gzip']], :blank => :label_none %></p> |
|
| 32 |
|
|
| 33 |
<p><%= setting_text_field :feeds_limit, :size => 6 %></p> |
|
| 34 |
|
|
| 35 |
<p><%= setting_text_field :file_max_size_displayed, :size => 6 %> <%= l(:"number.human.storage_units.units.kb") %></p> |
|
| 36 |
|
|
| 37 |
<p><%= setting_text_field :diff_max_lines_displayed, :size => 6 %></p> |
|
| 38 |
|
|
| 39 |
<%= call_hook(:view_settings_general_form) %> |
|
| 40 |
</div> |
|
| 41 |
|
|
| 42 |
<%= submit_tag l(:button_save) %> |
|
| 43 |
<% end %> |
|
| app/views/settings/_issues.html.erb | ||
|---|---|---|
| 1 |
<% form_tag({:action => 'edit', :tab => 'issues'}) do %>
|
|
| 2 |
|
|
| 3 |
<div class="box tabular settings"> |
|
| 4 |
<p><%= setting_check_box :cross_project_issue_relations %></p> |
|
| 5 |
|
|
| 6 |
<p><%= setting_check_box :issue_group_assignment %></p> |
|
| 7 |
|
|
| 8 |
<p><%= setting_check_box :default_issue_start_date_to_creation_date %></p> |
|
| 9 |
|
|
| 10 |
<p><%= setting_check_box :display_subprojects_issues %></p> |
|
| 11 |
|
|
| 12 |
<p><%= setting_select :issue_done_ratio, Issue::DONE_RATIO_OPTIONS.collect {|i| [l("setting_issue_done_ratio_#{i}"), i]} %></p>
|
|
| 13 |
|
|
| 14 |
<p><%= setting_text_field :issues_export_limit, :size => 6 %></p> |
|
| 15 |
|
|
| 16 |
<p><%= setting_text_field :gantt_items_limit, :size => 6 %></p> |
|
| 17 |
</div> |
|
| 18 |
|
|
| 19 |
<fieldset class="box settings"><legend><%= l(:setting_issue_list_default_columns) %></legend> |
|
| 20 |
<%= setting_multiselect(:issue_list_default_columns, |
|
| 21 |
Query.new.available_columns.collect {|c| [c.caption, c.name.to_s]}, :label => false) %>
|
|
| 22 |
</fieldset> |
|
| 23 |
|
|
| 24 |
<%= submit_tag l(:button_save) %> |
|
| 25 |
<% end %> |
|
| app/views/settings/_issues.rhtml | ||
|---|---|---|
| 1 |
<% form_tag({:action => 'edit', :tab => 'issues'}) do %>
|
|
| 2 |
|
|
| 3 |
<div class="box tabular settings"> |
|
| 4 |
<p><%= setting_check_box :cross_project_issue_relations %></p> |
|
| 5 |
|
|
| 6 |
<p><%= setting_check_box :display_subprojects_issues %></p> |
|
| 7 |
|
|
| 8 |
<p><%= setting_select :issue_done_ratio, Issue::DONE_RATIO_OPTIONS.collect {|i| [l("setting_issue_done_ratio_#{i}"), i]} %></p>
|
|
| 9 |
|
|
| 10 |
<p><%= setting_text_field :issues_export_limit, :size => 6 %></p> |
|
| 11 |
|
|
| 12 |
<p><%= setting_text_field :gantt_items_limit, :size => 6 %></p> |
|
| 13 |
</div> |
|
| 14 |
|
|
| 15 |
<fieldset class="box settings"><legend><%= l(:setting_issue_list_default_columns) %></legend> |
|
| 16 |
<%= setting_multiselect(:issue_list_default_columns, |
|
| 17 |
Query.new.available_columns.collect {|c| [c.caption, c.name.to_s]}, :label => false) %>
|
|
| 18 |
</fieldset> |
|
| 19 |
|
|
| 20 |
<%= submit_tag l(:button_save) %> |
|
| 21 |
<% end %> |
|
| app/views/settings/_mail_handler.html.erb | ||
|---|---|---|
| 1 |
<% form_tag({:action => 'edit', :tab => 'mail_handler'}) do %>
|
|
| 2 |
|
|
| 3 |
<div class="box tabular settings"> |
|
| 4 |
<p> |
|
| 5 |
<%= setting_text_area :mail_handler_body_delimiters, :rows => 5 %> |
|
| 6 |
<br /><em><%= l(:text_line_separated) %></em> |
|
| 7 |
</p> |
|
| 8 |
</div> |
|
| 9 |
|
|
| 10 |
<div class="box tabular settings"> |
|
| 11 |
<p><%= setting_check_box :mail_handler_api_enabled, |
|
| 12 |
:onclick => "if (this.checked) { Form.Element.enable('settings_mail_handler_api_key'); } else { Form.Element.disable('settings_mail_handler_api_key'); }"%></p>
|
|
| 13 |
|
|
| 14 |
<p><%= setting_text_field :mail_handler_api_key, :size => 30, |
|
| 15 |
:id => 'settings_mail_handler_api_key', |
|
| 16 |
:disabled => !Setting.mail_handler_api_enabled? %> |
|
| 17 |
<%= link_to_function l(:label_generate_key), "if ($('settings_mail_handler_api_key').disabled == false) { $('settings_mail_handler_api_key').value = randomKey(20) }" %>
|
|
| 18 |
</p> |
|
| 19 |
</div> |
|
| 20 |
|
|
| 21 |
<%= submit_tag l(:button_save) %> |
|
| 22 |
|
|
| 23 |
<% end %> |
|
| app/views/settings/_mail_handler.rhtml | ||
|---|---|---|
| 1 |
<% form_tag({:action => 'edit', :tab => 'mail_handler'}) do %>
|
|
| 2 |
|
|
| 3 |
<div class="box tabular settings"> |
|
| 4 |
<p> |
|
| 5 |
<%= setting_text_area :mail_handler_body_delimiters, :rows => 5 %> |
|
| 6 |
<br /><em><%= l(:text_line_separated) %></em> |
|
| 7 |
</p> |
|
| 8 |
</div> |
|
| 9 |
|
|
| 10 |
<div class="box tabular settings"> |
|
| 11 |
<p><%= setting_check_box :mail_handler_api_enabled, |
|
| 12 |
:onclick => "if (this.checked) { Form.Element.enable('settings_mail_handler_api_key'); } else { Form.Element.disable('settings_mail_handler_api_key'); }"%></p>
|
|
| 13 |
|
|
| 14 |
<p><%= setting_text_field :mail_handler_api_key, :size => 30, |
|
| 15 |
:id => 'settings_mail_handler_api_key', |
|
| 16 |
:disabled => !Setting.mail_handler_api_enabled? %> |
|
| 17 |
<%= link_to_function l(:label_generate_key), "if ($('settings_mail_handler_api_key').disabled == false) { $('settings_mail_handler_api_key').value = randomKey(20) }" %>
|
|
| 18 |
</p> |
|
| 19 |
</div> |
|
| 20 |
|
|
| 21 |
<%= submit_tag l(:button_save) %> |
|
| 22 |
|
|
| 23 |
<% end %> |
|
| app/views/settings/_notifications.html.erb | ||
|---|---|---|
| 1 |
<% if @deliveries %> |
|
| 2 |
<% form_tag({:action => 'edit', :tab => 'notifications'}) do %>
|
|
| 3 |
|
|
| 4 |
<div class="box tabular settings"> |
|
| 5 |
<p><%= setting_text_field :mail_from, :size => 60 %></p> |
|
| 6 |
|
|
| 7 |
<p><%= setting_check_box :bcc_recipients %></p> |
|
| 8 |
|
|
| 9 |
<p><%= setting_check_box :plain_text_mail %></p> |
|
| 10 |
|
|
| 11 |
<p><%= setting_select(:default_notification_option, User.valid_notification_options.collect {|o| [l(o.last), o.first.to_s]}) %></p>
|
|
| 12 |
|
|
| 13 |
</div> |
|
| 14 |
|
|
| 15 |
<fieldset class="box" id="notified_events"><legend><%=l(:text_select_mail_notifications)%></legend> |
|
| 16 |
<%= hidden_field_tag 'settings[notified_events][]', '' %> |
|
| 17 |
<% @notifiables.each do |notifiable| %> |
|
| 18 |
<%= notification_field notifiable %> |
|
| 19 |
<br /> |
|
| 20 |
<% end %> |
|
| 21 |
<p><%= check_all_links('notified_events') %></p>
|
|
| 22 |
</fieldset> |
|
| 23 |
|
|
| 24 |
<fieldset class="box"><legend><%= l(:setting_emails_header) %></legend> |
|
| 25 |
<%= setting_text_area :emails_header, :label => false, :class => 'wiki-edit', :rows => 5 %> |
|
| 26 |
</fieldset> |
|
| 27 |
|
|
| 28 |
<fieldset class="box"><legend><%= l(:setting_emails_footer) %></legend> |
|
| 29 |
<%= setting_text_area :emails_footer, :label => false, :class => 'wiki-edit', :rows => 5 %> |
|
| 30 |
</fieldset> |
|
| 31 |
|
|
| 32 |
<div style="float:right;"> |
|
| 33 |
<%= link_to l(:label_send_test_email), :controller => 'admin', :action => 'test_email' %> |
|
| 34 |
</div> |
|
| 35 |
|
|
| 36 |
<%= submit_tag l(:button_save) %> |
|
| 37 |
<% end %> |
|
| 38 |
<% else %> |
|
| 39 |
<div class="nodata"> |
|
| 40 |
<%= simple_format(l(:text_email_delivery_not_configured)) %> |
|
| 41 |
</div> |
|
| 42 |
<% end %> |
|
| app/views/settings/_notifications.rhtml | ||
|---|---|---|
| 1 |
<% if @deliveries %> |
|
| 2 |
<% form_tag({:action => 'edit', :tab => 'notifications'}) do %>
|
|
| 3 |
|
|
| 4 |
<div class="box tabular settings"> |
|
| 5 |
<p><%= setting_text_field :mail_from, :size => 60 %></p> |
|
| 6 |
|
|
| 7 |
<p><%= setting_check_box :bcc_recipients %></p> |
|
| 8 |
|
|
| 9 |
<p><%= setting_check_box :plain_text_mail %></p> |
|
| 10 |
|
|
| 11 |
<p><%= setting_select(:default_notification_option, User.valid_notification_options.collect {|o| [l(o.last), o.first.to_s]}) %></p>
|
|
| 12 |
|
|
| 13 |
</div> |
|
| 14 |
|
|
| 15 |
<fieldset class="box" id="notified_events"><legend><%=l(:text_select_mail_notifications)%></legend> |
|
| 16 |
<%= hidden_field_tag 'settings[notified_events][]', '' %> |
|
| 17 |
<% @notifiables.each do |notifiable| %> |
|
| 18 |
<%= notification_field notifiable %> |
|
| 19 |
<br /> |
|
| 20 |
<% end %> |
|
| 21 |
<p><%= check_all_links('notified_events') %></p>
|
|
| 22 |
</fieldset> |
|
| 23 |
|
|
| 24 |
<fieldset class="box"><legend><%= l(:setting_emails_header) %></legend> |
|
| 25 |
<%= setting_text_area :emails_header, :label => false, :class => 'wiki-edit', :rows => 5 %> |
|
| 26 |
</fieldset> |
|
| 27 |
|
|
| 28 |
<fieldset class="box"><legend><%= l(:setting_emails_footer) %></legend> |
|
| 29 |
<%= setting_text_area :emails_footer, :label => false, :class => 'wiki-edit', :rows => 5 %> |
|
| 30 |
</fieldset> |
|
| 31 |
|
|
| 32 |
<div style="float:right;"> |
|
| 33 |
<%= link_to l(:label_send_test_email), :controller => 'admin', :action => 'test_email' %> |
|
| 34 |
</div> |
|
| 35 |
|
|
| 36 |
<%= submit_tag l(:button_save) %> |
|
| 37 |
<% end %> |
|
| 38 |
<% else %> |
|
| 39 |
<div class="nodata"> |
|
| 40 |
<%= simple_format(l(:text_email_delivery_not_configured)) %> |
|
| 41 |
</div> |
|
| 42 |
<% end %> |
|
| app/views/settings/_projects.html.erb | ||
|---|---|---|
| 1 |
<% form_tag({:action => 'edit', :tab => 'projects'}) do %>
|
|
| 2 |
|
|
| 3 |
<div class="box tabular settings"> |
|
| 4 |
<p><%= setting_check_box :default_projects_public %></p> |
|
| 5 |
|
|
| 6 |
<p><%= setting_multiselect(:default_projects_modules, |
|
| 7 |
Redmine::AccessControl.available_project_modules.collect {|m| [l_or_humanize(m, :prefix => "project_module_"), m.to_s]}) %></p>
|
|
| 8 |
|
|
| 9 |
<p><%= setting_check_box :sequential_project_identifiers %></p> |
|
| 10 |
|
|
| 11 |
<p><%= setting_select :new_project_user_role_id, |
|
| 12 |
Role.find_all_givable.collect {|r| [r.name, r.id.to_s]},
|
|
| 13 |
:blank => "--- #{l(:actionview_instancetag_blank_option)} ---" %></p>
|
|
| 14 |
</div> |
|
| 15 |
|
|
| 16 |
<%= submit_tag l(:button_save) %> |
|
| 17 |
<% end %> |
|
| app/views/settings/_projects.rhtml | ||
|---|---|---|
| 1 |
<% form_tag({:action => 'edit', :tab => 'projects'}) do %>
|
|
| 2 |
|
|
| 3 |
<div class="box tabular settings"> |
|
| 4 |
<p><%= setting_check_box :default_projects_public %></p> |
|
| 5 |
|
|
| 6 |
<p><%= setting_multiselect(:default_projects_modules, |
|
| 7 |
Redmine::AccessControl.available_project_modules.collect {|m| [l_or_humanize(m, :prefix => "project_module_"), m.to_s]}) %></p>
|
|
| 8 |
|
|
| 9 |
<p><%= setting_check_box :sequential_project_identifiers %></p> |
|
| 10 |
|
|
| 11 |
<p><%= setting_select :new_project_user_role_id, |
|
| 12 |
Role.find_all_givable.collect {|r| [r.name, r.id.to_s]},
|
|
| 13 |
:blank => "--- #{l(:actionview_instancetag_blank_option)} ---" %></p>
|
|
| 14 |
</div> |
|
| 15 |
|
|
| 16 |
<%= submit_tag l(:button_save) %> |
|
| 17 |
<% end %> |
|
| app/views/settings/_repositories.html.erb | ||
|---|---|---|
| 1 |
<% form_tag({:action => 'edit', :tab => 'repositories'}) do %>
|
|
| 2 |
|
|
| 3 |
<fieldset class="box settings enabled_scm"> |
|
| 4 |
<%= hidden_field_tag 'settings[enabled_scm][]', '' %> |
|
| 5 |
<legend><%= l(:setting_enabled_scm) %></legend> |
|
| 6 |
<table> |
|
| 7 |
<tr> |
|
| 8 |
<th></th> |
|
| 9 |
<th><%= l(:text_scm_command) %></th> |
|
| 10 |
<th><%= l(:text_scm_command_version) %></th> |
|
| 11 |
</tr> |
|
| 12 |
<% Redmine::Scm::Base.all.collect do |choice| %> |
|
| 13 |
<% scm_class = "Repository::#{choice}".constantize %>
|
|
| 14 |
<% text, value = (choice.is_a?(Array) ? choice : [choice, choice]) %> |
|
| 15 |
<% setting = :enabled_scm %> |
|
| 16 |
<tr> |
|
| 17 |
<td class="scm_name"> |
|
| 18 |
<%= |
|
| 19 |
check_box_tag( |
|
| 20 |
"settings[#{setting}][]",
|
|
| 21 |
value, |
|
| 22 |
Setting.send(setting).include?(value)) |
|
| 23 |
%> |
|
| 24 |
<%= text.to_s %> |
|
| 25 |
</td> |
|
| 26 |
<td> |
|
| 27 |
<%= |
|
| 28 |
image_tag( |
|
| 29 |
(scm_class.scm_available ? 'true.png' : 'exclamation.png'), |
|
| 30 |
:style => "vertical-align:bottom;" |
|
| 31 |
) |
|
| 32 |
%> |
|
| 33 |
<%= scm_class.scm_command %> |
|
| 34 |
</td> |
|
| 35 |
<td> |
|
| 36 |
<%= scm_class.scm_version_string %> |
|
| 37 |
</td> |
|
| 38 |
</tr> |
|
| 39 |
<% end %> |
|
| 40 |
</table> |
|
| 41 |
<p><em><%= l(:text_scm_config) %></em></p> |
|
| 42 |
</fieldset> |
|
| 43 |
|
|
| 44 |
<div class="box tabular settings"> |
|
| 45 |
<p><%= setting_check_box :autofetch_changesets %></p> |
|
| 46 |
|
|
| 47 |
<p><%= setting_check_box :sys_api_enabled, |
|
| 48 |
:onclick => |
|
| 49 |
"if (this.checked) { Form.Element.enable('settings_sys_api_key'); } else { Form.Element.disable('settings_sys_api_key'); }" %></p>
|
|
| 50 |
|
|
| 51 |
<p><%= setting_text_field :sys_api_key, |
|
| 52 |
:size => 30, |
|
| 53 |
:id => 'settings_sys_api_key', |
|
| 54 |
:disabled => !Setting.sys_api_enabled?, |
|
| 55 |
:label => :setting_mail_handler_api_key %> |
|
| 56 |
<%= link_to_function l(:label_generate_key), |
|
| 57 |
"if ($('settings_sys_api_key').disabled == false) { $('settings_sys_api_key').value = randomKey(20) }" %>
|
|
| 58 |
</p> |
|
| 59 |
|
|
| 60 |
<p><%= setting_text_field :repository_log_display_limit, :size => 6 %></p> |
|
| 61 |
</div> |
|
| 62 |
|
|
| 63 |
<fieldset class="box tabular settings"> |
|
| 64 |
<legend><%= l(:text_issues_ref_in_commit_messages) %></legend> |
|
| 65 |
<p><%= setting_text_field :commit_ref_keywords, :size => 30 %><br /> |
|
| 66 |
<em><%= l(:text_comma_separated) %></em></p> |
|
| 67 |
|
|
| 68 |
<p><%= setting_text_field :commit_fix_keywords, :size => 30 %> |
|
| 69 |
<%= l(:label_applied_status) %>: <%= setting_select :commit_fix_status_id, |
|
| 70 |
[["", 0]] + |
|
| 71 |
IssueStatus.find(:all).collect{
|
|
| 72 |
|status| [status.name, status.id.to_s] |
|
| 73 |
}, |
|
| 74 |
:label => false %> |
|
| 75 |
<%= l(:field_done_ratio) %>: <%= setting_select :commit_fix_done_ratio, |
|
| 76 |
(0..10).to_a.collect {|r| ["#{r*10} %", "#{r*10}"] },
|
|
| 77 |
:blank => :label_no_change_option, |
|
| 78 |
:label => false %> |
|
| 79 |
<br /><em><%= l(:text_comma_separated) %></em></p> |
|
| 80 |
|
|
| 81 |
<p><%= setting_check_box :commit_logtime_enabled, |
|
| 82 |
:onclick => |
|
| 83 |
"if (this.checked) { Form.Element.enable('settings_commit_logtime_activity_id'); } else { Form.Element.disable('settings_commit_logtime_activity_id'); }"%></p>
|
|
| 84 |
|
|
| 85 |
<p><%= setting_select :commit_logtime_activity_id, |
|
| 86 |
[[l(:label_default), 0]] + |
|
| 87 |
TimeEntryActivity.shared.active.collect{|activity| [activity.name, activity.id.to_s]},
|
|
| 88 |
:disabled => !Setting.commit_logtime_enabled?%></p> |
|
| 89 |
</fieldset> |
|
| 90 |
|
|
| 91 |
<%= submit_tag l(:button_save) %> |
|
| 92 |
<% end %> |
|
| app/views/settings/_repositories.rhtml | ||
|---|---|---|
| 1 |
<% form_tag({:action => 'edit', :tab => 'repositories'}) do %>
|
|
| 2 |
|
|
| 3 |
<fieldset class="box tabular settings enabled_scm"> |
|
| 4 |
<legend><%= l(:setting_enabled_scm) %></legend> |
|
| 5 |
<table> |
|
| 6 |
<tr> |
|
| 7 |
<th></th> |
|
| 8 |
<th><%= l(:text_scm_command) %></th> |
|
| 9 |
<th><%= l(:text_scm_command_version) %></th> |
|
| 10 |
</tr> |
|
| 11 |
<% Redmine::Scm::Base.all.collect do |choice| %> |
|
| 12 |
<% scm_class = "Repository::#{choice}".constantize %>
|
|
| 13 |
<% text, value = (choice.is_a?(Array) ? choice : [choice, choice]) %> |
|
| 14 |
<% setting = :enabled_scm %> |
|
| 15 |
<tr> |
|
| 16 |
<td class="scm_name"> |
|
| 17 |
<%= |
|
| 18 |
check_box_tag( |
|
| 19 |
"settings[#{setting}][]",
|
|
| 20 |
value, |
|
| 21 |
Setting.send(setting).include?(value)) |
|
| 22 |
%> |
|
| 23 |
<%= text.to_s %> |
|
| 24 |
</td> |
|
| 25 |
<td> |
|
| 26 |
<%= |
|
| 27 |
image_tag( |
|
| 28 |
(scm_class.scm_available ? 'true.png' : 'exclamation.png'), |
|
| 29 |
:style => "vertical-align:bottom;" |
|
| 30 |
) |
|
| 31 |
%> |
|
| 32 |
<%= scm_class.scm_command %> |
|
| 33 |
</td> |
|
| 34 |
<td> |
|
| 35 |
<%= scm_class.scm_version_string %> |
|
| 36 |
</td> |
|
| 37 |
</tr> |
|
| 38 |
<% end %> |
|
| 39 |
</table> |
|
| 40 |
<p class="scm_config"> |
|
| 41 |
<%= l(:text_scm_config) %> |
|
| 42 |
</p> |
|
| 43 |
</fieldset> |
|
| 44 |
|
|
| 45 |
<div class="box tabular settings"> |
|
| 46 |
<p><%= setting_check_box :autofetch_changesets %></p> |
|
| 47 |
|
|
| 48 |
<p><%= setting_check_box :sys_api_enabled, |
|
| 49 |
:onclick => |
|
| 50 |
"if (this.checked) { Form.Element.enable('settings_sys_api_key'); } else { Form.Element.disable('settings_sys_api_key'); }" %></p>
|
|
| 51 |
|
|
| 52 |
<p><%= setting_text_field :sys_api_key, |
|
| 53 |
:size => 30, |
|
| 54 |
:id => 'settings_sys_api_key', |
|
| 55 |
:disabled => !Setting.sys_api_enabled?, |
|
| 56 |
:label => :setting_mail_handler_api_key %> |
|
| 57 |
<%= link_to_function l(:label_generate_key), |
|
| 58 |
"if ($('settings_sys_api_key').disabled == false) { $('settings_sys_api_key').value = randomKey(20) }" %>
|
|
| 59 |
</p> |
|
| 60 |
|
|
| 61 |
<p><%= setting_text_field :repositories_encodings, :size => 60 %><br /> |
|
| 62 |
<em><%= l(:text_comma_separated) %></em></p> |
|
| 63 |
|
|
| 64 |
<p><%= setting_text_field :repository_log_display_limit, :size => 6 %></p> |
|
| 65 |
</div> |
|
| 66 |
|
|
| 67 |
<fieldset class="box tabular settings"> |
|
| 68 |
<legend><%= l(:text_issues_ref_in_commit_messages) %></legend> |
|
| 69 |
<p><%= setting_text_field :commit_ref_keywords, :size => 30 %><br /> |
|
| 70 |
<em><%= l(:text_comma_separated) %></em></p> |
|
| 71 |
|
|
| 72 |
<p><%= setting_text_field :commit_fix_keywords, :size => 30 %> |
|
| 73 |
<%= l(:label_applied_status) %>: <%= setting_select :commit_fix_status_id, |
|
| 74 |
[["", 0]] + |
|
| 75 |
IssueStatus.find(:all).collect{
|
|
| 76 |
|status| [status.name, status.id.to_s] |
|
| 77 |
}, |
|
| 78 |
:label => false %> |
|
| 79 |
<%= l(:field_done_ratio) %>: <%= setting_select :commit_fix_done_ratio, |
|
| 80 |
(0..10).to_a.collect {|r| ["#{r*10} %", "#{r*10}"] },
|
|
| 81 |
:blank => :label_no_change_option, |
|
| 82 |
:label => false %> |
|
| 83 |
<br /><em><%= l(:text_comma_separated) %></em></p> |
|
| 84 |
|
|
| 85 |
<p><%= setting_check_box :commit_logtime_enabled, |
|
| 86 |
:onclick => |
|
| 87 |
"if (this.checked) { Form.Element.enable('settings_commit_logtime_activity_id'); } else { Form.Element.disable('settings_commit_logtime_activity_id'); }"%></p>
|
|
| 88 |
|
|
| 89 |
<p><%= setting_select :commit_logtime_activity_id, |
|
| 90 |
[[l(:label_default), 0]] + |
|
| 91 |
TimeEntryActivity.shared.all.collect{|activity| [activity.name, activity.id.to_s]},
|
|
| 92 |
:disabled => !Setting.commit_logtime_enabled?%></p> |
|
| 93 |
</fieldset> |
|
| 94 |
|
|
| 95 |
<%= submit_tag l(:button_save) %> |
|
| 96 |
<% end %> |
|
| app/views/settings/edit.html.erb | ||
|---|---|---|
| 1 |
<h2><%= l(:label_settings) %></h2> |
|
| 2 |
|
|
| 3 |
<%= render_tabs administration_settings_tabs %> |
|
| 4 |
|
|
| 5 |
<% html_title(l(:label_settings), l(:label_administration)) -%> |
|
| app/views/settings/edit.rhtml | ||
|---|---|---|
| 1 |
<h2><%= l(:label_settings) %></h2> |
|
| 2 |
|
|
| 3 |
<%= render_tabs administration_settings_tabs %> |
|
| 4 |
|
|
| 5 |
<% html_title(l(:label_settings), l(:label_administration)) -%> |
|
| app/views/settings/plugin.html.erb | ||
|---|---|---|
| 1 |
<h2><%= l(:label_settings) %>: <%=h @plugin.name %></h2> |
|
| 2 |
|
|
| 3 |
<div id="settings"> |
|
| 4 |
<% form_tag({:action => 'plugin'}) do %>
|
|
| 5 |
<div class="box tabular"> |
|
| 6 |
<%= render :partial => @partial, :locals => {:settings => @settings}%>
|
|
| 7 |
</div> |
|
| 8 |
<%= submit_tag l(:button_apply) %> |
|
| 9 |
<% end %> |
|
| 10 |
</div> |
|
| app/views/settings/plugin.rhtml | ||
|---|---|---|
| 1 |
<h2><%= l(:label_settings) %>: <%=h @plugin.name %></h2> |
|
| 2 |
|
|
| 3 |
<div id="settings"> |
|
| 4 |
<% form_tag({:action => 'plugin'}) do %>
|
|
| 5 |
<div class="box tabular"> |
|
| 6 |
<%= render :partial => @partial, :locals => {:settings => @settings}%>
|
|
| 7 |
</div> |
|
| 8 |
<%= submit_tag l(:button_apply) %> |
|
| 9 |
<% end %> |
|
| 10 |
</div> |
|
Also available in: Unified diff