Project

General

Profile

Patch #6528 ยป settings_patches.diff

Jan from Planio www.plan.io, 2010-09-29 10:57

View differences:

app/views/settings/_authentication.rhtml
<p><%= setting_check_box :openid, :disabled => !Object.const_defined?(:OpenID) %></p>
<p><%= setting_check_box :rest_api_enabled %></p>
<%= call_hook :view_settings_authentication_form %>
</div>
<div style="float:right;">
app/views/settings/_display.rhtml
<p><%= setting_check_box :gravatar_enabled %></p>
<p><%= setting_select :gravatar_default, [["Wavatars", 'wavatar'], ["Identicons", 'identicon'], ["Monster ids", 'monsterid']], :blank => :label_none %></p>
<%= call_hook :view_settings_display_form, :options => @options %>
</div>
<%= submit_tag l(:button_save) %>
app/views/settings/_issues.rhtml
<p><%= setting_select :issue_done_ratio, Issue::DONE_RATIO_OPTIONS.collect {|i| [l("setting_issue_done_ratio_#{i}"), i]} %></p>
<p><%= setting_text_field :issues_export_limit, :size => 6 %></p>
<%= call_hook :view_settings_issues_form %>
</div>
<fieldset class="box settings"><legend><%= l(:setting_issue_list_default_columns) %></legend>
app/views/settings/_mail_handler.rhtml
<%= setting_text_area :mail_handler_body_delimiters, :rows => 5 %>
<br /><em><%= l(:text_line_separated) %></em>
</p>
<%= call_hook :view_settings_mail_handler_delimiters_form %>
</div>
<div class="box tabular settings">
......
:disabled => !Setting.mail_handler_api_enabled? %>
<%= link_to_function l(:label_generate_key), "if ($('settings_mail_handler_api_key').disabled == false) { $('settings_mail_handler_api_key').value = randomKey(20) }" %>
</p>
<%= call_hook :view_settings_mail_handler_api_key_form %>
</div>
<%= submit_tag l(:button_save) %>
app/views/settings/_notifications.rhtml
<p><%= setting_select(:default_notification_option, User::MAIL_NOTIFICATION_OPTIONS.collect {|o| [l(o.last), o.first.to_s]}) %></p>
<%= call_hook :view_settings_notifications_form %>
</div>
<fieldset class="box" id="notified_events"><legend><%=l(:text_select_mail_notifications)%></legend>
app/views/settings/_projects.rhtml
<p><%= setting_select :new_project_user_role_id,
Role.find_all_givable.collect {|r| [r.name, r.id.to_s]},
:blank => "--- #{l(:actionview_instancetag_blank_option)} ---" %></p>
<%= call_hook :view_settings_projects_form %>
</div>
<%= submit_tag l(:button_save) %>
app/views/settings/_repositories.rhtml
<p><%= setting_select :commit_logs_encoding, Setting::ENCODINGS %></p>
<p><%= setting_text_field :repository_log_display_limit, :size => 6 %></p>
<%= call_hook :view_settings_repositories_scm_form %>
</div>
<fieldset class="box tabular settings"><legend><%= l(:text_issues_ref_in_commit_messages) %></legend>
......
&nbsp;<%= l(:label_applied_status) %>: <%= setting_select :commit_fix_status_id, [["", 0]] + IssueStatus.find(:all).collect{|status| [status.name, status.id.to_s]}, :label => false %>
&nbsp;<%= l(:field_done_ratio) %>: <%= setting_select :commit_fix_done_ratio, (0..10).to_a.collect {|r| ["#{r*10} %", "#{r*10}"] }, :blank => :label_no_change_option, :label => false %>
<br /><em><%= l(:text_comma_separated) %></em></p>
<%= call_hook :view_settings_repositories_commit_ref_form %>
</fieldset>
<%= submit_tag l(:button_save) %>
    (1-1/1)