##// END OF EJS Templates
Adds helpers for setting field tags....
Jean-Philippe Lang -
r3084:6ccbcfb589b8
parent child
Show More
@@ -1,30 +1,74
1 # redMine - project management software
2 # Copyright (C) 2006-2007 Jean-Philippe Lang
1 # Redmine - project management software
2 # Copyright (C) 2006-2009 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 module SettingsHelper
19 19 def administration_settings_tabs
20 20 tabs = [{:name => 'general', :partial => 'settings/general', :label => :label_general},
21 21 {:name => 'display', :partial => 'settings/display', :label => :label_display},
22 22 {:name => 'authentication', :partial => 'settings/authentication', :label => :label_authentication},
23 23 {:name => 'projects', :partial => 'settings/projects', :label => :label_project_plural},
24 24 {:name => 'issues', :partial => 'settings/issues', :label => :label_issue_tracking},
25 25 {:name => 'notifications', :partial => 'settings/notifications', :label => :field_mail_notification},
26 26 {:name => 'mail_handler', :partial => 'settings/mail_handler', :label => :label_incoming_emails},
27 27 {:name => 'repositories', :partial => 'settings/repositories', :label => :label_repository_plural}
28 28 ]
29 29 end
30
31 def setting_select(setting, choices, options={})
32 if blank_text = options.delete(:blank)
33 choices = [[blank_text.is_a?(Symbol) ? l(blank_text) : blank_text, '']] + choices
34 end
35 setting_label(setting, options) +
36 select_tag("settings[#{setting}]", options_for_select(choices, Setting.send(setting).to_s), options)
37 end
38
39 def setting_multiselect(setting, choices, options={})
40 setting_values = Setting.send(setting)
41 setting_values = [] unless setting_values.is_a?(Array)
42
43 setting_label(setting, options) +
44 hidden_field_tag("settings[#{setting}][]", '') +
45 choices.collect do |choice|
46 text, value = (choice.is_a?(Array) ? choice : [choice, choice])
47 content_tag('label',
48 check_box_tag("settings[#{setting}][]", value, Setting.send(setting).include?(value)) + text.to_s,
49 :class => 'block'
50 )
51 end.join
52 end
53
54 def setting_text_field(setting, options={})
55 setting_label(setting, options) +
56 text_field_tag("settings[#{setting}]", Setting.send(setting), options)
57 end
58
59 def setting_text_area(setting, options={})
60 setting_label(setting, options) +
61 text_area_tag("settings[#{setting}]", Setting.send(setting), options)
62 end
63
64 def setting_check_box(setting, options={})
65 setting_label(setting, options) +
66 hidden_field_tag("settings[#{setting}]", 0) +
67 check_box_tag("settings[#{setting}]", 1, Setting.send("#{setting}?"), options)
68 end
69
70 def setting_label(setting, options={})
71 label = options.delete(:label)
72 label != false ? content_tag("label", l(label || "setting_#{setting}")) : ''
73 end
30 74 end
@@ -1,39 +1,25
1 1 <% form_tag({:action => 'edit', :tab => 'authentication'}) do %>
2 2
3 3 <div class="box tabular settings">
4 <p><label><%= l(:setting_login_required) %></label>
5 <%= hidden_field_tag 'settings[login_required]', 0 %>
6 <%= check_box_tag 'settings[login_required]', 1, Setting.login_required? %>
7 </p>
8
9 <p><label><%= l(:setting_autologin) %></label>
10 <%= select_tag 'settings[autologin]', options_for_select( [[l(:label_disabled), "0"]] + [1, 7, 30, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), days.to_s]}, Setting.autologin) %></p>
11
12 <p><label><%= l(:setting_self_registration) %></label>
13 <%= select_tag 'settings[self_registration]',
14 options_for_select( [[l(:label_disabled), "0"],
15 [l(:label_registration_activation_by_email), "1"],
16 [l(:label_registration_manual_activation), "2"],
17 [l(:label_registration_automatic_activation), "3"]
18 ], Setting.self_registration ) %></p>
19
20 <p><label><%= l(:setting_password_min_length) %></label>
21 <%= text_field_tag 'settings[password_min_length]', Setting.password_min_length, :size => 6 %></p>
22
23 <p><label><%= l(:label_password_lost) %></label>
24 <%= hidden_field_tag 'settings[lost_password]', 0 %>
25 <%= check_box_tag 'settings[lost_password]', 1, Setting.lost_password? %>
26 </p>
27
28 <p><label><%= l(:setting_openid) %></label>
29 <%= hidden_field_tag 'settings[openid]', 0 %>
30 <%= check_box_tag 'settings[openid]', 1, Setting.openid?, :disabled => !Object.const_defined?(:OpenID) %>
31 </p>
4 <p><%= setting_check_box :login_required %></p>
5
6 <p><%= setting_select :autologin, [1, 7, 30, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), days.to_s]}, :blank => :label_disabled %></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>
32 18 </div>
33 19
34 20 <div style="float:right;">
35 21 <%= link_to l(:label_ldap_authentication), :controller => 'auth_sources', :action => 'list' %>
36 22 </div>
37 23
38 24 <%= submit_tag l(:button_save) %>
39 25 <% end %>
@@ -1,33 +1,22
1 1 <% form_tag({:action => 'edit', :tab => 'display'}) do %>
2 2
3 3 <div class="box tabular settings">
4 <p><label><%= l(:label_theme) %></label>
5 <%= select_tag 'settings[ui_theme]', options_for_select( ([[l(:label_default), '']] + Redmine::Themes.themes.collect {|t| [t.name, t.id]}), Setting.ui_theme) %></p>
4 <p><%= setting_select :ui_theme, Redmine::Themes.themes.collect {|t| [t.name, t.id]}, :blank => :label_default, :label => :label_theme %></p>
6 5
7 <p><label><%= l(:setting_default_language) %></label>
8 <%= select_tag 'settings[default_language]', options_for_select( lang_options_for_select(false), Setting.default_language) %></p>
6 <p><%= setting_select :default_language, lang_options_for_select(false) %></p>
9 7
10 <p><label><%= l(:setting_start_of_week) %></label>
11 <%= select_tag 'settings[start_of_week]', options_for_select( [[l(:label_language_based), ''], [day_name(1),'1'], [day_name(7),'7']] , Setting.start_of_week) %></p>
8 <p><%= setting_select :start_of_week, [[day_name(1),'1'], [day_name(7),'7']], :blank => :label_language_based %></p>
12 9
13 <p><label><%= l(:setting_date_format) %></label>
14 <%= 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>
10 <p><%= setting_select :date_format, Setting::DATE_FORMATS.collect {|f| [Date.today.strftime(f), f]}, :blank => :label_language_based %></p>
15 11
16 <p><label><%= l(:setting_time_format) %></label>
17 <%= 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>
12 <p><%= setting_select :time_format, Setting::TIME_FORMATS.collect {|f| [Time.now.strftime(f), f]}, :blank => :label_language_based %></p>
18 13
19 <p><label><%= l(:setting_user_format) %></label>
20 <%= select_tag 'settings[user_format]', options_for_select( @options[:user_format], Setting.user_format.to_s ) %></p>
14 <p><%= setting_select :user_format, @options[:user_format] %></p>
21 15
22 <p><label><%= l(:setting_gravatar_enabled) %></label>
23 <%= hidden_field_tag 'settings[gravatar_enabled]', 0 %>
24 <%= check_box_tag 'settings[gravatar_enabled]', 1, Setting.gravatar_enabled? %>
25 </p>
16 <p><%= setting_check_box :gravatar_enabled %></p>
26 17
27 <p><label><%= l(:setting_gravatar_default) %></label>
28 <%= select_tag 'settings[gravatar_default]', options_for_select([[l(:label_none), ''], ["Wavatars", 'wavatar'], ["Identicons", 'identicon'], ["Monster ids", 'monsterid']], Setting.gravatar_default) %></p>
29 </p>
18 <p><%= setting_select :gravatar_default, [["Wavatars", 'wavatar'], ["Identicons", 'identicon'], ["Monster ids", 'monsterid']], :blank => :label_none %></p>
30 19 </div>
31 20
32 21 <%= submit_tag l(:button_save) %>
33 22 <% end %>
@@ -1,44 +1,33
1 1 <% form_tag({:action => 'edit'}) do %>
2 2
3 3 <div class="box tabular settings">
4 <p><label><%= l(:setting_app_title) %></label>
5 <%= text_field_tag 'settings[app_title]', Setting.app_title, :size => 30 %></p>
4 <p><%= setting_text_field :app_title, :size => 30 %></p>
6 5
7 <p><label><%= l(:setting_welcome_text) %></label>
8 <%= text_area_tag 'settings[welcome_text]', Setting.welcome_text, :cols => 60, :rows => 5, :class => 'wiki-edit' %></p>
9 <%= wikitoolbar_for 'settings[welcome_text]' %>
6 <p><%= setting_text_area :welcome_text, :cols => 60, :rows => 5, :class => 'wiki-edit' %></p>
7 <%= wikitoolbar_for 'settings_welcome_text' %>
10 8
11 <p><label><%= l(:setting_attachment_max_size) %></label>
12 <%= text_field_tag 'settings[attachment_max_size]', Setting.attachment_max_size, :size => 6 %> KB</p>
9 <p><%= setting_text_field :attachment_max_size, :size => 6 %> KB</p>
13 10
14 <p><label><%= l(:setting_per_page_options) %></label>
15 <%= text_field_tag 'settings[per_page_options]', Setting.per_page_options_array.join(', '), :size => 20 %><br /><em><%= l(:text_comma_separated) %></em></p>
11 <p><%= setting_text_field :per_page_options, :size => 20 %><br />
12 <em><%= l(:text_comma_separated) %></em></p>
16 13
17 <p><label><%= l(:setting_activity_days_default) %></label>
18 <%= text_field_tag 'settings[activity_days_default]', Setting.activity_days_default, :size => 6 %> <%= l(:label_day_plural) %></p>
14 <p><%= setting_text_field :activity_days_default, :size => 6 %> <%= l(:label_day_plural) %></p>
19 15
20 <p><label><%= l(:setting_host_name) %></label>
21 <%= text_field_tag 'settings[host_name]', Setting.host_name, :size => 60 %><br />
16 <p><%= setting_text_field :host_name, :size => 60 %><br />
22 17 <em><%= l(:label_example) %>: <%= @guessed_host_and_path %></em></p>
23 18
24 <p><label><%= l(:setting_protocol) %></label>
25 <%= select_tag 'settings[protocol]', options_for_select(['http', 'https'], Setting.protocol) %></p>
19 <p><%= setting_select :protocol, [['HTTP', 'http'], ['HTTPS', 'https']] %></p>
26 20
27 <p><label><%= l(:setting_text_formatting) %></label>
28 <%= select_tag 'settings[text_formatting]', options_for_select([[l(:label_none), "0"], *Redmine::WikiFormatting.format_names.collect{|name| [name, name]} ], Setting.text_formatting.to_sym) %></p>
21 <p><%= setting_select :text_formatting, Redmine::WikiFormatting.format_names.collect{|name| [name, name.to_s]}, :blank => :label_none %></p>
29 22
30 <p><label><%= l(:setting_wiki_compression) %></label>
31 <%= select_tag 'settings[wiki_compression]', options_for_select( [[l(:label_none), 0], ["gzip", "gzip"]], Setting.wiki_compression) %></p>
23 <p><%= setting_select :wiki_compression, [['Gzip', 'gzip']], :blank => :label_none %></p>
32 24
33 <p><label><%= l(:setting_feeds_limit) %></label>
34 <%= text_field_tag 'settings[feeds_limit]', Setting.feeds_limit, :size => 6 %></p>
25 <p><%= setting_text_field :feeds_limit, :size => 6 %></p>
35 26
36 <p><label><%= l(:setting_file_max_size_displayed) %></label>
37 <%= text_field_tag 'settings[file_max_size_displayed]', Setting.file_max_size_displayed, :size => 6 %> KB</p>
27 <p><%= setting_text_field :file_max_size_displayed, :size => 6 %> KB</p>
38 28
39 <p><label><%= l(:setting_diff_max_lines_displayed) %></label>
40 <%= text_field_tag 'settings[diff_max_lines_displayed]', Setting.diff_max_lines_displayed, :size => 6 %></p>
29 <p><%= setting_text_field :diff_max_lines_displayed, :size => 6 %></p>
41 30 </div>
42 31
43 32 <%= submit_tag l(:button_save) %>
44 33 <% end %>
@@ -1,31 +1,19
1 1 <% form_tag({:action => 'edit', :tab => 'issues'}) do %>
2 2
3 3 <div class="box tabular settings">
4 <p><label><%= l(:setting_cross_project_issue_relations) %></label>
5 <%= hidden_field_tag 'settings[cross_project_issue_relations]', 0 %>
6 <%= check_box_tag 'settings[cross_project_issue_relations]', 1, Setting.cross_project_issue_relations? %>
7 </p>
4 <p><%= setting_check_box :cross_project_issue_relations %></p>
8 5
9 <p><label><%= l(:setting_display_subprojects_issues) %></label>
10 <%= hidden_field_tag 'settings[display_subprojects_issues]', 0 %>
11 <%= check_box_tag 'settings[display_subprojects_issues]', 1, Setting.display_subprojects_issues? %>
12 </p>
6 <p><%= setting_check_box :display_subprojects_issues %></p>
13 7
14 <p><label><%= l(:setting_issue_done_ratio) %></label>
15 <%= select_tag 'settings[issue_done_ratio]',
16 options_for_select(Issue::DONE_RATIO_OPTIONS.collect {|i| [l("setting_issue_done_ratio_#{i}"), i]}, Setting.issue_done_ratio) %></p>
8 <p><%= setting_select :issue_done_ratio, Issue::DONE_RATIO_OPTIONS.collect {|i| [l("setting_issue_done_ratio_#{i}"), i]} %></p>
17 9
18 <p><label><%= l(:setting_issues_export_limit) %></label>
19 <%= text_field_tag 'settings[issues_export_limit]', Setting.issues_export_limit, :size => 6 %></p>
10 <p><%= setting_text_field :issues_export_limit, :size => 6 %></p>
20 11 </div>
21 12
22 13 <fieldset class="box settings"><legend><%= l(:setting_issue_list_default_columns) %></legend>
23 <%= hidden_field_tag 'settings[issue_list_default_columns][]', '' %>
24 <% Query.new.available_columns.each do |column| %>
25 <label><%= check_box_tag 'settings[issue_list_default_columns][]', column.name, Setting.issue_list_default_columns.include?(column.name.to_s) %>
26 <%= column.caption %></label><br />
27 <% end %>
14 <%= setting_multiselect(:issue_list_default_columns,
15 Query.new.available_columns.collect {|c| [c.caption, c.name.to_s]}, :label => false) %>
28 16 </fieldset>
29 17
30 18 <%= submit_tag l(:button_save) %>
31 19 <% end %>
@@ -1,19 +1,15
1 1 <% form_tag({:action => 'edit', :tab => 'mail_handler'}) do %>
2 2
3 3 <div class="box tabular settings">
4 <p><label><%= l(:setting_mail_handler_api_enabled) %></label>
5 <%= hidden_field_tag 'settings[mail_handler_api_enabled]', 0 %>
6 <%= check_box_tag 'settings[mail_handler_api_enabled]', 1, Setting.mail_handler_api_enabled?,
7 :onclick => "if (this.checked) { Form.Element.enable('settings_mail_handler_api_key'); } else { Form.Element.disable('settings_mail_handler_api_key'); }" %>
8 </p>
4 <p><%= setting_check_box :mail_handler_api_enabled,
5 :onclick => "if (this.checked) { Form.Element.enable('settings_mail_handler_api_key'); } else { Form.Element.disable('settings_mail_handler_api_key'); }"%></p>
9 6
10 <p><label><%= l(:setting_mail_handler_api_key) %></label>
11 <%= text_field_tag 'settings[mail_handler_api_key]', Setting.mail_handler_api_key,
12 :size => 30,
13 :id => 'settings_mail_handler_api_key',
14 :disabled => !Setting.mail_handler_api_enabled? %>
15 <%= link_to_function l(:label_generate_key), "if ($('settings_mail_handler_api_key').disabled == false) { $('settings_mail_handler_api_key').value = randomKey(20) }" %></p>
7 <p><%= setting_text_field :mail_handler_api_key, :size => 30,
8 :id => 'settings_mail_handler_api_key',
9 :disabled => !Setting.mail_handler_api_enabled? %>
10 <%= link_to_function l(:label_generate_key), "if ($('settings_mail_handler_api_key').disabled == false) { $('settings_mail_handler_api_key').value = randomKey(20) }" %>
11 </p>
16 12 </div>
17 13
18 14 <%= submit_tag l(:button_save) %>
19 15 <% end %>
@@ -1,42 +1,33
1 1 <% if @deliveries %>
2 2 <% form_tag({:action => 'edit', :tab => 'notifications'}) do %>
3 3
4 4 <div class="box tabular settings">
5 <p><label><%= l(:setting_mail_from) %></label>
6 <%= text_field_tag 'settings[mail_from]', Setting.mail_from, :size => 60 %></p>
7
8 <p><label><%= l(:setting_bcc_recipients) %></label>
9 <%= hidden_field_tag 'settings[bcc_recipients]', 0 %>
10 <%= check_box_tag 'settings[bcc_recipients]', 1, Setting.bcc_recipients? %>
11 </p>
12
13 <p><label><%= l(:setting_plain_text_mail) %></label>
14 <%= hidden_field_tag 'settings[plain_text_mail]', 0 %>
15 <%= check_box_tag 'settings[plain_text_mail]', 1, Setting.plain_text_mail? %>
16 </p>
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>
17 10 </div>
18 11
19 <fieldset class="box" id="notified_events"><legend><%=l(:text_select_mail_notifications)%></legend>
20 <% @notifiables.each do |notifiable| %>
21 <label><%= check_box_tag 'settings[notified_events][]', notifiable, Setting.notified_events.include?(notifiable) %>
22 <%= l_or_humanize(notifiable, :prefix => 'label_') %></label><br />
23 <% end %>
24 <%= hidden_field_tag 'settings[notified_events][]', '' %>
25 <p><%= check_all_links('notified_events') %></p>
12 <fieldset class="box settings" id="notified_events"><legend><%=l(:text_select_mail_notifications)%></legend>
13 <%= setting_multiselect(:notified_events,
14 @notifiables.collect {|notifiable| [l_or_humanize(notifiable, :prefix => 'label_'), notifiable]}, :label => false) %>
15
16 <p><%= check_all_links('notified_events') %></p>
26 17 </fieldset>
27 18
28 19 <fieldset class="box"><legend><%= l(:setting_emails_footer) %></legend>
29 <%= text_area_tag 'settings[emails_footer]', Setting.emails_footer, :class => 'wiki-edit', :rows => 5 %>
20 <%= setting_text_area :emails_footer, :label => false, :class => 'wiki-edit', :rows => 5 %>
30 21 </fieldset>
31 22
32 23 <div style="float:right;">
33 24 <%= link_to l(:label_send_test_email), :controller => 'admin', :action => 'test_email' %>
34 25 </div>
35 26
36 27 <%= submit_tag l(:button_save) %>
37 28 <% end %>
38 29 <% else %>
39 30 <div class="nodata">
40 31 <%= simple_format(l(:text_email_delivery_not_configured)) %>
41 32 </div>
42 33 <% end %>
@@ -1,29 +1,17
1 1 <% form_tag({:action => 'edit', :tab => 'projects'}) do %>
2 2
3 3 <div class="box tabular settings">
4 <p><label><%= l(:setting_default_projects_public) %></label>
5 <%= hidden_field_tag 'settings[default_projects_public]', 0 %>
6 <%= check_box_tag 'settings[default_projects_public]', 1, Setting.default_projects_public? %>
7 </p>
4 <p><%= setting_check_box :default_projects_public %></p>
8 5
9 <p><label><%= l(:setting_default_projects_modules) %></label>
10 <%= hidden_field_tag 'settings[default_projects_modules][]', '' %>
11 <% Redmine::AccessControl.available_project_modules.each do |m| %>
12 <label class="block">
13 <%= check_box_tag 'settings[default_projects_modules][]', m, Setting.default_projects_modules.include?(m.to_s) %>
14 <%= l_or_humanize(m, :prefix => "project_module_") %>
15 </label>
16 <% end %>
17 </p>
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>
18 8
19 <p><label><%= l(:setting_sequential_project_identifiers) %></label>
20 <%= hidden_field_tag 'settings[sequential_project_identifiers]', 0 %>
21 <%= check_box_tag 'settings[sequential_project_identifiers]', 1, Setting.sequential_project_identifiers? %>
22 </p>
9 <p><%= setting_check_box :sequential_project_identifiers %></p>
23 10
24 <p><label><%= l(:setting_new_project_user_role_id) %></label>
25 <%= select_tag('settings[new_project_user_role_id]', options_for_select([["--- #{l(:actionview_instancetag_blank_option)} ---", '']] + Role.find_all_givable.collect {|r| [r.name, r.id]}, Setting.new_project_user_role_id.to_i)) %></p>
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>
26 14 </div>
27 15
28 16 <%= submit_tag l(:button_save) %>
29 17 <% end %>
@@ -1,43 +1,29
1 1 <% form_tag({:action => 'edit', :tab => 'repositories'}) do %>
2 2
3 3 <div class="box tabular settings">
4 <p><label><%= l(:setting_autofetch_changesets) %></label>
5 <%= hidden_field_tag 'settings[autofetch_changesets]', 0 %>
6 <%= check_box_tag 'settings[autofetch_changesets]', 1, Setting.autofetch_changesets? %>
7 </p>
8
9 <p><label><%= l(:setting_sys_api_enabled) %></label>
10 <%= hidden_field_tag 'settings[sys_api_enabled]', 0 %>
11 <%= check_box_tag 'settings[sys_api_enabled]', 1, Setting.sys_api_enabled? %>
12 </p>
13
14 <p><label><%= l(:setting_enabled_scm) %></label>
15 <% REDMINE_SUPPORTED_SCM.each do |scm| -%>
16 <%= check_box_tag 'settings[enabled_scm][]', scm, Setting.enabled_scm.include?(scm) %> <%= scm %>
17 <% end -%>
18 <%= hidden_field_tag 'settings[enabled_scm][]', '' %>
19 </p>
20
21 <p><label><%= l(:setting_repositories_encodings) %></label>
22 <%= text_field_tag 'settings[repositories_encodings]', Setting.repositories_encodings, :size => 60 %><br /><em><%= l(:text_comma_separated) %></em></p>
23
24 <p><label><%= l(:setting_commit_logs_encoding) %></label>
25 <%= select_tag 'settings[commit_logs_encoding]', options_for_select(Setting::ENCODINGS, Setting.commit_logs_encoding) %></p>
26
27 <p><label><%= l(:setting_repository_log_display_limit) %></label>
28 <%= text_field_tag 'settings[repository_log_display_limit]', Setting.repository_log_display_limit, :size => 6 %></p>
4 <p><%= setting_check_box :autofetch_changesets %></p>
5
6 <p><%= setting_check_box :sys_api_enabled %></p>
7
8 <p><%= setting_multiselect(:enabled_scm, REDMINE_SUPPORTED_SCM) %></p>
9
10 <p><%= setting_text_field :repositories_encodings, :size => 60 %><br />
11 <em><%= l(:text_comma_separated) %></em></p>
12
13 <p><%= setting_select :commit_logs_encoding, Setting::ENCODINGS %></p>
14
15 <p><%= setting_text_field :repository_log_display_limit, :size => 6 %></p>
29 16 </div>
30 17
31 18 <fieldset class="box tabular settings"><legend><%= l(:text_issues_ref_in_commit_messages) %></legend>
32 <p><label><%= l(:setting_commit_ref_keywords) %></label>
33 <%= text_field_tag 'settings[commit_ref_keywords]', Setting.commit_ref_keywords, :size => 30 %><br /><em><%= l(:text_comma_separated) %></em></p>
19 <p><%= setting_text_field :commit_ref_keywords, :size => 30 %><br />
20 <em><%= l(:text_comma_separated) %></em></p>
34 21
35 <p><label><%= l(:setting_commit_fix_keywords) %></label>
36 <%= text_field_tag 'settings[commit_fix_keywords]', Setting.commit_fix_keywords, :size => 30 %>
37 &nbsp;<%= l(:label_applied_status) %>: <%= select_tag 'settings[commit_fix_status_id]', options_for_select( [["", 0]] + IssueStatus.find(:all).collect{|status| [status.name, status.id.to_s]}, Setting.commit_fix_status_id) %>
38 &nbsp;<%= l(:field_done_ratio) %>: <%= select_tag 'settings[commit_fix_done_ratio]', options_for_select( [[l(:label_no_change_option), '']] + ((0..10).to_a.collect {|r| ["#{r*10} %", "#{r*10}"] }), Setting.commit_fix_done_ratio) %>
22 <p><%= setting_text_field :commit_fix_keywords, :size => 30 %>
23 &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 %>
24 &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 %>
39 25 <br /><em><%= l(:text_comma_separated) %></em></p>
40 26 </fieldset>
41 27
42 28 <%= submit_tag l(:button_save) %>
43 29 <% end %>
@@ -1,846 +1,848
1 1 body { font-family: Verdana, sans-serif; font-size: 12px; color:#484848; margin: 0; padding: 0; min-width: 900px; }
2 2
3 3 h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, sans-serif;}
4 4 h1 {margin:0; padding:0; font-size: 24px;}
5 5 h2, .wiki h1 {font-size: 20px;padding: 2px 10px 1px 0px;margin: 0 0 10px 0; border-bottom: 1px solid #bbbbbb; color: #444;}
6 6 h3, .wiki h2 {font-size: 16px;padding: 2px 10px 1px 0px;margin: 0 0 10px 0; border-bottom: 1px solid #bbbbbb; color: #444;}
7 7 h4, .wiki h3 {font-size: 13px;padding: 2px 10px 1px 0px;margin-bottom: 5px; border-bottom: 1px dotted #bbbbbb; color: #444;}
8 8
9 9 /***** Layout *****/
10 10 #wrapper {background: white;}
11 11
12 12 #top-menu {background: #2C4056; color: #fff; height:1.8em; font-size: 0.8em; padding: 2px 2px 0px 6px;}
13 13 #top-menu ul {margin: 0; padding: 0;}
14 14 #top-menu li {
15 15 float:left;
16 16 list-style-type:none;
17 17 margin: 0px 0px 0px 0px;
18 18 padding: 0px 0px 0px 0px;
19 19 white-space:nowrap;
20 20 }
21 21 #top-menu a {color: #fff; margin-right: 8px; font-weight: bold;}
22 22 #top-menu #loggedas { float: right; margin-right: 0.5em; color: #fff; }
23 23
24 24 #account {float:right;}
25 25
26 26 #header {height:5.3em;margin:0;background-color:#507AAA;color:#f8f8f8; padding: 4px 8px 0px 6px; position:relative;}
27 27 #header a {color:#f8f8f8;}
28 28 #header h1 a.ancestor { font-size: 80%; }
29 29 #quick-search {float:right;}
30 30
31 31 #main-menu {position: absolute; bottom: 0px; left:6px; margin-right: -500px;}
32 32 #main-menu ul {margin: 0; padding: 0;}
33 33 #main-menu li {
34 34 float:left;
35 35 list-style-type:none;
36 36 margin: 0px 2px 0px 0px;
37 37 padding: 0px 0px 0px 0px;
38 38 white-space:nowrap;
39 39 }
40 40 #main-menu li a {
41 41 display: block;
42 42 color: #fff;
43 43 text-decoration: none;
44 44 font-weight: bold;
45 45 margin: 0;
46 46 padding: 4px 10px 4px 10px;
47 47 }
48 48 #main-menu li a:hover {background:#759FCF; color:#fff;}
49 49 #main-menu li a.selected, #main-menu li a.selected:hover {background:#fff; color:#555;}
50 50
51 51 #admin-menu ul {margin: 0; padding: 0;}
52 52 #admin-menu li {margin: 0; padding: 0 0 12px 0; list-style-type:none;}
53 53
54 54 #admin-menu a { background-position: 0% 40%; background-repeat: no-repeat; padding-left: 20px; padding-top: 2px; padding-bottom: 3px;}
55 55 #admin-menu a.projects { background-image: url(../images/projects.png); }
56 56 #admin-menu a.users { background-image: url(../images/user.png); }
57 57 #admin-menu a.groups { background-image: url(../images/group.png); }
58 58 #admin-menu a.roles { background-image: url(../images/database_key.png); }
59 59 #admin-menu a.trackers { background-image: url(../images/ticket.png); }
60 60 #admin-menu a.issue_statuses { background-image: url(../images/ticket_edit.png); }
61 61 #admin-menu a.workflows { background-image: url(../images/ticket_go.png); }
62 62 #admin-menu a.custom_fields { background-image: url(../images/textfield.png); }
63 63 #admin-menu a.enumerations { background-image: url(../images/text_list_bullets.png); }
64 64 #admin-menu a.settings { background-image: url(../images/changeset.png); }
65 65 #admin-menu a.plugins { background-image: url(../images/plugin.png); }
66 66 #admin-menu a.info { background-image: url(../images/help.png); }
67 67
68 68 #main {background-color:#EEEEEE;}
69 69
70 70 #sidebar{ float: right; width: 17%; position: relative; z-index: 9; min-height: 600px; padding: 0; margin: 0;}
71 71 * html #sidebar{ width: 17%; }
72 72 #sidebar h3{ font-size: 14px; margin-top:14px; color: #666; }
73 73 #sidebar hr{ width: 100%; margin: 0 auto; height: 1px; background: #ccc; border: 0; }
74 74 * html #sidebar hr{ width: 95%; position: relative; left: -6px; color: #ccc; }
75 75
76 76 #content { width: 80%; background-color: #fff; margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; z-index: 10; }
77 77 * html #content{ width: 80%; padding-left: 0; margin-top: 0px; padding: 6px 10px 10px 10px;}
78 78 html>body #content { min-height: 600px; overflow: auto; }
79 79 * html body #content { height: 600px; } /* IE */
80 80
81 81 #main.nosidebar #sidebar{ display: none; }
82 82 #main.nosidebar #content{ width: auto; border-right: 0; }
83 83
84 84 #footer {clear: both; border-top: 1px solid #bbb; font-size: 0.9em; color: #aaa; padding: 5px; text-align:center; background:#fff;}
85 85
86 86 #login-form table {margin-top:5em; padding:1em; margin-left: auto; margin-right: auto; border: 2px solid #FDBF3B; background-color:#FFEBC1; }
87 87 #login-form table td {padding: 6px;}
88 88 #login-form label {font-weight: bold;}
89 89 #login-form input#username, #login-form input#password { width: 300px; }
90 90
91 91 input#openid_url { background: url(../images/openid-bg.gif) no-repeat; background-color: #fff; background-position: 0 50%; padding-left: 18px; }
92 92
93 93 .clear:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden; }
94 94
95 95 /***** Links *****/
96 96 a, a:link, a:visited{ color: #2A5685; text-decoration: none; }
97 97 a:hover, a:active{ color: #c61a1a; text-decoration: underline;}
98 98 a img{ border: 0; }
99 99
100 100 a.issue.closed, a.issue.closed:link, a.issue.closed:visited { color: #999; text-decoration: line-through; }
101 101
102 102 /***** Tables *****/
103 103 table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; }
104 104 table.list th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; }
105 105 table.list td { vertical-align: top; }
106 106 table.list td.id { width: 2%; text-align: center;}
107 107 table.list td.checkbox { width: 15px; padding: 0px;}
108 108 table.list td.buttons { width: 15%; white-space:nowrap; text-align: right; }
109 109 table.list td.buttons a { padding-right: 0.6em; }
110 110
111 111 tr.project td.name a { padding-left: 16px; white-space:nowrap; }
112 112 tr.project.parent td.name a { background: url('../images/bullet_toggle_minus.png') no-repeat; }
113 113
114 114 tr.issue { text-align: center; white-space: nowrap; }
115 115 tr.issue td.subject, tr.issue td.category, td.assigned_to { white-space: normal; }
116 116 tr.issue td.subject { text-align: left; }
117 117 tr.issue td.done_ratio table.progress { margin-left:auto; margin-right: auto;}
118 118
119 119 tr.entry { border: 1px solid #f8f8f8; }
120 120 tr.entry td { white-space: nowrap; }
121 121 tr.entry td.filename { width: 30%; }
122 122 tr.entry td.size { text-align: right; font-size: 90%; }
123 123 tr.entry td.revision, tr.entry td.author { text-align: center; }
124 124 tr.entry td.age { text-align: right; }
125 125 tr.entry.file td.filename a { margin-left: 16px; }
126 126
127 127 tr span.expander {background-image: url(../images/bullet_toggle_plus.png); padding-left: 8px; margin-left: 0; cursor: pointer;}
128 128 tr.open span.expander {background-image: url(../images/bullet_toggle_minus.png);}
129 129
130 130 tr.changeset td.author { text-align: center; width: 15%; }
131 131 tr.changeset td.committed_on { text-align: center; width: 15%; }
132 132
133 133 table.files tr.file td { text-align: center; }
134 134 table.files tr.file td.filename { text-align: left; padding-left: 24px; }
135 135 table.files tr.file td.digest { font-size: 80%; }
136 136
137 137 table.members td.roles, table.memberships td.roles { width: 45%; }
138 138
139 139 tr.message { height: 2.6em; }
140 140 tr.message td.last_message { font-size: 80%; }
141 141 tr.message.locked td.subject a { background-image: url(../images/locked.png); }
142 142 tr.message.sticky td.subject a { background-image: url(../images/sticky.png); font-weight: bold; }
143 143
144 144 tr.version.closed, tr.version.closed a { color: #999; }
145 145 tr.version td.name { padding-left: 20px; }
146 146 tr.version.shared td.name { background: url(../images/link.png) no-repeat 0% 70%; }
147 147 tr.version td.date, tr.version td.status, tr.version td.sharing { text-align: center; }
148 148
149 149 tr.user td { width:13%; }
150 150 tr.user td.email { width:18%; }
151 151 tr.user td { white-space: nowrap; }
152 152 tr.user.locked, tr.user.registered { color: #aaa; }
153 153 tr.user.locked a, tr.user.registered a { color: #aaa; }
154 154
155 155 tr.time-entry { text-align: center; white-space: nowrap; }
156 156 tr.time-entry td.subject, tr.time-entry td.comments { text-align: left; white-space: normal; }
157 157 td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; }
158 158 td.hours .hours-dec { font-size: 0.9em; }
159 159
160 160 table.plugins td { vertical-align: middle; }
161 161 table.plugins td.configure { text-align: right; padding-right: 1em; }
162 162 table.plugins span.name { font-weight: bold; display: block; margin-bottom: 6px; }
163 163 table.plugins span.description { display: block; font-size: 0.9em; }
164 164 table.plugins span.url { display: block; font-size: 0.9em; }
165 165
166 166 table.list tbody tr.group td { padding: 0.8em 0 0.5em 0.3em; font-weight: bold; border-bottom: 1px solid #ccc; }
167 167 table.list tbody tr.group span.count { color: #aaa; font-size: 80%; }
168 168
169 169 table.list tbody tr:hover { background-color:#ffffdd; }
170 170 table.list tbody tr.group:hover { background-color:inherit; }
171 171 table td {padding:2px;}
172 172 table p {margin:0;}
173 173 .odd {background-color:#f6f7f8;}
174 174 .even {background-color: #fff;}
175 175
176 176 a.sort { padding-right: 16px; background-position: 100% 50%; background-repeat: no-repeat; }
177 177 a.sort.asc { background-image: url(../images/sort_asc.png); }
178 178 a.sort.desc { background-image: url(../images/sort_desc.png); }
179 179
180 180 table.attributes { width: 100% }
181 181 table.attributes th { vertical-align: top; text-align: left; }
182 182 table.attributes td { vertical-align: top; }
183 183
184 184 table.boards a.board, h3.comments { background: url(../images/comment.png) no-repeat 0% 50%; padding-left: 20px; }
185 185
186 186 td.center {text-align:center;}
187 187
188 188 h3.version { background: url(../images/package.png) no-repeat 0% 50%; padding-left: 20px; }
189 189
190 190 div.issues h3 { background: url(../images/ticket.png) no-repeat 0% 50%; padding-left: 20px; }
191 191 div.members h3 { background: url(../images/group.png) no-repeat 0% 50%; padding-left: 20px; }
192 192 div.news h3 { background: url(../images/news.png) no-repeat 0% 50%; padding-left: 20px; }
193 193 div.projects h3 { background: url(../images/projects.png) no-repeat 0% 50%; padding-left: 20px; }
194 194
195 195 .highlight { background-color: #FCFD8D;}
196 196 .highlight.token-1 { background-color: #faa;}
197 197 .highlight.token-2 { background-color: #afa;}
198 198 .highlight.token-3 { background-color: #aaf;}
199 199
200 200 .box{
201 201 padding:6px;
202 202 margin-bottom: 10px;
203 203 background-color:#f6f6f6;
204 204 color:#505050;
205 205 line-height:1.5em;
206 206 border: 1px solid #e4e4e4;
207 207 }
208 208
209 209 div.square {
210 210 border: 1px solid #999;
211 211 float: left;
212 212 margin: .3em .4em 0 .4em;
213 213 overflow: hidden;
214 214 width: .6em; height: .6em;
215 215 }
216 216 .contextual {float:right; white-space: nowrap; line-height:1.4em;margin-top:5px; padding-left: 10px; font-size:0.9em;}
217 217 .contextual input, .contextual select {font-size:0.9em;}
218 218 .message .contextual { margin-top: 0; }
219 219
220 220 .splitcontentleft{float:left; width:49%;}
221 221 .splitcontentright{float:right; width:49%;}
222 222 form {display: inline;}
223 223 input, select {vertical-align: middle; margin-top: 1px; margin-bottom: 1px;}
224 224 fieldset {border: 1px solid #e4e4e4; margin:0;}
225 225 legend {color: #484848;}
226 226 hr { width: 100%; height: 1px; background: #ccc; border: 0;}
227 227 blockquote { font-style: italic; border-left: 3px solid #e0e0e0; padding-left: 0.6em; margin-left: 2.4em;}
228 228 blockquote blockquote { margin-left: 0;}
229 229 acronym { border-bottom: 1px dotted; cursor: help; }
230 230 textarea.wiki-edit { width: 99%; }
231 231 li p {margin-top: 0;}
232 232 div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;}
233 233 p.breadcrumb { font-size: 0.9em; margin: 4px 0 4px 0;}
234 234 p.subtitle { font-size: 0.9em; margin: -6px 0 12px 0; font-style: italic; }
235 235 p.footnote { font-size: 0.9em; margin-top: 0px; margin-bottom: 0px; }
236 236
237 237 fieldset.collapsible { border-width: 1px 0 0 0; font-size: 0.9em; }
238 238 fieldset.collapsible legend { padding-left: 16px; background: url(../images/arrow_expanded.png) no-repeat 0% 40%; cursor:pointer; }
239 239 fieldset.collapsible.collapsed legend { background-image: url(../images/arrow_collapsed.png); }
240 240
241 241 fieldset#date-range p { margin: 2px 0 2px 0; }
242 242 fieldset#filters table { border-collapse: collapse; }
243 243 fieldset#filters table td { padding: 0; vertical-align: middle; }
244 244 fieldset#filters tr.filter { height: 2em; }
245 245 fieldset#filters td.add-filter { text-align: right; vertical-align: top; }
246 246 .buttons { font-size: 0.9em; margin-bottom: 1.4em; margin-top: 1em; }
247 247
248 248 div#issue-changesets {float:right; width:45%; margin-left: 1em; margin-bottom: 1em; background: #fff; padding-left: 1em; font-size: 90%;}
249 249 div#issue-changesets .changeset { padding: 4px;}
250 250 div#issue-changesets .changeset { border-bottom: 1px solid #ddd; }
251 251 div#issue-changesets p { margin-top: 0; margin-bottom: 1em;}
252 252
253 253 div#activity dl, #search-results { margin-left: 2em; }
254 254 div#activity dd, #search-results dd { margin-bottom: 1em; padding-left: 18px; font-size: 0.9em; }
255 255 div#activity dt, #search-results dt { margin-bottom: 0px; padding-left: 20px; line-height: 18px; background-position: 0 50%; background-repeat: no-repeat; }
256 256 div#activity dt.me .time { border-bottom: 1px solid #999; }
257 257 div#activity dt .time { color: #777; font-size: 80%; }
258 258 div#activity dd .description, #search-results dd .description { font-style: italic; }
259 259 div#activity span.project:after, #search-results span.project:after { content: " -"; }
260 260 div#activity dd span.description, #search-results dd span.description { display:block; color: #808080; }
261 261
262 262 #search-results dd { margin-bottom: 1em; padding-left: 20px; margin-left:0px; }
263 263
264 264 div#search-results-counts {float:right;}
265 265 div#search-results-counts ul { margin-top: 0.5em; }
266 266 div#search-results-counts li { list-style-type:none; float: left; margin-left: 1em; }
267 267
268 268 dt.issue { background-image: url(../images/ticket.png); }
269 269 dt.issue-edit { background-image: url(../images/ticket_edit.png); }
270 270 dt.issue-closed { background-image: url(../images/ticket_checked.png); }
271 271 dt.issue-note { background-image: url(../images/ticket_note.png); }
272 272 dt.changeset { background-image: url(../images/changeset.png); }
273 273 dt.news { background-image: url(../images/news.png); }
274 274 dt.message { background-image: url(../images/message.png); }
275 275 dt.reply { background-image: url(../images/comments.png); }
276 276 dt.wiki-page { background-image: url(../images/wiki_edit.png); }
277 277 dt.attachment { background-image: url(../images/attachment.png); }
278 278 dt.document { background-image: url(../images/document.png); }
279 279 dt.project { background-image: url(../images/projects.png); }
280 280 dt.time-entry { background-image: url(../images/time.png); }
281 281
282 282 #search-results dt.issue.closed { background-image: url(../images/ticket_checked.png); }
283 283
284 284 div#roadmap fieldset.related-issues { margin-bottom: 1em; }
285 285 div#roadmap fieldset.related-issues ul { margin-top: 0.3em; margin-bottom: 0.3em; }
286 286 div#roadmap .wiki h1:first-child { display: none; }
287 287 div#roadmap .wiki h1 { font-size: 120%; }
288 288 div#roadmap .wiki h2 { font-size: 110%; }
289 289
290 290 div#version-summary { float:right; width:380px; margin-left: 16px; margin-bottom: 16px; background-color: #fff; }
291 291 div#version-summary fieldset { margin-bottom: 1em; }
292 292 div#version-summary .total-hours { text-align: right; }
293 293
294 294 table#time-report td.hours, table#time-report th.period, table#time-report th.total { text-align: right; padding-right: 0.5em; }
295 295 table#time-report tbody tr { font-style: italic; color: #777; }
296 296 table#time-report tbody tr.last-level { font-style: normal; color: #555; }
297 297 table#time-report tbody tr.total { font-style: normal; font-weight: bold; color: #555; background-color:#EEEEEE; }
298 298 table#time-report .hours-dec { font-size: 0.9em; }
299 299
300 300 form#issue-form .attributes { margin-bottom: 8px; }
301 301 form#issue-form .attributes p { padding-top: 1px; padding-bottom: 2px; }
302 302 form#issue-form .attributes select { min-width: 30%; }
303 303
304 304 ul.projects { margin: 0; padding-left: 1em; }
305 305 ul.projects.root { margin: 0; padding: 0; }
306 306 ul.projects ul { border-left: 3px solid #e0e0e0; }
307 307 ul.projects li { list-style-type:none; }
308 308 ul.projects li.root { margin-bottom: 1em; }
309 309 ul.projects li.child { margin-top: 1em;}
310 310 ul.projects div.root a.project { font-family: "Trebuchet MS", Verdana, sans-serif; font-weight: bold; font-size: 16px; margin: 0 0 10px 0; }
311 311 .my-project { padding-left: 18px; background: url(../images/fav.png) no-repeat 0 50%; }
312 312
313 313 #tracker_project_ids ul { margin: 0; padding-left: 1em; }
314 314 #tracker_project_ids li { list-style-type:none; }
315 315
316 316 ul.properties {padding:0; font-size: 0.9em; color: #777;}
317 317 ul.properties li {list-style-type:none;}
318 318 ul.properties li span {font-style:italic;}
319 319
320 320 .total-hours { font-size: 110%; font-weight: bold; }
321 321 .total-hours span.hours-int { font-size: 120%; }
322 322
323 323 .autoscroll {overflow-x: auto; padding:1px; margin-bottom: 1.2em;}
324 324 #user_firstname, #user_lastname, #user_mail, #my_account_form select { width: 90%; }
325 325
326 326 #workflow_copy_form select { width: 200px; }
327 327
328 328 .pagination {font-size: 90%}
329 329 p.pagination {margin-top:8px;}
330 330
331 331 /***** Tabular forms ******/
332 332 .tabular p{
333 333 margin: 0;
334 334 padding: 5px 0 8px 0;
335 335 padding-left: 180px; /*width of left column containing the label elements*/
336 336 height: 1%;
337 337 clear:left;
338 338 }
339 339
340 340 html>body .tabular p {overflow:hidden;}
341 341
342 342 .tabular label{
343 343 font-weight: bold;
344 344 float: left;
345 345 text-align: right;
346 346 margin-left: -180px; /*width of left column*/
347 347 width: 175px; /*width of labels. Should be smaller than left column to create some right
348 348 margin*/
349 349 }
350 350
351 351 .tabular label.floating{
352 352 font-weight: normal;
353 353 margin-left: 0px;
354 354 text-align: left;
355 355 width: 270px;
356 356 }
357 357
358 358 .tabular label.block{
359 359 font-weight: normal;
360 360 margin-left: 0px !important;
361 361 text-align: left;
362 362 float: none;
363 363 display: block;
364 364 width: auto;
365 365 }
366 366
367 367 input#time_entry_comments { width: 90%;}
368 368
369 369 #preview fieldset {margin-top: 1em; background: url(../images/draft.png)}
370 370
371 371 .tabular.settings p{ padding-left: 300px; }
372 372 .tabular.settings label{ margin-left: -300px; width: 295px; }
373 373
374 fieldset.settings label { display: block; }
375
374 376 .required {color: #bb0000;}
375 377 .summary {font-style: italic;}
376 378
377 379 #attachments_fields input[type=text] {margin-left: 8px; }
378 380
379 381 div.attachments { margin-top: 12px; }
380 382 div.attachments p { margin:4px 0 2px 0; }
381 383 div.attachments img { vertical-align: middle; }
382 384 div.attachments span.author { font-size: 0.9em; color: #888; }
383 385
384 386 p.other-formats { text-align: right; font-size:0.9em; color: #666; }
385 387 .other-formats span + span:before { content: "| "; }
386 388
387 389 a.atom { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; }
388 390
389 391 /* Project members tab */
390 392 div#tab-content-members .splitcontentleft, div#tab-content-memberships .splitcontentleft, div#tab-content-users .splitcontentleft { width: 64% }
391 393 div#tab-content-members .splitcontentright, div#tab-content-memberships .splitcontentright, div#tab-content-users .splitcontentright { width: 34% }
392 394 div#tab-content-members fieldset, div#tab-content-memberships fieldset, div#tab-content-users fieldset { padding:1em; margin-bottom: 1em; }
393 395 div#tab-content-members fieldset legend, div#tab-content-memberships fieldset legend, div#tab-content-users fieldset legend { font-weight: bold; }
394 396 div#tab-content-members fieldset label, div#tab-content-memberships fieldset label, div#tab-content-users fieldset label { display: block; }
395 397 div#tab-content-members fieldset div, div#tab-content-users fieldset div { max-height: 400px; overflow:auto; }
396 398
397 399 table.members td.group { padding-left: 20px; background: url(../images/group.png) no-repeat 0% 50%; }
398 400
399 401 * html div#tab-content-members fieldset div { height: 450px; }
400 402
401 403 /***** Flash & error messages ****/
402 404 #errorExplanation, div.flash, .nodata, .warning {
403 405 padding: 4px 4px 4px 30px;
404 406 margin-bottom: 12px;
405 407 font-size: 1.1em;
406 408 border: 2px solid;
407 409 }
408 410
409 411 div.flash {margin-top: 8px;}
410 412
411 413 div.flash.error, #errorExplanation {
412 414 background: url(../images/false.png) 8px 5px no-repeat;
413 415 background-color: #ffe3e3;
414 416 border-color: #dd0000;
415 417 color: #550000;
416 418 }
417 419
418 420 div.flash.notice {
419 421 background: url(../images/true.png) 8px 5px no-repeat;
420 422 background-color: #dfffdf;
421 423 border-color: #9fcf9f;
422 424 color: #005f00;
423 425 }
424 426
425 427 div.flash.warning {
426 428 background: url(../images/warning.png) 8px 5px no-repeat;
427 429 background-color: #FFEBC1;
428 430 border-color: #FDBF3B;
429 431 color: #A6750C;
430 432 text-align: left;
431 433 }
432 434
433 435 .nodata, .warning {
434 436 text-align: center;
435 437 background-color: #FFEBC1;
436 438 border-color: #FDBF3B;
437 439 color: #A6750C;
438 440 }
439 441
440 442 #errorExplanation ul { font-size: 0.9em;}
441 443 #errorExplanation h2, #errorExplanation p { display: none; }
442 444
443 445 /***** Ajax indicator ******/
444 446 #ajax-indicator {
445 447 position: absolute; /* fixed not supported by IE */
446 448 background-color:#eee;
447 449 border: 1px solid #bbb;
448 450 top:35%;
449 451 left:40%;
450 452 width:20%;
451 453 font-weight:bold;
452 454 text-align:center;
453 455 padding:0.6em;
454 456 z-index:100;
455 457 filter:alpha(opacity=50);
456 458 opacity: 0.5;
457 459 }
458 460
459 461 html>body #ajax-indicator { position: fixed; }
460 462
461 463 #ajax-indicator span {
462 464 background-position: 0% 40%;
463 465 background-repeat: no-repeat;
464 466 background-image: url(../images/loading.gif);
465 467 padding-left: 26px;
466 468 vertical-align: bottom;
467 469 }
468 470
469 471 /***** Calendar *****/
470 472 table.cal {border-collapse: collapse; width: 100%; margin: 0px 0 6px 0;border: 1px solid #d7d7d7;}
471 473 table.cal thead th {width: 14%;}
472 474 table.cal tbody tr {height: 100px;}
473 475 table.cal th { background-color:#EEEEEE; padding: 4px; }
474 476 table.cal td {border: 1px solid #d7d7d7; vertical-align: top; font-size: 0.9em;}
475 477 table.cal td p.day-num {font-size: 1.1em; text-align:right;}
476 478 table.cal td.odd p.day-num {color: #bbb;}
477 479 table.cal td.today {background:#ffffdd;}
478 480 table.cal td.today p.day-num {font-weight: bold;}
479 481
480 482 /***** Tooltips ******/
481 483 .tooltip{position:relative;z-index:24;}
482 484 .tooltip:hover{z-index:25;color:#000;}
483 485 .tooltip span.tip{display: none; text-align:left;}
484 486
485 487 div.tooltip:hover span.tip{
486 488 display:block;
487 489 position:absolute;
488 490 top:12px; left:24px; width:270px;
489 491 border:1px solid #555;
490 492 background-color:#fff;
491 493 padding: 4px;
492 494 font-size: 0.8em;
493 495 color:#505050;
494 496 }
495 497
496 498 /***** Progress bar *****/
497 499 table.progress {
498 500 border: 1px solid #D7D7D7;
499 501 border-collapse: collapse;
500 502 border-spacing: 0pt;
501 503 empty-cells: show;
502 504 text-align: center;
503 505 float:left;
504 506 margin: 1px 6px 1px 0px;
505 507 }
506 508
507 509 table.progress td { height: 0.9em; }
508 510 table.progress td.closed { background: #BAE0BA none repeat scroll 0%; }
509 511 table.progress td.done { background: #DEF0DE none repeat scroll 0%; }
510 512 table.progress td.open { background: #FFF none repeat scroll 0%; }
511 513 p.pourcent {font-size: 80%;}
512 514 p.progress-info {clear: left; font-style: italic; font-size: 80%;}
513 515
514 516 /***** Tabs *****/
515 517 #content .tabs {height: 2.6em; border-bottom: 1px solid #bbbbbb; margin-bottom:1.2em; position:relative; overflow:hidden;}
516 518 #content .tabs ul {margin:0; position:absolute; bottom:-2px; padding-left:1em; width: 2000px;}
517 519 #content .tabs>ul { bottom:-1px; } /* others */
518 520 #content .tabs ul li {
519 521 float:left;
520 522 list-style-type:none;
521 523 white-space:nowrap;
522 524 margin-right:8px;
523 525 background:#fff;
524 526 }
525 527 #content .tabs ul li a{
526 528 display:block;
527 529 font-size: 0.9em;
528 530 text-decoration:none;
529 531 line-height:1.3em;
530 532 padding:4px 6px 4px 6px;
531 533 border: 1px solid #ccc;
532 534 border-bottom: 1px solid #bbbbbb;
533 535 background-color: #eeeeee;
534 536 color:#777;
535 537 font-weight:bold;
536 538 }
537 539
538 540 #content .tabs ul li a:hover {
539 541 background-color: #ffffdd;
540 542 text-decoration:none;
541 543 }
542 544
543 545 #content .tabs ul li a.selected {
544 546 background-color: #fff;
545 547 border: 1px solid #bbbbbb;
546 548 border-bottom: 1px solid #fff;
547 549 }
548 550
549 551 #content .tabs ul li a.selected:hover {
550 552 background-color: #fff;
551 553 }
552 554
553 555 div.tabs-buttons { position:absolute; right: 0; width: 48px; height: 24px; background: white; bottom: -1px; }
554 556
555 557 button.tab-left, button.tab-right {
556 558 font-size: 0.9em;
557 559 cursor: pointer;
558 560 height:24px;
559 561 border: 1px solid #ccc;
560 562 border-bottom: 1px solid #bbbbbb;
561 563 position:absolute;
562 564 padding:4px;
563 565 width: 20px;
564 566 }
565 567
566 568 button.tab-left {
567 569 right: 20px;
568 570 bottom: 0;
569 571 background: #eeeeee url(../images/bullet_arrow_left.png) no-repeat 50% 50%;
570 572 }
571 573
572 574 button.tab-right {
573 575 right: 0;
574 576 bottom: 0;
575 577 background: #eeeeee url(../images/bullet_arrow_right.png) no-repeat 50% 50%;}
576 578 }
577 579
578 580 /***** Auto-complete *****/
579 581 div.autocomplete {
580 582 position:absolute;
581 583 width:250px;
582 584 background-color:white;
583 585 margin:0;
584 586 padding:0;
585 587 }
586 588 div.autocomplete ul {
587 589 list-style-type:none;
588 590 margin:0;
589 591 padding:0;
590 592 }
591 593 div.autocomplete ul li.selected { background-color: #ffb;}
592 594 div.autocomplete ul li {
593 595 list-style-type:none;
594 596 display:block;
595 597 margin:0;
596 598 padding:2px;
597 599 cursor:pointer;
598 600 font-size: 90%;
599 601 border-bottom: 1px solid #ccc;
600 602 border-left: 1px solid #ccc;
601 603 border-right: 1px solid #ccc;
602 604 }
603 605 div.autocomplete ul li span.informal {
604 606 font-size: 80%;
605 607 color: #aaa;
606 608 }
607 609
608 610 /***** Diff *****/
609 611 .diff_out { background: #fcc; }
610 612 .diff_in { background: #cfc; }
611 613
612 614 /***** Wiki *****/
613 615 div.wiki table {
614 616 border: 1px solid #505050;
615 617 border-collapse: collapse;
616 618 margin-bottom: 1em;
617 619 }
618 620
619 621 div.wiki table, div.wiki td, div.wiki th {
620 622 border: 1px solid #bbb;
621 623 padding: 4px;
622 624 }
623 625
624 626 div.wiki .external {
625 627 background-position: 0% 60%;
626 628 background-repeat: no-repeat;
627 629 padding-left: 12px;
628 630 background-image: url(../images/external.png);
629 631 }
630 632
631 633 div.wiki a.new {
632 634 color: #b73535;
633 635 }
634 636
635 637 div.wiki pre {
636 638 margin: 1em 1em 1em 1.6em;
637 639 padding: 2px;
638 640 background-color: #fafafa;
639 641 border: 1px solid #dadada;
640 642 width:95%;
641 643 overflow-x: auto;
642 644 }
643 645
644 646 div.wiki ul.toc {
645 647 background-color: #ffffdd;
646 648 border: 1px solid #e4e4e4;
647 649 padding: 4px;
648 650 line-height: 1.2em;
649 651 margin-bottom: 12px;
650 652 margin-right: 12px;
651 653 margin-left: 0;
652 654 display: table
653 655 }
654 656 * html div.wiki ul.toc { width: 50%; } /* IE6 doesn't autosize div */
655 657
656 658 div.wiki ul.toc.right { float: right; margin-left: 12px; margin-right: 0; width: auto; }
657 659 div.wiki ul.toc.left { float: left; margin-right: 12px; margin-left: 0; width: auto; }
658 660 div.wiki ul.toc li { list-style-type:none;}
659 661 div.wiki ul.toc li.heading2 { margin-left: 6px; }
660 662 div.wiki ul.toc li.heading3 { margin-left: 12px; font-size: 0.8em; }
661 663
662 664 div.wiki ul.toc a {
663 665 font-size: 0.9em;
664 666 font-weight: normal;
665 667 text-decoration: none;
666 668 color: #606060;
667 669 }
668 670 div.wiki ul.toc a:hover { color: #c61a1a; text-decoration: underline;}
669 671
670 672 a.wiki-anchor { display: none; margin-left: 6px; text-decoration: none; }
671 673 a.wiki-anchor:hover { color: #aaa !important; text-decoration: none; }
672 674 h1:hover a.wiki-anchor, h2:hover a.wiki-anchor, h3:hover a.wiki-anchor { display: inline; color: #ddd; }
673 675
674 676 /***** My page layout *****/
675 677 .block-receiver {
676 678 border:1px dashed #c0c0c0;
677 679 margin-bottom: 20px;
678 680 padding: 15px 0 15px 0;
679 681 }
680 682
681 683 .mypage-box {
682 684 margin:0 0 20px 0;
683 685 color:#505050;
684 686 line-height:1.5em;
685 687 }
686 688
687 689 .handle {
688 690 cursor: move;
689 691 }
690 692
691 693 a.close-icon {
692 694 display:block;
693 695 margin-top:3px;
694 696 overflow:hidden;
695 697 width:12px;
696 698 height:12px;
697 699 background-repeat: no-repeat;
698 700 cursor:pointer;
699 701 background-image:url('../images/close.png');
700 702 }
701 703
702 704 a.close-icon:hover {
703 705 background-image:url('../images/close_hl.png');
704 706 }
705 707
706 708 /***** Gantt chart *****/
707 709 .gantt_hdr {
708 710 position:absolute;
709 711 top:0;
710 712 height:16px;
711 713 border-top: 1px solid #c0c0c0;
712 714 border-bottom: 1px solid #c0c0c0;
713 715 border-right: 1px solid #c0c0c0;
714 716 text-align: center;
715 717 overflow: hidden;
716 718 }
717 719
718 720 .task {
719 721 position: absolute;
720 722 height:8px;
721 723 font-size:0.8em;
722 724 color:#888;
723 725 padding:0;
724 726 margin:0;
725 727 line-height:0.8em;
726 728 }
727 729
728 730 .task_late { background:#f66 url(../images/task_late.png); border: 1px solid #f66; }
729 731 .task_done { background:#66f url(../images/task_done.png); border: 1px solid #66f; }
730 732 .task_todo { background:#aaa url(../images/task_todo.png); border: 1px solid #aaa; }
731 733 .milestone { background-image:url(../images/milestone.png); background-repeat: no-repeat; border: 0; }
732 734
733 735 /***** Icons *****/
734 736 .icon {
735 737 background-position: 0% 50%;
736 738 background-repeat: no-repeat;
737 739 padding-left: 20px;
738 740 padding-top: 2px;
739 741 padding-bottom: 3px;
740 742 }
741 743
742 744 .icon-add { background-image: url(../images/add.png); }
743 745 .icon-edit { background-image: url(../images/edit.png); }
744 746 .icon-copy { background-image: url(../images/copy.png); }
745 747 .icon-duplicate { background-image: url(../images/duplicate.png); }
746 748 .icon-del { background-image: url(../images/delete.png); }
747 749 .icon-move { background-image: url(../images/move.png); }
748 750 .icon-save { background-image: url(../images/save.png); }
749 751 .icon-cancel { background-image: url(../images/cancel.png); }
750 752 .icon-multiple { background-image: url(../images/table_multiple.png); }
751 753 .icon-folder { background-image: url(../images/folder.png); }
752 754 .open .icon-folder { background-image: url(../images/folder_open.png); }
753 755 .icon-package { background-image: url(../images/package.png); }
754 756 .icon-home { background-image: url(../images/home.png); }
755 757 .icon-user { background-image: url(../images/user.png); }
756 758 .icon-mypage { background-image: url(../images/user_page.png); }
757 759 .icon-admin { background-image: url(../images/admin.png); }
758 760 .icon-projects { background-image: url(../images/projects.png); }
759 761 .icon-help { background-image: url(../images/help.png); }
760 762 .icon-attachment { background-image: url(../images/attachment.png); }
761 763 .icon-history { background-image: url(../images/history.png); }
762 764 .icon-time { background-image: url(../images/time.png); }
763 765 .icon-time-add { background-image: url(../images/time_add.png); }
764 766 .icon-stats { background-image: url(../images/stats.png); }
765 767 .icon-warning { background-image: url(../images/warning.png); }
766 768 .icon-fav { background-image: url(../images/fav.png); }
767 769 .icon-fav-off { background-image: url(../images/fav_off.png); }
768 770 .icon-reload { background-image: url(../images/reload.png); }
769 771 .icon-lock { background-image: url(../images/locked.png); }
770 772 .icon-unlock { background-image: url(../images/unlock.png); }
771 773 .icon-checked { background-image: url(../images/true.png); }
772 774 .icon-details { background-image: url(../images/zoom_in.png); }
773 775 .icon-report { background-image: url(../images/report.png); }
774 776 .icon-comment { background-image: url(../images/comment.png); }
775 777 .icon-summary { background-image: url(../images/lightning.png); }
776 778
777 779 .icon-file { background-image: url(../images/files/default.png); }
778 780 .icon-file.text-plain { background-image: url(../images/files/text.png); }
779 781 .icon-file.text-x-c { background-image: url(../images/files/c.png); }
780 782 .icon-file.text-x-csharp { background-image: url(../images/files/csharp.png); }
781 783 .icon-file.text-x-php { background-image: url(../images/files/php.png); }
782 784 .icon-file.text-x-ruby { background-image: url(../images/files/ruby.png); }
783 785 .icon-file.text-xml { background-image: url(../images/files/xml.png); }
784 786 .icon-file.image-gif { background-image: url(../images/files/image.png); }
785 787 .icon-file.image-jpeg { background-image: url(../images/files/image.png); }
786 788 .icon-file.image-png { background-image: url(../images/files/image.png); }
787 789 .icon-file.image-tiff { background-image: url(../images/files/image.png); }
788 790 .icon-file.application-pdf { background-image: url(../images/files/pdf.png); }
789 791 .icon-file.application-zip { background-image: url(../images/files/zip.png); }
790 792 .icon-file.application-x-gzip { background-image: url(../images/files/zip.png); }
791 793
792 794 img.gravatar {
793 795 padding: 2px;
794 796 border: solid 1px #d5d5d5;
795 797 background: #fff;
796 798 }
797 799
798 800 div.issue img.gravatar {
799 801 float: right;
800 802 margin: 0 0 0 1em;
801 803 padding: 5px;
802 804 }
803 805
804 806 div.issue table img.gravatar {
805 807 height: 14px;
806 808 width: 14px;
807 809 padding: 2px;
808 810 float: left;
809 811 margin: 0 0.5em 0 0;
810 812 }
811 813
812 814 #history img.gravatar {
813 815 padding: 3px;
814 816 margin: 0 1.5em 1em 0;
815 817 float: left;
816 818 }
817 819
818 820 td.username img.gravatar {
819 821 float: left;
820 822 margin: 0 1em 0 0;
821 823 }
822 824
823 825 #activity dt img.gravatar {
824 826 float: left;
825 827 margin: 0 1em 1em 0;
826 828 }
827 829
828 830 #activity dt,
829 831 .journal {
830 832 clear: left;
831 833 }
832 834
833 835 .gravatar-margin {
834 836 margin-left: 40px;
835 837 }
836 838
837 839 h2 img { vertical-align:middle; }
838 840
839 841
840 842 /***** Media print specific styles *****/
841 843 @media print {
842 844 #top-menu, #header, #main-menu, #sidebar, #footer, .contextual, .other-formats { display:none; }
843 845 #main { background: #fff; }
844 846 #content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; overflow: visible !important;}
845 847 #wiki_add_attachment { display:none; }
846 848 }
General Comments 0
You need to be logged in to leave comments. Login now