@@ -1,126 +1,147 | |||||
1 | <%= error_messages_for 'custom_field' %> |
|
1 | <%= error_messages_for 'custom_field' %> | |
2 |
|
2 | |||
|
3 | <% if @custom_field.is_a?(IssueCustomField) %> | |||
|
4 | <div class="splitcontentleft"> | |||
|
5 | <% end %> | |||
|
6 | ||||
3 | <div class="box tabular"> |
|
7 | <div class="box tabular"> | |
4 | <p><%= f.text_field :name, :required => true %></p> |
|
8 | <p><%= f.text_field :name, :required => true %></p> | |
5 | <p><%= f.select :field_format, custom_field_formats_for_select(@custom_field), {}, :disabled => !@custom_field.new_record? %></p> |
|
9 | <p><%= f.select :field_format, custom_field_formats_for_select(@custom_field), {}, :disabled => !@custom_field.new_record? %></p> | |
6 |
|
10 | |||
7 | <% if @custom_field.format_in? 'list', 'user', 'version' %> |
|
11 | <% if @custom_field.format_in? 'list', 'user', 'version' %> | |
8 | <p> |
|
12 | <p> | |
9 | <%= f.check_box :multiple %> |
|
13 | <%= f.check_box :multiple %> | |
10 | <% if !@custom_field.new_record? && @custom_field.multiple %> |
|
14 | <% if !@custom_field.new_record? && @custom_field.multiple %> | |
11 | <em class="info"><%= l(:text_turning_multiple_off) %></em> |
|
15 | <em class="info"><%= l(:text_turning_multiple_off) %></em> | |
12 | <% end %> |
|
16 | <% end %> | |
13 | </p> |
|
17 | </p> | |
14 | <% end %> |
|
18 | <% end %> | |
15 |
|
19 | |||
16 | <% unless @custom_field.format_in? 'list', 'bool', 'date', 'user', 'version' %> |
|
20 | <% unless @custom_field.format_in? 'list', 'bool', 'date', 'user', 'version' %> | |
17 | <p><label for="custom_field_min_length"><%=l(:label_min_max_length)%></label> |
|
21 | <p><label for="custom_field_min_length"><%=l(:label_min_max_length)%></label> | |
18 | <%= f.text_field :min_length, :size => 5, :no_label => true %> - |
|
22 | <%= f.text_field :min_length, :size => 5, :no_label => true %> - | |
19 | <%= f.text_field :max_length, :size => 5, :no_label => true %><br />(<%=l(:text_min_max_length_info)%>)</p> |
|
23 | <%= f.text_field :max_length, :size => 5, :no_label => true %><br />(<%=l(:text_min_max_length_info)%>)</p> | |
20 | <p><%= f.text_field :regexp, :size => 50 %><br />(<%=l(:text_regexp_info)%>)</p> |
|
24 | <p><%= f.text_field :regexp, :size => 50 %><br />(<%=l(:text_regexp_info)%>)</p> | |
21 | <% end %> |
|
25 | <% end %> | |
22 |
|
26 | |||
23 | <% if @custom_field.format_in? 'list' %> |
|
27 | <% if @custom_field.format_in? 'list' %> | |
24 | <p> |
|
28 | <p> | |
25 | <%= f.text_area :possible_values, :value => @custom_field.possible_values.to_a.join("\n"), :rows => 15 %> |
|
29 | <%= f.text_area :possible_values, :value => @custom_field.possible_values.to_a.join("\n"), :rows => 15 %> | |
26 | <em class="info"><%= l(:text_custom_field_possible_values_info) %></em> |
|
30 | <em class="info"><%= l(:text_custom_field_possible_values_info) %></em> | |
27 | </p> |
|
31 | </p> | |
28 | <% end %> |
|
32 | <% end %> | |
29 |
|
33 | |||
30 | <% case @custom_field.field_format %> |
|
34 | <% case @custom_field.field_format %> | |
31 | <% when 'bool' %> |
|
35 | <% when 'bool' %> | |
32 | <p><%= f.check_box(:default_value) %></p> |
|
36 | <p><%= f.check_box(:default_value) %></p> | |
33 | <% when 'text' %> |
|
37 | <% when 'text' %> | |
34 | <p><%= f.text_area(:default_value, :rows => 8) %></p> |
|
38 | <p><%= f.text_area(:default_value, :rows => 8) %></p> | |
35 | <% when 'date' %> |
|
39 | <% when 'date' %> | |
36 | <p><%= f.text_field(:default_value, :size => 10) %></p> |
|
40 | <p><%= f.text_field(:default_value, :size => 10) %></p> | |
37 | <%= calendar_for('custom_field_default_value') %> |
|
41 | <%= calendar_for('custom_field_default_value') %> | |
38 | <% when 'user', 'version' %> |
|
42 | <% when 'user', 'version' %> | |
39 | <% else %> |
|
43 | <% else %> | |
40 | <p><%= f.text_field(:default_value) %></p> |
|
44 | <p><%= f.text_field(:default_value) %></p> | |
41 | <% end %> |
|
45 | <% end %> | |
42 |
|
46 | |||
43 | <%= call_hook(:view_custom_fields_form_upper_box, :custom_field => @custom_field, :form => f) %> |
|
47 | <%= call_hook(:view_custom_fields_form_upper_box, :custom_field => @custom_field, :form => f) %> | |
44 | </div> |
|
48 | </div> | |
45 |
|
49 | |||
46 | <div class="box tabular"> |
|
50 | <div class="box tabular"> | |
47 | <% case @custom_field.class.name |
|
51 | <% case @custom_field.class.name | |
48 | when "IssueCustomField" %> |
|
52 | when "IssueCustomField" %> | |
49 |
|
||||
50 | <fieldset><legend><%=l(:label_tracker_plural)%></legend> |
|
|||
51 | <% Tracker.sorted.all.each do |tracker| %> |
|
|||
52 | <%= check_box_tag "custom_field[tracker_ids][]", |
|
|||
53 | tracker.id, |
|
|||
54 | (@custom_field.trackers.include? tracker), |
|
|||
55 | :id => "custom_field_tracker_ids_#{tracker.id}" %> |
|
|||
56 | <label class="no-css" for="custom_field_tracker_ids_<%=tracker.id%>"> |
|
|||
57 | <%= h(tracker.name) %> |
|
|||
58 | </label> |
|
|||
59 | <% end %> |
|
|||
60 | <%= hidden_field_tag "custom_field[tracker_ids][]", '' %> |
|
|||
61 | </fieldset> |
|
|||
62 | |
|
|||
63 | <p><%= f.check_box :is_required %></p> |
|
53 | <p><%= f.check_box :is_required %></p> | |
64 | <p><%= f.check_box :is_for_all %></p> |
|
54 | <p><%= f.check_box :is_for_all %></p> | |
65 | <p><%= f.check_box :is_filter %></p> |
|
55 | <p><%= f.check_box :is_filter %></p> | |
66 | <p><%= f.check_box :searchable %></p> |
|
56 | <p><%= f.check_box :searchable %></p> | |
67 | <p> |
|
57 | <p> | |
68 | <label><%= l(:field_visible) %></label> |
|
58 | <label><%= l(:field_visible) %></label> | |
69 | <label class="block"> |
|
59 | <label class="block"> | |
70 | <%= radio_button_tag 'custom_field[visible]', 1, @custom_field.visible?, :id => 'custom_field_visible_on' %> |
|
60 | <%= radio_button_tag 'custom_field[visible]', 1, @custom_field.visible?, :id => 'custom_field_visible_on' %> | |
71 | <%= l(:label_visibility_public) %> |
|
61 | <%= l(:label_visibility_public) %> | |
72 | </label> |
|
62 | </label> | |
73 | <label class="block"> |
|
63 | <label class="block"> | |
74 | <%= radio_button_tag 'custom_field[visible]', 0, !@custom_field.visible?, :id => 'custom_field_visible_off' %> |
|
64 | <%= radio_button_tag 'custom_field[visible]', 0, !@custom_field.visible?, :id => 'custom_field_visible_off' %> | |
75 | <%= l(:label_visibility_roles) %>: |
|
65 | <%= l(:label_visibility_roles) %>: | |
76 | </label> |
|
66 | </label> | |
77 | <% Role.givable.sorted.each do |role| %> |
|
67 | <% Role.givable.sorted.each do |role| %> | |
78 | <label class="block custom_field_role" style="padding-left:2em;"> |
|
68 | <label class="block custom_field_role" style="padding-left:2em;"> | |
79 | <%= check_box_tag 'custom_field[role_ids][]', role.id, @custom_field.roles.include?(role) %> |
|
69 | <%= check_box_tag 'custom_field[role_ids][]', role.id, @custom_field.roles.include?(role) %> | |
80 | <%= role.name %> |
|
70 | <%= role.name %> | |
81 | </label> |
|
71 | </label> | |
82 | <% end %> |
|
72 | <% end %> | |
83 | <%= hidden_field_tag 'custom_field[role_ids][]', '' %> |
|
73 | <%= hidden_field_tag 'custom_field[role_ids][]', '' %> | |
84 | </p> |
|
74 | </p> | |
85 |
|
75 | |||
86 | <% when "UserCustomField" %> |
|
76 | <% when "UserCustomField" %> | |
87 | <p><%= f.check_box :is_required %></p> |
|
77 | <p><%= f.check_box :is_required %></p> | |
88 | <p><%= f.check_box :visible %></p> |
|
78 | <p><%= f.check_box :visible %></p> | |
89 | <p><%= f.check_box :editable %></p> |
|
79 | <p><%= f.check_box :editable %></p> | |
90 | <p><%= f.check_box :is_filter %></p> |
|
80 | <p><%= f.check_box :is_filter %></p> | |
91 |
|
81 | |||
92 | <% when "ProjectCustomField" %> |
|
82 | <% when "ProjectCustomField" %> | |
93 | <p><%= f.check_box :is_required %></p> |
|
83 | <p><%= f.check_box :is_required %></p> | |
94 | <p><%= f.check_box :visible %></p> |
|
84 | <p><%= f.check_box :visible %></p> | |
95 | <p><%= f.check_box :searchable %></p> |
|
85 | <p><%= f.check_box :searchable %></p> | |
96 | <p><%= f.check_box :is_filter %></p> |
|
86 | <p><%= f.check_box :is_filter %></p> | |
97 |
|
87 | |||
98 | <% when "VersionCustomField" %> |
|
88 | <% when "VersionCustomField" %> | |
99 | <p><%= f.check_box :is_required %></p> |
|
89 | <p><%= f.check_box :is_required %></p> | |
100 | <p><%= f.check_box :is_filter %></p> |
|
90 | <p><%= f.check_box :is_filter %></p> | |
101 |
|
91 | |||
102 | <% when "GroupCustomField" %> |
|
92 | <% when "GroupCustomField" %> | |
103 | <p><%= f.check_box :is_required %></p> |
|
93 | <p><%= f.check_box :is_required %></p> | |
104 | <p><%= f.check_box :is_filter %></p> |
|
94 | <p><%= f.check_box :is_filter %></p> | |
105 |
|
95 | |||
106 | <% when "TimeEntryCustomField" %> |
|
96 | <% when "TimeEntryCustomField" %> | |
107 | <p><%= f.check_box :is_required %></p> |
|
97 | <p><%= f.check_box :is_required %></p> | |
108 | <p><%= f.check_box :is_filter %></p> |
|
98 | <p><%= f.check_box :is_filter %></p> | |
109 |
|
99 | |||
110 | <% else %> |
|
100 | <% else %> | |
111 | <p><%= f.check_box :is_required %></p> |
|
101 | <p><%= f.check_box :is_required %></p> | |
112 |
|
102 | |||
113 | <% end %> |
|
103 | <% end %> | |
114 | <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %> |
|
104 | <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %> | |
115 | </div> |
|
105 | </div> | |
|
106 | <%= submit_tag l(:button_save) %> | |||
|
107 | ||||
|
108 | <% if @custom_field.is_a?(IssueCustomField) %> | |||
|
109 | </div> | |||
|
110 | <div class="splitcontentright"> | |||
|
111 | <fieldset class="box"><legend><%=l(:label_tracker_plural)%></legend> | |||
|
112 | <% Tracker.sorted.all.each do |tracker| %> | |||
|
113 | <%= check_box_tag "custom_field[tracker_ids][]", | |||
|
114 | tracker.id, | |||
|
115 | (@custom_field.trackers.include? tracker), | |||
|
116 | :id => "custom_field_tracker_ids_#{tracker.id}" %> | |||
|
117 | <label class="no-css" for="custom_field_tracker_ids_<%=tracker.id%>"> | |||
|
118 | <%= h(tracker.name) %> | |||
|
119 | </label> | |||
|
120 | <% end %> | |||
|
121 | <%= hidden_field_tag "custom_field[tracker_ids][]", '' %> | |||
|
122 | </fieldset> | |||
|
123 | ||||
|
124 | <fieldset class="box" id="custom_field_project_ids"><legend><%= l(:label_project_plural) %></legend> | |||
|
125 | <%= render_project_nested_lists(Project.all) do |p| | |||
|
126 | content_tag('label', check_box_tag('custom_field[project_ids][]', p.id, @custom_field.projects.to_a.include?(p), :id => nil) + ' ' + h(p)) | |||
|
127 | end %> | |||
|
128 | <%= hidden_field_tag('custom_field[project_ids][]', '', :id => nil) %> | |||
|
129 | <p><%= check_all_links 'custom_field_project_ids' %></p> | |||
|
130 | </fieldset> | |||
|
131 | </div> | |||
|
132 | <% end %> | |||
116 |
|
133 | |||
117 | <% include_calendar_headers_tags %> |
|
134 | <% include_calendar_headers_tags %> | |
118 |
|
135 | |||
119 | <%= javascript_tag do %> |
|
136 | <%= javascript_tag do %> | |
120 | function toggleCustomFieldRoles(){ |
|
137 | function toggleCustomFieldRoles(){ | |
121 | var checked = $("#custom_field_visible_on").is(':checked'); |
|
138 | var checked = $("#custom_field_visible_on").is(':checked'); | |
122 | $('.custom_field_role input').attr('disabled', checked); |
|
139 | $('.custom_field_role input').attr('disabled', checked); | |
123 | } |
|
140 | } | |
124 | $("#custom_field_visible_on, #custom_field_visible_off").change(toggleCustomFieldRoles); |
|
141 | $("#custom_field_visible_on, #custom_field_visible_off").change(toggleCustomFieldRoles); | |
125 | $(document).ready(toggleCustomFieldRoles); |
|
142 | $(document).ready(toggleCustomFieldRoles); | |
|
143 | ||||
|
144 | $("#custom_field_is_for_all").change(function(){ | |||
|
145 | $("#custom_field_project_ids input").attr("disabled", $(this).is(":checked")); | |||
|
146 | }).trigger('change'); | |||
126 | <% end %> |
|
147 | <% end %> |
@@ -1,8 +1,7 | |||||
1 | <%= title [l(:label_custom_field_plural), custom_fields_path], |
|
1 | <%= title [l(:label_custom_field_plural), custom_fields_path], | |
2 | [l(@custom_field.type_name), custom_fields_path(:tab => @custom_field.class.name)], |
|
2 | [l(@custom_field.type_name), custom_fields_path(:tab => @custom_field.class.name)], | |
3 | @custom_field.name %> |
|
3 | @custom_field.name %> | |
4 |
|
4 | |||
5 | <%= labelled_form_for :custom_field, @custom_field, :url => custom_field_path(@custom_field), :html => {:method => :put, :id => 'custom_field_form'} do |f| %> |
|
5 | <%= labelled_form_for :custom_field, @custom_field, :url => custom_field_path(@custom_field), :html => {:method => :put, :id => 'custom_field_form'} do |f| %> | |
6 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
6 | <%= render :partial => 'form', :locals => { :f => f } %> | |
7 | <%= submit_tag l(:button_save) %> |
|
|||
8 | <% end %> |
|
7 | <% end %> |
@@ -1,19 +1,18 | |||||
1 | <%= title [l(:label_custom_field_plural), custom_fields_path], |
|
1 | <%= title [l(:label_custom_field_plural), custom_fields_path], | |
2 | [l(@custom_field.type_name), custom_fields_path(:tab => @custom_field.class.name)], |
|
2 | [l(@custom_field.type_name), custom_fields_path(:tab => @custom_field.class.name)], | |
3 | l(:label_custom_field_new) %> |
|
3 | l(:label_custom_field_new) %> | |
4 |
|
4 | |||
5 | <%= labelled_form_for :custom_field, @custom_field, :url => custom_fields_path, :html => {:id => 'custom_field_form'} do |f| %> |
|
5 | <%= labelled_form_for :custom_field, @custom_field, :url => custom_fields_path, :html => {:id => 'custom_field_form'} do |f| %> | |
6 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
6 | <%= render :partial => 'form', :locals => { :f => f } %> | |
7 | <%= hidden_field_tag 'type', @custom_field.type %> |
|
7 | <%= hidden_field_tag 'type', @custom_field.type %> | |
8 | <%= submit_tag l(:button_save) %> |
|
|||
9 | <% end %> |
|
8 | <% end %> | |
10 |
|
9 | |||
11 | <%= javascript_tag do %> |
|
10 | <%= javascript_tag do %> | |
12 | $('#custom_field_field_format').change(function(){ |
|
11 | $('#custom_field_field_format').change(function(){ | |
13 | $.ajax({ |
|
12 | $.ajax({ | |
14 | url: '<%= new_custom_field_path(:format => 'js') %>', |
|
13 | url: '<%= new_custom_field_path(:format => 'js') %>', | |
15 | type: 'get', |
|
14 | type: 'get', | |
16 | data: $('#custom_field_form').serialize() |
|
15 | data: $('#custom_field_form').serialize() | |
17 | }); |
|
16 | }); | |
18 | }); |
|
17 | }); | |
19 | <% end %> |
|
18 | <% end %> |
@@ -1,596 +1,592 | |||||
1 | /* Redmine - project management software |
|
1 | /* Redmine - project management software | |
2 | Copyright (C) 2006-2013 Jean-Philippe Lang */ |
|
2 | Copyright (C) 2006-2013 Jean-Philippe Lang */ | |
3 |
|
3 | |||
4 | function checkAll(id, checked) { |
|
4 | function checkAll(id, checked) { | |
5 | if (checked) { |
|
5 | $('#'+id).find('input[type=checkbox]:enabled').attr('checked', checked); | |
6 | $('#'+id).find('input[type=checkbox]').attr('checked', true); |
|
|||
7 | } else { |
|
|||
8 | $('#'+id).find('input[type=checkbox]').removeAttr('checked'); |
|
|||
9 | } |
|
|||
10 | } |
|
6 | } | |
11 |
|
7 | |||
12 | function toggleCheckboxesBySelector(selector) { |
|
8 | function toggleCheckboxesBySelector(selector) { | |
13 | var all_checked = true; |
|
9 | var all_checked = true; | |
14 | $(selector).each(function(index) { |
|
10 | $(selector).each(function(index) { | |
15 | if (!$(this).is(':checked')) { all_checked = false; } |
|
11 | if (!$(this).is(':checked')) { all_checked = false; } | |
16 | }); |
|
12 | }); | |
17 | $(selector).attr('checked', !all_checked); |
|
13 | $(selector).attr('checked', !all_checked); | |
18 | } |
|
14 | } | |
19 |
|
15 | |||
20 | function showAndScrollTo(id, focus) { |
|
16 | function showAndScrollTo(id, focus) { | |
21 | $('#'+id).show(); |
|
17 | $('#'+id).show(); | |
22 | if (focus !== null) { |
|
18 | if (focus !== null) { | |
23 | $('#'+focus).focus(); |
|
19 | $('#'+focus).focus(); | |
24 | } |
|
20 | } | |
25 | $('html, body').animate({scrollTop: $('#'+id).offset().top}, 100); |
|
21 | $('html, body').animate({scrollTop: $('#'+id).offset().top}, 100); | |
26 | } |
|
22 | } | |
27 |
|
23 | |||
28 | function toggleRowGroup(el) { |
|
24 | function toggleRowGroup(el) { | |
29 | var tr = $(el).parents('tr').first(); |
|
25 | var tr = $(el).parents('tr').first(); | |
30 | var n = tr.next(); |
|
26 | var n = tr.next(); | |
31 | tr.toggleClass('open'); |
|
27 | tr.toggleClass('open'); | |
32 | while (n.length && !n.hasClass('group')) { |
|
28 | while (n.length && !n.hasClass('group')) { | |
33 | n.toggle(); |
|
29 | n.toggle(); | |
34 | n = n.next('tr'); |
|
30 | n = n.next('tr'); | |
35 | } |
|
31 | } | |
36 | } |
|
32 | } | |
37 |
|
33 | |||
38 | function collapseAllRowGroups(el) { |
|
34 | function collapseAllRowGroups(el) { | |
39 | var tbody = $(el).parents('tbody').first(); |
|
35 | var tbody = $(el).parents('tbody').first(); | |
40 | tbody.children('tr').each(function(index) { |
|
36 | tbody.children('tr').each(function(index) { | |
41 | if ($(this).hasClass('group')) { |
|
37 | if ($(this).hasClass('group')) { | |
42 | $(this).removeClass('open'); |
|
38 | $(this).removeClass('open'); | |
43 | } else { |
|
39 | } else { | |
44 | $(this).hide(); |
|
40 | $(this).hide(); | |
45 | } |
|
41 | } | |
46 | }); |
|
42 | }); | |
47 | } |
|
43 | } | |
48 |
|
44 | |||
49 | function expandAllRowGroups(el) { |
|
45 | function expandAllRowGroups(el) { | |
50 | var tbody = $(el).parents('tbody').first(); |
|
46 | var tbody = $(el).parents('tbody').first(); | |
51 | tbody.children('tr').each(function(index) { |
|
47 | tbody.children('tr').each(function(index) { | |
52 | if ($(this).hasClass('group')) { |
|
48 | if ($(this).hasClass('group')) { | |
53 | $(this).addClass('open'); |
|
49 | $(this).addClass('open'); | |
54 | } else { |
|
50 | } else { | |
55 | $(this).show(); |
|
51 | $(this).show(); | |
56 | } |
|
52 | } | |
57 | }); |
|
53 | }); | |
58 | } |
|
54 | } | |
59 |
|
55 | |||
60 | function toggleAllRowGroups(el) { |
|
56 | function toggleAllRowGroups(el) { | |
61 | var tr = $(el).parents('tr').first(); |
|
57 | var tr = $(el).parents('tr').first(); | |
62 | if (tr.hasClass('open')) { |
|
58 | if (tr.hasClass('open')) { | |
63 | collapseAllRowGroups(el); |
|
59 | collapseAllRowGroups(el); | |
64 | } else { |
|
60 | } else { | |
65 | expandAllRowGroups(el); |
|
61 | expandAllRowGroups(el); | |
66 | } |
|
62 | } | |
67 | } |
|
63 | } | |
68 |
|
64 | |||
69 | function toggleFieldset(el) { |
|
65 | function toggleFieldset(el) { | |
70 | var fieldset = $(el).parents('fieldset').first(); |
|
66 | var fieldset = $(el).parents('fieldset').first(); | |
71 | fieldset.toggleClass('collapsed'); |
|
67 | fieldset.toggleClass('collapsed'); | |
72 | fieldset.children('div').toggle(); |
|
68 | fieldset.children('div').toggle(); | |
73 | } |
|
69 | } | |
74 |
|
70 | |||
75 | function hideFieldset(el) { |
|
71 | function hideFieldset(el) { | |
76 | var fieldset = $(el).parents('fieldset').first(); |
|
72 | var fieldset = $(el).parents('fieldset').first(); | |
77 | fieldset.toggleClass('collapsed'); |
|
73 | fieldset.toggleClass('collapsed'); | |
78 | fieldset.children('div').hide(); |
|
74 | fieldset.children('div').hide(); | |
79 | } |
|
75 | } | |
80 |
|
76 | |||
81 | function initFilters() { |
|
77 | function initFilters() { | |
82 | $('#add_filter_select').change(function() { |
|
78 | $('#add_filter_select').change(function() { | |
83 | addFilter($(this).val(), '', []); |
|
79 | addFilter($(this).val(), '', []); | |
84 | }); |
|
80 | }); | |
85 | $('#filters-table td.field input[type=checkbox]').each(function() { |
|
81 | $('#filters-table td.field input[type=checkbox]').each(function() { | |
86 | toggleFilter($(this).val()); |
|
82 | toggleFilter($(this).val()); | |
87 | }); |
|
83 | }); | |
88 | $('#filters-table td.field input[type=checkbox]').live('click', function() { |
|
84 | $('#filters-table td.field input[type=checkbox]').live('click', function() { | |
89 | toggleFilter($(this).val()); |
|
85 | toggleFilter($(this).val()); | |
90 | }); |
|
86 | }); | |
91 | $('#filters-table .toggle-multiselect').live('click', function() { |
|
87 | $('#filters-table .toggle-multiselect').live('click', function() { | |
92 | toggleMultiSelect($(this).siblings('select')); |
|
88 | toggleMultiSelect($(this).siblings('select')); | |
93 | }); |
|
89 | }); | |
94 | $('#filters-table input[type=text]').live('keypress', function(e) { |
|
90 | $('#filters-table input[type=text]').live('keypress', function(e) { | |
95 | if (e.keyCode == 13) submit_query_form("query_form"); |
|
91 | if (e.keyCode == 13) submit_query_form("query_form"); | |
96 | }); |
|
92 | }); | |
97 | } |
|
93 | } | |
98 |
|
94 | |||
99 | function addFilter(field, operator, values) { |
|
95 | function addFilter(field, operator, values) { | |
100 | var fieldId = field.replace('.', '_'); |
|
96 | var fieldId = field.replace('.', '_'); | |
101 | var tr = $('#tr_'+fieldId); |
|
97 | var tr = $('#tr_'+fieldId); | |
102 | if (tr.length > 0) { |
|
98 | if (tr.length > 0) { | |
103 | tr.show(); |
|
99 | tr.show(); | |
104 | } else { |
|
100 | } else { | |
105 | buildFilterRow(field, operator, values); |
|
101 | buildFilterRow(field, operator, values); | |
106 | } |
|
102 | } | |
107 | $('#cb_'+fieldId).attr('checked', true); |
|
103 | $('#cb_'+fieldId).attr('checked', true); | |
108 | toggleFilter(field); |
|
104 | toggleFilter(field); | |
109 | $('#add_filter_select').val('').children('option').each(function() { |
|
105 | $('#add_filter_select').val('').children('option').each(function() { | |
110 | if ($(this).attr('value') == field) { |
|
106 | if ($(this).attr('value') == field) { | |
111 | $(this).attr('disabled', true); |
|
107 | $(this).attr('disabled', true); | |
112 | } |
|
108 | } | |
113 | }); |
|
109 | }); | |
114 | } |
|
110 | } | |
115 |
|
111 | |||
116 | function buildFilterRow(field, operator, values) { |
|
112 | function buildFilterRow(field, operator, values) { | |
117 | var fieldId = field.replace('.', '_'); |
|
113 | var fieldId = field.replace('.', '_'); | |
118 | var filterTable = $("#filters-table"); |
|
114 | var filterTable = $("#filters-table"); | |
119 | var filterOptions = availableFilters[field]; |
|
115 | var filterOptions = availableFilters[field]; | |
120 | var operators = operatorByType[filterOptions['type']]; |
|
116 | var operators = operatorByType[filterOptions['type']]; | |
121 | var filterValues = filterOptions['values']; |
|
117 | var filterValues = filterOptions['values']; | |
122 | var i, select; |
|
118 | var i, select; | |
123 |
|
119 | |||
124 | var tr = $('<tr class="filter">').attr('id', 'tr_'+fieldId).html( |
|
120 | var tr = $('<tr class="filter">').attr('id', 'tr_'+fieldId).html( | |
125 | '<td class="field"><input checked="checked" id="cb_'+fieldId+'" name="f[]" value="'+field+'" type="checkbox"><label for="cb_'+fieldId+'"> '+filterOptions['name']+'</label></td>' + |
|
121 | '<td class="field"><input checked="checked" id="cb_'+fieldId+'" name="f[]" value="'+field+'" type="checkbox"><label for="cb_'+fieldId+'"> '+filterOptions['name']+'</label></td>' + | |
126 | '<td class="operator"><select id="operators_'+fieldId+'" name="op['+field+']"></td>' + |
|
122 | '<td class="operator"><select id="operators_'+fieldId+'" name="op['+field+']"></td>' + | |
127 | '<td class="values"></td>' |
|
123 | '<td class="values"></td>' | |
128 | ); |
|
124 | ); | |
129 | filterTable.append(tr); |
|
125 | filterTable.append(tr); | |
130 |
|
126 | |||
131 | select = tr.find('td.operator select'); |
|
127 | select = tr.find('td.operator select'); | |
132 | for (i = 0; i < operators.length; i++) { |
|
128 | for (i = 0; i < operators.length; i++) { | |
133 | var option = $('<option>').val(operators[i]).text(operatorLabels[operators[i]]); |
|
129 | var option = $('<option>').val(operators[i]).text(operatorLabels[operators[i]]); | |
134 | if (operators[i] == operator) { option.attr('selected', true); } |
|
130 | if (operators[i] == operator) { option.attr('selected', true); } | |
135 | select.append(option); |
|
131 | select.append(option); | |
136 | } |
|
132 | } | |
137 | select.change(function(){ toggleOperator(field); }); |
|
133 | select.change(function(){ toggleOperator(field); }); | |
138 |
|
134 | |||
139 | switch (filterOptions['type']) { |
|
135 | switch (filterOptions['type']) { | |
140 | case "list": |
|
136 | case "list": | |
141 | case "list_optional": |
|
137 | case "list_optional": | |
142 | case "list_status": |
|
138 | case "list_status": | |
143 | case "list_subprojects": |
|
139 | case "list_subprojects": | |
144 | tr.find('td.values').append( |
|
140 | tr.find('td.values').append( | |
145 | '<span style="display:none;"><select class="value" id="values_'+fieldId+'_1" name="v['+field+'][]"></select>' + |
|
141 | '<span style="display:none;"><select class="value" id="values_'+fieldId+'_1" name="v['+field+'][]"></select>' + | |
146 | ' <span class="toggle-multiselect"> </span></span>' |
|
142 | ' <span class="toggle-multiselect"> </span></span>' | |
147 | ); |
|
143 | ); | |
148 | select = tr.find('td.values select'); |
|
144 | select = tr.find('td.values select'); | |
149 | if (values.length > 1) { select.attr('multiple', true); } |
|
145 | if (values.length > 1) { select.attr('multiple', true); } | |
150 | for (i = 0; i < filterValues.length; i++) { |
|
146 | for (i = 0; i < filterValues.length; i++) { | |
151 | var filterValue = filterValues[i]; |
|
147 | var filterValue = filterValues[i]; | |
152 | var option = $('<option>'); |
|
148 | var option = $('<option>'); | |
153 | if ($.isArray(filterValue)) { |
|
149 | if ($.isArray(filterValue)) { | |
154 | option.val(filterValue[1]).text(filterValue[0]); |
|
150 | option.val(filterValue[1]).text(filterValue[0]); | |
155 | if ($.inArray(filterValue[1], values) > -1) {option.attr('selected', true);} |
|
151 | if ($.inArray(filterValue[1], values) > -1) {option.attr('selected', true);} | |
156 | } else { |
|
152 | } else { | |
157 | option.val(filterValue).text(filterValue); |
|
153 | option.val(filterValue).text(filterValue); | |
158 | if ($.inArray(filterValue, values) > -1) {option.attr('selected', true);} |
|
154 | if ($.inArray(filterValue, values) > -1) {option.attr('selected', true);} | |
159 | } |
|
155 | } | |
160 | select.append(option); |
|
156 | select.append(option); | |
161 | } |
|
157 | } | |
162 | break; |
|
158 | break; | |
163 | case "date": |
|
159 | case "date": | |
164 | case "date_past": |
|
160 | case "date_past": | |
165 | tr.find('td.values').append( |
|
161 | tr.find('td.values').append( | |
166 | '<span style="display:none;"><input type="text" name="v['+field+'][]" id="values_'+fieldId+'_1" size="10" class="value date_value" /></span>' + |
|
162 | '<span style="display:none;"><input type="text" name="v['+field+'][]" id="values_'+fieldId+'_1" size="10" class="value date_value" /></span>' + | |
167 | ' <span style="display:none;"><input type="text" name="v['+field+'][]" id="values_'+fieldId+'_2" size="10" class="value date_value" /></span>' + |
|
163 | ' <span style="display:none;"><input type="text" name="v['+field+'][]" id="values_'+fieldId+'_2" size="10" class="value date_value" /></span>' + | |
168 | ' <span style="display:none;"><input type="text" name="v['+field+'][]" id="values_'+fieldId+'" size="3" class="value" /> '+labelDayPlural+'</span>' |
|
164 | ' <span style="display:none;"><input type="text" name="v['+field+'][]" id="values_'+fieldId+'" size="3" class="value" /> '+labelDayPlural+'</span>' | |
169 | ); |
|
165 | ); | |
170 | $('#values_'+fieldId+'_1').val(values[0]).datepicker(datepickerOptions); |
|
166 | $('#values_'+fieldId+'_1').val(values[0]).datepicker(datepickerOptions); | |
171 | $('#values_'+fieldId+'_2').val(values[1]).datepicker(datepickerOptions); |
|
167 | $('#values_'+fieldId+'_2').val(values[1]).datepicker(datepickerOptions); | |
172 | $('#values_'+fieldId).val(values[0]); |
|
168 | $('#values_'+fieldId).val(values[0]); | |
173 | break; |
|
169 | break; | |
174 | case "string": |
|
170 | case "string": | |
175 | case "text": |
|
171 | case "text": | |
176 | tr.find('td.values').append( |
|
172 | tr.find('td.values').append( | |
177 | '<span style="display:none;"><input type="text" name="v['+field+'][]" id="values_'+fieldId+'" size="30" class="value" /></span>' |
|
173 | '<span style="display:none;"><input type="text" name="v['+field+'][]" id="values_'+fieldId+'" size="30" class="value" /></span>' | |
178 | ); |
|
174 | ); | |
179 | $('#values_'+fieldId).val(values[0]); |
|
175 | $('#values_'+fieldId).val(values[0]); | |
180 | break; |
|
176 | break; | |
181 | case "relation": |
|
177 | case "relation": | |
182 | tr.find('td.values').append( |
|
178 | tr.find('td.values').append( | |
183 | '<span style="display:none;"><input type="text" name="v['+field+'][]" id="values_'+fieldId+'" size="6" class="value" /></span>' + |
|
179 | '<span style="display:none;"><input type="text" name="v['+field+'][]" id="values_'+fieldId+'" size="6" class="value" /></span>' + | |
184 | '<span style="display:none;"><select class="value" name="v['+field+'][]" id="values_'+fieldId+'_1"></select></span>' |
|
180 | '<span style="display:none;"><select class="value" name="v['+field+'][]" id="values_'+fieldId+'_1"></select></span>' | |
185 | ); |
|
181 | ); | |
186 | $('#values_'+fieldId).val(values[0]); |
|
182 | $('#values_'+fieldId).val(values[0]); | |
187 | select = tr.find('td.values select'); |
|
183 | select = tr.find('td.values select'); | |
188 | for (i = 0; i < allProjects.length; i++) { |
|
184 | for (i = 0; i < allProjects.length; i++) { | |
189 | var filterValue = allProjects[i]; |
|
185 | var filterValue = allProjects[i]; | |
190 | var option = $('<option>'); |
|
186 | var option = $('<option>'); | |
191 | option.val(filterValue[1]).text(filterValue[0]); |
|
187 | option.val(filterValue[1]).text(filterValue[0]); | |
192 | if (values[0] == filterValue[1]) { option.attr('selected', true); } |
|
188 | if (values[0] == filterValue[1]) { option.attr('selected', true); } | |
193 | select.append(option); |
|
189 | select.append(option); | |
194 | } |
|
190 | } | |
195 | case "integer": |
|
191 | case "integer": | |
196 | case "float": |
|
192 | case "float": | |
197 | tr.find('td.values').append( |
|
193 | tr.find('td.values').append( | |
198 | '<span style="display:none;"><input type="text" name="v['+field+'][]" id="values_'+fieldId+'_1" size="6" class="value" /></span>' + |
|
194 | '<span style="display:none;"><input type="text" name="v['+field+'][]" id="values_'+fieldId+'_1" size="6" class="value" /></span>' + | |
199 | ' <span style="display:none;"><input type="text" name="v['+field+'][]" id="values_'+fieldId+'_2" size="6" class="value" /></span>' |
|
195 | ' <span style="display:none;"><input type="text" name="v['+field+'][]" id="values_'+fieldId+'_2" size="6" class="value" /></span>' | |
200 | ); |
|
196 | ); | |
201 | $('#values_'+fieldId+'_1').val(values[0]); |
|
197 | $('#values_'+fieldId+'_1').val(values[0]); | |
202 | $('#values_'+fieldId+'_2').val(values[1]); |
|
198 | $('#values_'+fieldId+'_2').val(values[1]); | |
203 | break; |
|
199 | break; | |
204 | } |
|
200 | } | |
205 | } |
|
201 | } | |
206 |
|
202 | |||
207 | function toggleFilter(field) { |
|
203 | function toggleFilter(field) { | |
208 | var fieldId = field.replace('.', '_'); |
|
204 | var fieldId = field.replace('.', '_'); | |
209 | if ($('#cb_' + fieldId).is(':checked')) { |
|
205 | if ($('#cb_' + fieldId).is(':checked')) { | |
210 | $("#operators_" + fieldId).show().removeAttr('disabled'); |
|
206 | $("#operators_" + fieldId).show().removeAttr('disabled'); | |
211 | toggleOperator(field); |
|
207 | toggleOperator(field); | |
212 | } else { |
|
208 | } else { | |
213 | $("#operators_" + fieldId).hide().attr('disabled', true); |
|
209 | $("#operators_" + fieldId).hide().attr('disabled', true); | |
214 | enableValues(field, []); |
|
210 | enableValues(field, []); | |
215 | } |
|
211 | } | |
216 | } |
|
212 | } | |
217 |
|
213 | |||
218 | function enableValues(field, indexes) { |
|
214 | function enableValues(field, indexes) { | |
219 | var fieldId = field.replace('.', '_'); |
|
215 | var fieldId = field.replace('.', '_'); | |
220 | $('#tr_'+fieldId+' td.values .value').each(function(index) { |
|
216 | $('#tr_'+fieldId+' td.values .value').each(function(index) { | |
221 | if ($.inArray(index, indexes) >= 0) { |
|
217 | if ($.inArray(index, indexes) >= 0) { | |
222 | $(this).removeAttr('disabled'); |
|
218 | $(this).removeAttr('disabled'); | |
223 | $(this).parents('span').first().show(); |
|
219 | $(this).parents('span').first().show(); | |
224 | } else { |
|
220 | } else { | |
225 | $(this).val(''); |
|
221 | $(this).val(''); | |
226 | $(this).attr('disabled', true); |
|
222 | $(this).attr('disabled', true); | |
227 | $(this).parents('span').first().hide(); |
|
223 | $(this).parents('span').first().hide(); | |
228 | } |
|
224 | } | |
229 |
|
225 | |||
230 | if ($(this).hasClass('group')) { |
|
226 | if ($(this).hasClass('group')) { | |
231 | $(this).addClass('open'); |
|
227 | $(this).addClass('open'); | |
232 | } else { |
|
228 | } else { | |
233 | $(this).show(); |
|
229 | $(this).show(); | |
234 | } |
|
230 | } | |
235 | }); |
|
231 | }); | |
236 | } |
|
232 | } | |
237 |
|
233 | |||
238 | function toggleOperator(field) { |
|
234 | function toggleOperator(field) { | |
239 | var fieldId = field.replace('.', '_'); |
|
235 | var fieldId = field.replace('.', '_'); | |
240 | var operator = $("#operators_" + fieldId); |
|
236 | var operator = $("#operators_" + fieldId); | |
241 | switch (operator.val()) { |
|
237 | switch (operator.val()) { | |
242 | case "!*": |
|
238 | case "!*": | |
243 | case "*": |
|
239 | case "*": | |
244 | case "t": |
|
240 | case "t": | |
245 | case "ld": |
|
241 | case "ld": | |
246 | case "w": |
|
242 | case "w": | |
247 | case "lw": |
|
243 | case "lw": | |
248 | case "l2w": |
|
244 | case "l2w": | |
249 | case "m": |
|
245 | case "m": | |
250 | case "lm": |
|
246 | case "lm": | |
251 | case "y": |
|
247 | case "y": | |
252 | case "o": |
|
248 | case "o": | |
253 | case "c": |
|
249 | case "c": | |
254 | enableValues(field, []); |
|
250 | enableValues(field, []); | |
255 | break; |
|
251 | break; | |
256 | case "><": |
|
252 | case "><": | |
257 | enableValues(field, [0,1]); |
|
253 | enableValues(field, [0,1]); | |
258 | break; |
|
254 | break; | |
259 | case "<t+": |
|
255 | case "<t+": | |
260 | case ">t+": |
|
256 | case ">t+": | |
261 | case "><t+": |
|
257 | case "><t+": | |
262 | case "t+": |
|
258 | case "t+": | |
263 | case ">t-": |
|
259 | case ">t-": | |
264 | case "<t-": |
|
260 | case "<t-": | |
265 | case "><t-": |
|
261 | case "><t-": | |
266 | case "t-": |
|
262 | case "t-": | |
267 | enableValues(field, [2]); |
|
263 | enableValues(field, [2]); | |
268 | break; |
|
264 | break; | |
269 | case "=p": |
|
265 | case "=p": | |
270 | case "=!p": |
|
266 | case "=!p": | |
271 | case "!p": |
|
267 | case "!p": | |
272 | enableValues(field, [1]); |
|
268 | enableValues(field, [1]); | |
273 | break; |
|
269 | break; | |
274 | default: |
|
270 | default: | |
275 | enableValues(field, [0]); |
|
271 | enableValues(field, [0]); | |
276 | break; |
|
272 | break; | |
277 | } |
|
273 | } | |
278 | } |
|
274 | } | |
279 |
|
275 | |||
280 | function toggleMultiSelect(el) { |
|
276 | function toggleMultiSelect(el) { | |
281 | if (el.attr('multiple')) { |
|
277 | if (el.attr('multiple')) { | |
282 | el.removeAttr('multiple'); |
|
278 | el.removeAttr('multiple'); | |
283 | el.attr('size', 1); |
|
279 | el.attr('size', 1); | |
284 | } else { |
|
280 | } else { | |
285 | el.attr('multiple', true); |
|
281 | el.attr('multiple', true); | |
286 | if (el.children().length > 10) |
|
282 | if (el.children().length > 10) | |
287 | el.attr('size', 10); |
|
283 | el.attr('size', 10); | |
288 | else |
|
284 | else | |
289 | el.attr('size', 4); |
|
285 | el.attr('size', 4); | |
290 | } |
|
286 | } | |
291 | } |
|
287 | } | |
292 |
|
288 | |||
293 | function submit_query_form(id) { |
|
289 | function submit_query_form(id) { | |
294 | selectAllOptions("selected_columns"); |
|
290 | selectAllOptions("selected_columns"); | |
295 | $('#'+id).submit(); |
|
291 | $('#'+id).submit(); | |
296 | } |
|
292 | } | |
297 |
|
293 | |||
298 | function showTab(name, url) { |
|
294 | function showTab(name, url) { | |
299 | $('div#content .tab-content').hide(); |
|
295 | $('div#content .tab-content').hide(); | |
300 | $('div.tabs a').removeClass('selected'); |
|
296 | $('div.tabs a').removeClass('selected'); | |
301 | $('#tab-content-' + name).show(); |
|
297 | $('#tab-content-' + name).show(); | |
302 | $('#tab-' + name).addClass('selected'); |
|
298 | $('#tab-' + name).addClass('selected'); | |
303 | //replaces current URL with the "href" attribute of the current link |
|
299 | //replaces current URL with the "href" attribute of the current link | |
304 | //(only triggered if supported by browser) |
|
300 | //(only triggered if supported by browser) | |
305 | if ("replaceState" in window.history) { |
|
301 | if ("replaceState" in window.history) { | |
306 | window.history.replaceState(null, document.title, url); |
|
302 | window.history.replaceState(null, document.title, url); | |
307 | } |
|
303 | } | |
308 | return false; |
|
304 | return false; | |
309 | } |
|
305 | } | |
310 |
|
306 | |||
311 | function moveTabRight(el) { |
|
307 | function moveTabRight(el) { | |
312 | var lis = $(el).parents('div.tabs').first().find('ul').children(); |
|
308 | var lis = $(el).parents('div.tabs').first().find('ul').children(); | |
313 | var tabsWidth = 0; |
|
309 | var tabsWidth = 0; | |
314 | var i = 0; |
|
310 | var i = 0; | |
315 | lis.each(function() { |
|
311 | lis.each(function() { | |
316 | if ($(this).is(':visible')) { |
|
312 | if ($(this).is(':visible')) { | |
317 | tabsWidth += $(this).width() + 6; |
|
313 | tabsWidth += $(this).width() + 6; | |
318 | } |
|
314 | } | |
319 | }); |
|
315 | }); | |
320 | if (tabsWidth < $(el).parents('div.tabs').first().width() - 60) { return; } |
|
316 | if (tabsWidth < $(el).parents('div.tabs').first().width() - 60) { return; } | |
321 | while (i<lis.length && !lis.eq(i).is(':visible')) { i++; } |
|
317 | while (i<lis.length && !lis.eq(i).is(':visible')) { i++; } | |
322 | lis.eq(i).hide(); |
|
318 | lis.eq(i).hide(); | |
323 | } |
|
319 | } | |
324 |
|
320 | |||
325 | function moveTabLeft(el) { |
|
321 | function moveTabLeft(el) { | |
326 | var lis = $(el).parents('div.tabs').first().find('ul').children(); |
|
322 | var lis = $(el).parents('div.tabs').first().find('ul').children(); | |
327 | var i = 0; |
|
323 | var i = 0; | |
328 | while (i < lis.length && !lis.eq(i).is(':visible')) { i++; } |
|
324 | while (i < lis.length && !lis.eq(i).is(':visible')) { i++; } | |
329 | if (i > 0) { |
|
325 | if (i > 0) { | |
330 | lis.eq(i-1).show(); |
|
326 | lis.eq(i-1).show(); | |
331 | } |
|
327 | } | |
332 | } |
|
328 | } | |
333 |
|
329 | |||
334 | function displayTabsButtons() { |
|
330 | function displayTabsButtons() { | |
335 | var lis; |
|
331 | var lis; | |
336 | var tabsWidth = 0; |
|
332 | var tabsWidth = 0; | |
337 | var el; |
|
333 | var el; | |
338 | $('div.tabs').each(function() { |
|
334 | $('div.tabs').each(function() { | |
339 | el = $(this); |
|
335 | el = $(this); | |
340 | lis = el.find('ul').children(); |
|
336 | lis = el.find('ul').children(); | |
341 | lis.each(function(){ |
|
337 | lis.each(function(){ | |
342 | if ($(this).is(':visible')) { |
|
338 | if ($(this).is(':visible')) { | |
343 | tabsWidth += $(this).width() + 6; |
|
339 | tabsWidth += $(this).width() + 6; | |
344 | } |
|
340 | } | |
345 | }); |
|
341 | }); | |
346 | if ((tabsWidth < el.width() - 60) && (lis.first().is(':visible'))) { |
|
342 | if ((tabsWidth < el.width() - 60) && (lis.first().is(':visible'))) { | |
347 | el.find('div.tabs-buttons').hide(); |
|
343 | el.find('div.tabs-buttons').hide(); | |
348 | } else { |
|
344 | } else { | |
349 | el.find('div.tabs-buttons').show(); |
|
345 | el.find('div.tabs-buttons').show(); | |
350 | } |
|
346 | } | |
351 | }); |
|
347 | }); | |
352 | } |
|
348 | } | |
353 |
|
349 | |||
354 | function setPredecessorFieldsVisibility() { |
|
350 | function setPredecessorFieldsVisibility() { | |
355 | var relationType = $('#relation_relation_type'); |
|
351 | var relationType = $('#relation_relation_type'); | |
356 | if (relationType.val() == "precedes" || relationType.val() == "follows") { |
|
352 | if (relationType.val() == "precedes" || relationType.val() == "follows") { | |
357 | $('#predecessor_fields').show(); |
|
353 | $('#predecessor_fields').show(); | |
358 | } else { |
|
354 | } else { | |
359 | $('#predecessor_fields').hide(); |
|
355 | $('#predecessor_fields').hide(); | |
360 | } |
|
356 | } | |
361 | } |
|
357 | } | |
362 |
|
358 | |||
363 | function showModal(id, width) { |
|
359 | function showModal(id, width) { | |
364 | var el = $('#'+id).first(); |
|
360 | var el = $('#'+id).first(); | |
365 | if (el.length === 0 || el.is(':visible')) {return;} |
|
361 | if (el.length === 0 || el.is(':visible')) {return;} | |
366 | var title = el.find('h3.title').text(); |
|
362 | var title = el.find('h3.title').text(); | |
367 | el.dialog({ |
|
363 | el.dialog({ | |
368 | width: width, |
|
364 | width: width, | |
369 | modal: true, |
|
365 | modal: true, | |
370 | resizable: false, |
|
366 | resizable: false, | |
371 | dialogClass: 'modal', |
|
367 | dialogClass: 'modal', | |
372 | title: title |
|
368 | title: title | |
373 | }); |
|
369 | }); | |
374 | el.find("input[type=text], input[type=submit]").first().focus(); |
|
370 | el.find("input[type=text], input[type=submit]").first().focus(); | |
375 | } |
|
371 | } | |
376 |
|
372 | |||
377 | function hideModal(el) { |
|
373 | function hideModal(el) { | |
378 | var modal; |
|
374 | var modal; | |
379 | if (el) { |
|
375 | if (el) { | |
380 | modal = $(el).parents('.ui-dialog-content'); |
|
376 | modal = $(el).parents('.ui-dialog-content'); | |
381 | } else { |
|
377 | } else { | |
382 | modal = $('#ajax-modal'); |
|
378 | modal = $('#ajax-modal'); | |
383 | } |
|
379 | } | |
384 | modal.dialog("close"); |
|
380 | modal.dialog("close"); | |
385 | } |
|
381 | } | |
386 |
|
382 | |||
387 | function submitPreview(url, form, target) { |
|
383 | function submitPreview(url, form, target) { | |
388 | $.ajax({ |
|
384 | $.ajax({ | |
389 | url: url, |
|
385 | url: url, | |
390 | type: 'post', |
|
386 | type: 'post', | |
391 | data: $('#'+form).serialize(), |
|
387 | data: $('#'+form).serialize(), | |
392 | success: function(data){ |
|
388 | success: function(data){ | |
393 | $('#'+target).html(data); |
|
389 | $('#'+target).html(data); | |
394 | } |
|
390 | } | |
395 | }); |
|
391 | }); | |
396 | } |
|
392 | } | |
397 |
|
393 | |||
398 | function collapseScmEntry(id) { |
|
394 | function collapseScmEntry(id) { | |
399 | $('.'+id).each(function() { |
|
395 | $('.'+id).each(function() { | |
400 | if ($(this).hasClass('open')) { |
|
396 | if ($(this).hasClass('open')) { | |
401 | collapseScmEntry($(this).attr('id')); |
|
397 | collapseScmEntry($(this).attr('id')); | |
402 | } |
|
398 | } | |
403 | $(this).hide(); |
|
399 | $(this).hide(); | |
404 | }); |
|
400 | }); | |
405 | $('#'+id).removeClass('open'); |
|
401 | $('#'+id).removeClass('open'); | |
406 | } |
|
402 | } | |
407 |
|
403 | |||
408 | function expandScmEntry(id) { |
|
404 | function expandScmEntry(id) { | |
409 | $('.'+id).each(function() { |
|
405 | $('.'+id).each(function() { | |
410 | $(this).show(); |
|
406 | $(this).show(); | |
411 | if ($(this).hasClass('loaded') && !$(this).hasClass('collapsed')) { |
|
407 | if ($(this).hasClass('loaded') && !$(this).hasClass('collapsed')) { | |
412 | expandScmEntry($(this).attr('id')); |
|
408 | expandScmEntry($(this).attr('id')); | |
413 | } |
|
409 | } | |
414 | }); |
|
410 | }); | |
415 | $('#'+id).addClass('open'); |
|
411 | $('#'+id).addClass('open'); | |
416 | } |
|
412 | } | |
417 |
|
413 | |||
418 | function scmEntryClick(id, url) { |
|
414 | function scmEntryClick(id, url) { | |
419 | el = $('#'+id); |
|
415 | el = $('#'+id); | |
420 | if (el.hasClass('open')) { |
|
416 | if (el.hasClass('open')) { | |
421 | collapseScmEntry(id); |
|
417 | collapseScmEntry(id); | |
422 | el.addClass('collapsed'); |
|
418 | el.addClass('collapsed'); | |
423 | return false; |
|
419 | return false; | |
424 | } else if (el.hasClass('loaded')) { |
|
420 | } else if (el.hasClass('loaded')) { | |
425 | expandScmEntry(id); |
|
421 | expandScmEntry(id); | |
426 | el.removeClass('collapsed'); |
|
422 | el.removeClass('collapsed'); | |
427 | return false; |
|
423 | return false; | |
428 | } |
|
424 | } | |
429 | if (el.hasClass('loading')) { |
|
425 | if (el.hasClass('loading')) { | |
430 | return false; |
|
426 | return false; | |
431 | } |
|
427 | } | |
432 | el.addClass('loading'); |
|
428 | el.addClass('loading'); | |
433 | $.ajax({ |
|
429 | $.ajax({ | |
434 | url: url, |
|
430 | url: url, | |
435 | success: function(data) { |
|
431 | success: function(data) { | |
436 | el.after(data); |
|
432 | el.after(data); | |
437 | el.addClass('open').addClass('loaded').removeClass('loading'); |
|
433 | el.addClass('open').addClass('loaded').removeClass('loading'); | |
438 | } |
|
434 | } | |
439 | }); |
|
435 | }); | |
440 | return true; |
|
436 | return true; | |
441 | } |
|
437 | } | |
442 |
|
438 | |||
443 | function randomKey(size) { |
|
439 | function randomKey(size) { | |
444 | var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; |
|
440 | var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; | |
445 | var key = ''; |
|
441 | var key = ''; | |
446 | for (var i = 0; i < size; i++) { |
|
442 | for (var i = 0; i < size; i++) { | |
447 | key += chars.charAt(Math.floor(Math.random() * chars.length)); |
|
443 | key += chars.charAt(Math.floor(Math.random() * chars.length)); | |
448 | } |
|
444 | } | |
449 | return key; |
|
445 | return key; | |
450 | } |
|
446 | } | |
451 |
|
447 | |||
452 | function updateIssueFrom(url) { |
|
448 | function updateIssueFrom(url) { | |
453 | $('#all_attributes input, #all_attributes textarea, #all_attributes select').each(function(){ |
|
449 | $('#all_attributes input, #all_attributes textarea, #all_attributes select').each(function(){ | |
454 | $(this).data('valuebeforeupdate', $(this).val()); |
|
450 | $(this).data('valuebeforeupdate', $(this).val()); | |
455 | }); |
|
451 | }); | |
456 | $.ajax({ |
|
452 | $.ajax({ | |
457 | url: url, |
|
453 | url: url, | |
458 | type: 'post', |
|
454 | type: 'post', | |
459 | data: $('#issue-form').serialize() |
|
455 | data: $('#issue-form').serialize() | |
460 | }); |
|
456 | }); | |
461 | } |
|
457 | } | |
462 |
|
458 | |||
463 | function replaceIssueFormWith(html){ |
|
459 | function replaceIssueFormWith(html){ | |
464 | var replacement = $(html); |
|
460 | var replacement = $(html); | |
465 | $('#all_attributes input, #all_attributes textarea, #all_attributes select').each(function(){ |
|
461 | $('#all_attributes input, #all_attributes textarea, #all_attributes select').each(function(){ | |
466 | var object_id = $(this).attr('id'); |
|
462 | var object_id = $(this).attr('id'); | |
467 | if (object_id && $(this).data('valuebeforeupdate')!=$(this).val()) { |
|
463 | if (object_id && $(this).data('valuebeforeupdate')!=$(this).val()) { | |
468 | replacement.find('#'+object_id).val($(this).val()); |
|
464 | replacement.find('#'+object_id).val($(this).val()); | |
469 | } |
|
465 | } | |
470 | }); |
|
466 | }); | |
471 | $('#all_attributes').empty(); |
|
467 | $('#all_attributes').empty(); | |
472 | $('#all_attributes').prepend(replacement); |
|
468 | $('#all_attributes').prepend(replacement); | |
473 | } |
|
469 | } | |
474 |
|
470 | |||
475 | function updateBulkEditFrom(url) { |
|
471 | function updateBulkEditFrom(url) { | |
476 | $.ajax({ |
|
472 | $.ajax({ | |
477 | url: url, |
|
473 | url: url, | |
478 | type: 'post', |
|
474 | type: 'post', | |
479 | data: $('#bulk_edit_form').serialize() |
|
475 | data: $('#bulk_edit_form').serialize() | |
480 | }); |
|
476 | }); | |
481 | } |
|
477 | } | |
482 |
|
478 | |||
483 | function observeAutocompleteField(fieldId, url, options) { |
|
479 | function observeAutocompleteField(fieldId, url, options) { | |
484 | $(document).ready(function() { |
|
480 | $(document).ready(function() { | |
485 | $('#'+fieldId).autocomplete($.extend({ |
|
481 | $('#'+fieldId).autocomplete($.extend({ | |
486 | source: url, |
|
482 | source: url, | |
487 | minLength: 2, |
|
483 | minLength: 2, | |
488 | search: function(){$('#'+fieldId).addClass('ajax-loading');}, |
|
484 | search: function(){$('#'+fieldId).addClass('ajax-loading');}, | |
489 | response: function(){$('#'+fieldId).removeClass('ajax-loading');} |
|
485 | response: function(){$('#'+fieldId).removeClass('ajax-loading');} | |
490 | }, options)); |
|
486 | }, options)); | |
491 | $('#'+fieldId).addClass('autocomplete'); |
|
487 | $('#'+fieldId).addClass('autocomplete'); | |
492 | }); |
|
488 | }); | |
493 | } |
|
489 | } | |
494 |
|
490 | |||
495 | function observeSearchfield(fieldId, targetId, url) { |
|
491 | function observeSearchfield(fieldId, targetId, url) { | |
496 | $('#'+fieldId).each(function() { |
|
492 | $('#'+fieldId).each(function() { | |
497 | var $this = $(this); |
|
493 | var $this = $(this); | |
498 | $this.addClass('autocomplete'); |
|
494 | $this.addClass('autocomplete'); | |
499 | $this.attr('data-value-was', $this.val()); |
|
495 | $this.attr('data-value-was', $this.val()); | |
500 | var check = function() { |
|
496 | var check = function() { | |
501 | var val = $this.val(); |
|
497 | var val = $this.val(); | |
502 | if ($this.attr('data-value-was') != val){ |
|
498 | if ($this.attr('data-value-was') != val){ | |
503 | $this.attr('data-value-was', val); |
|
499 | $this.attr('data-value-was', val); | |
504 | $.ajax({ |
|
500 | $.ajax({ | |
505 | url: url, |
|
501 | url: url, | |
506 | type: 'get', |
|
502 | type: 'get', | |
507 | data: {q: $this.val()}, |
|
503 | data: {q: $this.val()}, | |
508 | success: function(data){ if(targetId) $('#'+targetId).html(data); }, |
|
504 | success: function(data){ if(targetId) $('#'+targetId).html(data); }, | |
509 | beforeSend: function(){ $this.addClass('ajax-loading'); }, |
|
505 | beforeSend: function(){ $this.addClass('ajax-loading'); }, | |
510 | complete: function(){ $this.removeClass('ajax-loading'); } |
|
506 | complete: function(){ $this.removeClass('ajax-loading'); } | |
511 | }); |
|
507 | }); | |
512 | } |
|
508 | } | |
513 | }; |
|
509 | }; | |
514 | var reset = function() { |
|
510 | var reset = function() { | |
515 | if (timer) { |
|
511 | if (timer) { | |
516 | clearInterval(timer); |
|
512 | clearInterval(timer); | |
517 | timer = setInterval(check, 300); |
|
513 | timer = setInterval(check, 300); | |
518 | } |
|
514 | } | |
519 | }; |
|
515 | }; | |
520 | var timer = setInterval(check, 300); |
|
516 | var timer = setInterval(check, 300); | |
521 | $this.bind('keyup click mousemove', reset); |
|
517 | $this.bind('keyup click mousemove', reset); | |
522 | }); |
|
518 | }); | |
523 | } |
|
519 | } | |
524 |
|
520 | |||
525 | function initMyPageSortable(list, url) { |
|
521 | function initMyPageSortable(list, url) { | |
526 | $('#list-'+list).sortable({ |
|
522 | $('#list-'+list).sortable({ | |
527 | connectWith: '.block-receiver', |
|
523 | connectWith: '.block-receiver', | |
528 | tolerance: 'pointer', |
|
524 | tolerance: 'pointer', | |
529 | update: function(){ |
|
525 | update: function(){ | |
530 | $.ajax({ |
|
526 | $.ajax({ | |
531 | url: url, |
|
527 | url: url, | |
532 | type: 'post', |
|
528 | type: 'post', | |
533 | data: {'blocks': $.map($('#list-'+list).children(), function(el){return $(el).attr('id');})} |
|
529 | data: {'blocks': $.map($('#list-'+list).children(), function(el){return $(el).attr('id');})} | |
534 | }); |
|
530 | }); | |
535 | } |
|
531 | } | |
536 | }); |
|
532 | }); | |
537 | $("#list-top, #list-left, #list-right").disableSelection(); |
|
533 | $("#list-top, #list-left, #list-right").disableSelection(); | |
538 | } |
|
534 | } | |
539 |
|
535 | |||
540 | var warnLeavingUnsavedMessage; |
|
536 | var warnLeavingUnsavedMessage; | |
541 | function warnLeavingUnsaved(message) { |
|
537 | function warnLeavingUnsaved(message) { | |
542 | warnLeavingUnsavedMessage = message; |
|
538 | warnLeavingUnsavedMessage = message; | |
543 | $('form').live('submit', function(){ |
|
539 | $('form').live('submit', function(){ | |
544 | $('textarea').removeData('changed'); |
|
540 | $('textarea').removeData('changed'); | |
545 | }); |
|
541 | }); | |
546 | $('textarea').live('change', function(){ |
|
542 | $('textarea').live('change', function(){ | |
547 | $(this).data('changed', 'changed'); |
|
543 | $(this).data('changed', 'changed'); | |
548 | }); |
|
544 | }); | |
549 | window.onbeforeunload = function(){ |
|
545 | window.onbeforeunload = function(){ | |
550 | var warn = false; |
|
546 | var warn = false; | |
551 | $('textarea').blur().each(function(){ |
|
547 | $('textarea').blur().each(function(){ | |
552 | if ($(this).data('changed')) { |
|
548 | if ($(this).data('changed')) { | |
553 | warn = true; |
|
549 | warn = true; | |
554 | } |
|
550 | } | |
555 | }); |
|
551 | }); | |
556 | if (warn) {return warnLeavingUnsavedMessage;} |
|
552 | if (warn) {return warnLeavingUnsavedMessage;} | |
557 | }; |
|
553 | }; | |
558 | } |
|
554 | } | |
559 |
|
555 | |||
560 | function setupAjaxIndicator() { |
|
556 | function setupAjaxIndicator() { | |
561 | $('#ajax-indicator').bind('ajaxSend', function(event, xhr, settings) { |
|
557 | $('#ajax-indicator').bind('ajaxSend', function(event, xhr, settings) { | |
562 | if ($('.ajax-loading').length === 0 && settings.contentType != 'application/octet-stream') { |
|
558 | if ($('.ajax-loading').length === 0 && settings.contentType != 'application/octet-stream') { | |
563 | $('#ajax-indicator').show(); |
|
559 | $('#ajax-indicator').show(); | |
564 | } |
|
560 | } | |
565 | }); |
|
561 | }); | |
566 | $('#ajax-indicator').bind('ajaxStop', function() { |
|
562 | $('#ajax-indicator').bind('ajaxStop', function() { | |
567 | $('#ajax-indicator').hide(); |
|
563 | $('#ajax-indicator').hide(); | |
568 | }); |
|
564 | }); | |
569 | } |
|
565 | } | |
570 |
|
566 | |||
571 | function hideOnLoad() { |
|
567 | function hideOnLoad() { | |
572 | $('.hol').hide(); |
|
568 | $('.hol').hide(); | |
573 | } |
|
569 | } | |
574 |
|
570 | |||
575 | function addFormObserversForDoubleSubmit() { |
|
571 | function addFormObserversForDoubleSubmit() { | |
576 | $('form[method=post]').each(function() { |
|
572 | $('form[method=post]').each(function() { | |
577 | if (!$(this).hasClass('multiple-submit')) { |
|
573 | if (!$(this).hasClass('multiple-submit')) { | |
578 | $(this).submit(function(form_submission) { |
|
574 | $(this).submit(function(form_submission) { | |
579 | if ($(form_submission.target).attr('data-submitted')) { |
|
575 | if ($(form_submission.target).attr('data-submitted')) { | |
580 | form_submission.preventDefault(); |
|
576 | form_submission.preventDefault(); | |
581 | } else { |
|
577 | } else { | |
582 | $(form_submission.target).attr('data-submitted', true); |
|
578 | $(form_submission.target).attr('data-submitted', true); | |
583 | } |
|
579 | } | |
584 | }); |
|
580 | }); | |
585 | } |
|
581 | } | |
586 | }); |
|
582 | }); | |
587 | } |
|
583 | } | |
588 |
|
584 | |||
589 | function blockEventPropagation(event) { |
|
585 | function blockEventPropagation(event) { | |
590 | event.stopPropagation(); |
|
586 | event.stopPropagation(); | |
591 | event.preventDefault(); |
|
587 | event.preventDefault(); | |
592 | } |
|
588 | } | |
593 |
|
589 | |||
594 | $(document).ready(setupAjaxIndicator); |
|
590 | $(document).ready(setupAjaxIndicator); | |
595 | $(document).ready(hideOnLoad); |
|
591 | $(document).ready(hideOnLoad); | |
596 | $(document).ready(addFormObserversForDoubleSubmit); |
|
592 | $(document).ready(addFormObserversForDoubleSubmit); |
@@ -1,1156 +1,1156 | |||||
1 | html {overflow-y:scroll;} |
|
1 | html {overflow-y:scroll;} | |
2 | body { font-family: Verdana, sans-serif; font-size: 12px; color:#484848; margin: 0; padding: 0; min-width: 900px; } |
|
2 | body { font-family: Verdana, sans-serif; font-size: 12px; color:#484848; margin: 0; padding: 0; min-width: 900px; } | |
3 |
|
3 | |||
4 | h1, h2, h3, h4 {font-family: "Trebuchet MS", Verdana, sans-serif;padding: 2px 10px 1px 0px;margin: 0 0 10px 0;} |
|
4 | h1, h2, h3, h4 {font-family: "Trebuchet MS", Verdana, sans-serif;padding: 2px 10px 1px 0px;margin: 0 0 10px 0;} | |
5 | #content h1, h2, h3, h4 {color: #555;} |
|
5 | #content h1, h2, h3, h4 {color: #555;} | |
6 | h2, .wiki h1 {font-size: 20px;} |
|
6 | h2, .wiki h1 {font-size: 20px;} | |
7 | h3, .wiki h2 {font-size: 16px;} |
|
7 | h3, .wiki h2 {font-size: 16px;} | |
8 | h4, .wiki h3 {font-size: 13px;} |
|
8 | h4, .wiki h3 {font-size: 13px;} | |
9 | h4 {border-bottom: 1px dotted #bbb;} |
|
9 | h4 {border-bottom: 1px dotted #bbb;} | |
10 |
|
10 | |||
11 | /***** Layout *****/ |
|
11 | /***** Layout *****/ | |
12 | #wrapper {background: white;} |
|
12 | #wrapper {background: white;} | |
13 |
|
13 | |||
14 | #top-menu {background: #3E5B76; color: #fff; height:1.8em; font-size: 0.8em; padding: 2px 2px 0px 6px;} |
|
14 | #top-menu {background: #3E5B76; color: #fff; height:1.8em; font-size: 0.8em; padding: 2px 2px 0px 6px;} | |
15 | #top-menu ul {margin: 0; padding: 0;} |
|
15 | #top-menu ul {margin: 0; padding: 0;} | |
16 | #top-menu li { |
|
16 | #top-menu li { | |
17 | float:left; |
|
17 | float:left; | |
18 | list-style-type:none; |
|
18 | list-style-type:none; | |
19 | margin: 0px 0px 0px 0px; |
|
19 | margin: 0px 0px 0px 0px; | |
20 | padding: 0px 0px 0px 0px; |
|
20 | padding: 0px 0px 0px 0px; | |
21 | white-space:nowrap; |
|
21 | white-space:nowrap; | |
22 | } |
|
22 | } | |
23 | #top-menu a {color: #fff; margin-right: 8px; font-weight: bold;} |
|
23 | #top-menu a {color: #fff; margin-right: 8px; font-weight: bold;} | |
24 | #top-menu #loggedas { float: right; margin-right: 0.5em; color: #fff; } |
|
24 | #top-menu #loggedas { float: right; margin-right: 0.5em; color: #fff; } | |
25 |
|
25 | |||
26 | #account {float:right;} |
|
26 | #account {float:right;} | |
27 |
|
27 | |||
28 | #header {min-height:5.3em;margin:0;background-color:#628DB6;color:#f8f8f8; padding: 4px 8px 20px 6px; position:relative;} |
|
28 | #header {min-height:5.3em;margin:0;background-color:#628DB6;color:#f8f8f8; padding: 4px 8px 20px 6px; position:relative;} | |
29 | #header a {color:#f8f8f8;} |
|
29 | #header a {color:#f8f8f8;} | |
30 | #header h1 a.ancestor { font-size: 80%; } |
|
30 | #header h1 a.ancestor { font-size: 80%; } | |
31 | #quick-search {float:right;} |
|
31 | #quick-search {float:right;} | |
32 |
|
32 | |||
33 | #main-menu {position: absolute; bottom: 0px; left:6px; margin-right: -500px;} |
|
33 | #main-menu {position: absolute; bottom: 0px; left:6px; margin-right: -500px;} | |
34 | #main-menu ul {margin: 0; padding: 0;} |
|
34 | #main-menu ul {margin: 0; padding: 0;} | |
35 | #main-menu li { |
|
35 | #main-menu li { | |
36 | float:left; |
|
36 | float:left; | |
37 | list-style-type:none; |
|
37 | list-style-type:none; | |
38 | margin: 0px 2px 0px 0px; |
|
38 | margin: 0px 2px 0px 0px; | |
39 | padding: 0px 0px 0px 0px; |
|
39 | padding: 0px 0px 0px 0px; | |
40 | white-space:nowrap; |
|
40 | white-space:nowrap; | |
41 | } |
|
41 | } | |
42 | #main-menu li a { |
|
42 | #main-menu li a { | |
43 | display: block; |
|
43 | display: block; | |
44 | color: #fff; |
|
44 | color: #fff; | |
45 | text-decoration: none; |
|
45 | text-decoration: none; | |
46 | font-weight: bold; |
|
46 | font-weight: bold; | |
47 | margin: 0; |
|
47 | margin: 0; | |
48 | padding: 4px 10px 4px 10px; |
|
48 | padding: 4px 10px 4px 10px; | |
49 | } |
|
49 | } | |
50 | #main-menu li a:hover {background:#759FCF; color:#fff;} |
|
50 | #main-menu li a:hover {background:#759FCF; color:#fff;} | |
51 | #main-menu li a.selected, #main-menu li a.selected:hover {background:#fff; color:#555;} |
|
51 | #main-menu li a.selected, #main-menu li a.selected:hover {background:#fff; color:#555;} | |
52 |
|
52 | |||
53 | #admin-menu ul {margin: 0; padding: 0;} |
|
53 | #admin-menu ul {margin: 0; padding: 0;} | |
54 | #admin-menu li {margin: 0; padding: 0 0 6px 0; list-style-type:none;} |
|
54 | #admin-menu li {margin: 0; padding: 0 0 6px 0; list-style-type:none;} | |
55 |
|
55 | |||
56 | #admin-menu a { background-position: 0% 40%; background-repeat: no-repeat; padding-left: 20px; padding-top: 2px; padding-bottom: 3px;} |
|
56 | #admin-menu a { background-position: 0% 40%; background-repeat: no-repeat; padding-left: 20px; padding-top: 2px; padding-bottom: 3px;} | |
57 | #admin-menu a.projects { background-image: url(../images/projects.png); } |
|
57 | #admin-menu a.projects { background-image: url(../images/projects.png); } | |
58 | #admin-menu a.users { background-image: url(../images/user.png); } |
|
58 | #admin-menu a.users { background-image: url(../images/user.png); } | |
59 | #admin-menu a.groups { background-image: url(../images/group.png); } |
|
59 | #admin-menu a.groups { background-image: url(../images/group.png); } | |
60 | #admin-menu a.roles { background-image: url(../images/database_key.png); } |
|
60 | #admin-menu a.roles { background-image: url(../images/database_key.png); } | |
61 | #admin-menu a.trackers { background-image: url(../images/ticket.png); } |
|
61 | #admin-menu a.trackers { background-image: url(../images/ticket.png); } | |
62 | #admin-menu a.issue_statuses { background-image: url(../images/ticket_edit.png); } |
|
62 | #admin-menu a.issue_statuses { background-image: url(../images/ticket_edit.png); } | |
63 | #admin-menu a.workflows { background-image: url(../images/ticket_go.png); } |
|
63 | #admin-menu a.workflows { background-image: url(../images/ticket_go.png); } | |
64 | #admin-menu a.custom_fields { background-image: url(../images/textfield.png); } |
|
64 | #admin-menu a.custom_fields { background-image: url(../images/textfield.png); } | |
65 | #admin-menu a.enumerations { background-image: url(../images/text_list_bullets.png); } |
|
65 | #admin-menu a.enumerations { background-image: url(../images/text_list_bullets.png); } | |
66 | #admin-menu a.settings { background-image: url(../images/changeset.png); } |
|
66 | #admin-menu a.settings { background-image: url(../images/changeset.png); } | |
67 | #admin-menu a.plugins { background-image: url(../images/plugin.png); } |
|
67 | #admin-menu a.plugins { background-image: url(../images/plugin.png); } | |
68 | #admin-menu a.info { background-image: url(../images/help.png); } |
|
68 | #admin-menu a.info { background-image: url(../images/help.png); } | |
69 | #admin-menu a.server_authentication { background-image: url(../images/server_key.png); } |
|
69 | #admin-menu a.server_authentication { background-image: url(../images/server_key.png); } | |
70 |
|
70 | |||
71 | #main {background-color:#EEEEEE;} |
|
71 | #main {background-color:#EEEEEE;} | |
72 |
|
72 | |||
73 | #sidebar{ float: right; width: 22%; position: relative; z-index: 9; padding: 0; margin: 0;} |
|
73 | #sidebar{ float: right; width: 22%; position: relative; z-index: 9; padding: 0; margin: 0;} | |
74 | * html #sidebar{ width: 22%; } |
|
74 | * html #sidebar{ width: 22%; } | |
75 | #sidebar h3{ font-size: 14px; margin-top:14px; color: #666; } |
|
75 | #sidebar h3{ font-size: 14px; margin-top:14px; color: #666; } | |
76 | #sidebar hr{ width: 100%; margin: 0 auto; height: 1px; background: #ccc; border: 0; } |
|
76 | #sidebar hr{ width: 100%; margin: 0 auto; height: 1px; background: #ccc; border: 0; } | |
77 | * html #sidebar hr{ width: 95%; position: relative; left: -6px; color: #ccc; } |
|
77 | * html #sidebar hr{ width: 95%; position: relative; left: -6px; color: #ccc; } | |
78 | #sidebar .contextual { margin-right: 1em; } |
|
78 | #sidebar .contextual { margin-right: 1em; } | |
79 | #sidebar ul {margin: 0; padding: 0;} |
|
79 | #sidebar ul {margin: 0; padding: 0;} | |
80 | #sidebar ul li {list-style-type:none;margin: 0px 2px 0px 0px; padding: 0px 0px 0px 0px;} |
|
80 | #sidebar ul li {list-style-type:none;margin: 0px 2px 0px 0px; padding: 0px 0px 0px 0px;} | |
81 |
|
81 | |||
82 | #content { width: 75%; background-color: #fff; margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; z-index: 10; } |
|
82 | #content { width: 75%; background-color: #fff; margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; z-index: 10; } | |
83 | * html #content{ width: 75%; padding-left: 0; margin-top: 0px; padding: 6px 10px 10px 10px;} |
|
83 | * html #content{ width: 75%; padding-left: 0; margin-top: 0px; padding: 6px 10px 10px 10px;} | |
84 | html>body #content { min-height: 600px; } |
|
84 | html>body #content { min-height: 600px; } | |
85 | * html body #content { height: 600px; } /* IE */ |
|
85 | * html body #content { height: 600px; } /* IE */ | |
86 |
|
86 | |||
87 | #main.nosidebar #sidebar{ display: none; } |
|
87 | #main.nosidebar #sidebar{ display: none; } | |
88 | #main.nosidebar #content{ width: auto; border-right: 0; } |
|
88 | #main.nosidebar #content{ width: auto; border-right: 0; } | |
89 |
|
89 | |||
90 | #footer {clear: both; border-top: 1px solid #bbb; font-size: 0.9em; color: #aaa; padding: 5px; text-align:center; background:#fff;} |
|
90 | #footer {clear: both; border-top: 1px solid #bbb; font-size: 0.9em; color: #aaa; padding: 5px; text-align:center; background:#fff;} | |
91 |
|
91 | |||
92 | #login-form table {margin-top:5em; padding:1em; margin-left: auto; margin-right: auto; border: 2px solid #FDBF3B; background-color:#FFEBC1; } |
|
92 | #login-form table {margin-top:5em; padding:1em; margin-left: auto; margin-right: auto; border: 2px solid #FDBF3B; background-color:#FFEBC1; } | |
93 | #login-form table td {padding: 6px;} |
|
93 | #login-form table td {padding: 6px;} | |
94 | #login-form label {font-weight: bold;} |
|
94 | #login-form label {font-weight: bold;} | |
95 | #login-form input#username, #login-form input#password { width: 300px; } |
|
95 | #login-form input#username, #login-form input#password { width: 300px; } | |
96 |
|
96 | |||
97 | div.modal { border-radius:5px; background:#fff; z-index:50; padding:4px;} |
|
97 | div.modal { border-radius:5px; background:#fff; z-index:50; padding:4px;} | |
98 | div.modal h3.title {display:none;} |
|
98 | div.modal h3.title {display:none;} | |
99 | div.modal p.buttons {text-align:right; margin-bottom:0;} |
|
99 | div.modal p.buttons {text-align:right; margin-bottom:0;} | |
100 |
|
100 | |||
101 | input#openid_url { background: url(../images/openid-bg.gif) no-repeat; background-color: #fff; background-position: 0 50%; padding-left: 18px; } |
|
101 | input#openid_url { background: url(../images/openid-bg.gif) no-repeat; background-color: #fff; background-position: 0 50%; padding-left: 18px; } | |
102 |
|
102 | |||
103 | .clear:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden; } |
|
103 | .clear:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden; } | |
104 |
|
104 | |||
105 | /***** Links *****/ |
|
105 | /***** Links *****/ | |
106 | a, a:link, a:visited{ color: #169; text-decoration: none; } |
|
106 | a, a:link, a:visited{ color: #169; text-decoration: none; } | |
107 | a:hover, a:active{ color: #c61a1a; text-decoration: underline;} |
|
107 | a:hover, a:active{ color: #c61a1a; text-decoration: underline;} | |
108 | a img{ border: 0; } |
|
108 | a img{ border: 0; } | |
109 |
|
109 | |||
110 | a.issue.closed, a.issue.closed:link, a.issue.closed:visited { color: #999; text-decoration: line-through; } |
|
110 | a.issue.closed, a.issue.closed:link, a.issue.closed:visited { color: #999; text-decoration: line-through; } | |
111 | a.project.closed, a.project.closed:link, a.project.closed:visited { color: #999; } |
|
111 | a.project.closed, a.project.closed:link, a.project.closed:visited { color: #999; } | |
112 | a.user.locked, a.user.locked:link, a.user.locked:visited {color: #999;} |
|
112 | a.user.locked, a.user.locked:link, a.user.locked:visited {color: #999;} | |
113 |
|
113 | |||
114 | #sidebar a.selected {line-height:1.7em; padding:1px 3px 2px 2px; margin-left:-2px; background-color:#9DB9D5; color:#fff; border-radius:2px;} |
|
114 | #sidebar a.selected {line-height:1.7em; padding:1px 3px 2px 2px; margin-left:-2px; background-color:#9DB9D5; color:#fff; border-radius:2px;} | |
115 | #sidebar a.selected:hover {text-decoration:none;} |
|
115 | #sidebar a.selected:hover {text-decoration:none;} | |
116 | #admin-menu a {line-height:1.7em;} |
|
116 | #admin-menu a {line-height:1.7em;} | |
117 | #admin-menu a.selected {padding-left: 20px !important; background-position: 2px 40%;} |
|
117 | #admin-menu a.selected {padding-left: 20px !important; background-position: 2px 40%;} | |
118 |
|
118 | |||
119 | a.collapsible {padding-left: 12px; background: url(../images/arrow_expanded.png) no-repeat -3px 40%;} |
|
119 | a.collapsible {padding-left: 12px; background: url(../images/arrow_expanded.png) no-repeat -3px 40%;} | |
120 | a.collapsible.collapsed {background: url(../images/arrow_collapsed.png) no-repeat -5px 40%;} |
|
120 | a.collapsible.collapsed {background: url(../images/arrow_collapsed.png) no-repeat -5px 40%;} | |
121 |
|
121 | |||
122 | a#toggle-completed-versions {color:#999;} |
|
122 | a#toggle-completed-versions {color:#999;} | |
123 | /***** Tables *****/ |
|
123 | /***** Tables *****/ | |
124 | table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; } |
|
124 | table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; } | |
125 | table.list th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; } |
|
125 | table.list th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; } | |
126 | table.list td { vertical-align: top; padding-right:10px; } |
|
126 | table.list td { vertical-align: top; padding-right:10px; } | |
127 | table.list td.id { width: 2%; text-align: center;} |
|
127 | table.list td.id { width: 2%; text-align: center;} | |
128 | table.list td.checkbox { width: 15px; padding: 2px 0 0 0; } |
|
128 | table.list td.checkbox { width: 15px; padding: 2px 0 0 0; } | |
129 | table.list td.checkbox input {padding:0px;} |
|
129 | table.list td.checkbox input {padding:0px;} | |
130 | table.list td.buttons { width: 15%; white-space:nowrap; text-align: right; } |
|
130 | table.list td.buttons { width: 15%; white-space:nowrap; text-align: right; } | |
131 | table.list td.buttons a { padding-right: 0.6em; } |
|
131 | table.list td.buttons a { padding-right: 0.6em; } | |
132 | table.list caption { text-align: left; padding: 0.5em 0.5em 0.5em 0; } |
|
132 | table.list caption { text-align: left; padding: 0.5em 0.5em 0.5em 0; } | |
133 |
|
133 | |||
134 | tr.project td.name a { white-space:nowrap; } |
|
134 | tr.project td.name a { white-space:nowrap; } | |
135 | tr.project.closed, tr.project.archived { color: #aaa; } |
|
135 | tr.project.closed, tr.project.archived { color: #aaa; } | |
136 | tr.project.closed a, tr.project.archived a { color: #aaa; } |
|
136 | tr.project.closed a, tr.project.archived a { color: #aaa; } | |
137 |
|
137 | |||
138 | tr.project.idnt td.name span {background: url(../images/bullet_arrow_right.png) no-repeat 0 50%; padding-left: 16px;} |
|
138 | tr.project.idnt td.name span {background: url(../images/bullet_arrow_right.png) no-repeat 0 50%; padding-left: 16px;} | |
139 | tr.project.idnt-1 td.name {padding-left: 0.5em;} |
|
139 | tr.project.idnt-1 td.name {padding-left: 0.5em;} | |
140 | tr.project.idnt-2 td.name {padding-left: 2em;} |
|
140 | tr.project.idnt-2 td.name {padding-left: 2em;} | |
141 | tr.project.idnt-3 td.name {padding-left: 3.5em;} |
|
141 | tr.project.idnt-3 td.name {padding-left: 3.5em;} | |
142 | tr.project.idnt-4 td.name {padding-left: 5em;} |
|
142 | tr.project.idnt-4 td.name {padding-left: 5em;} | |
143 | tr.project.idnt-5 td.name {padding-left: 6.5em;} |
|
143 | tr.project.idnt-5 td.name {padding-left: 6.5em;} | |
144 | tr.project.idnt-6 td.name {padding-left: 8em;} |
|
144 | tr.project.idnt-6 td.name {padding-left: 8em;} | |
145 | tr.project.idnt-7 td.name {padding-left: 9.5em;} |
|
145 | tr.project.idnt-7 td.name {padding-left: 9.5em;} | |
146 | tr.project.idnt-8 td.name {padding-left: 11em;} |
|
146 | tr.project.idnt-8 td.name {padding-left: 11em;} | |
147 | tr.project.idnt-9 td.name {padding-left: 12.5em;} |
|
147 | tr.project.idnt-9 td.name {padding-left: 12.5em;} | |
148 |
|
148 | |||
149 | tr.issue { text-align: center; white-space: nowrap; } |
|
149 | tr.issue { text-align: center; white-space: nowrap; } | |
150 | tr.issue td.subject, tr.issue td.category, td.assigned_to, tr.issue td.string, tr.issue td.text, tr.issue td.relations { white-space: normal; } |
|
150 | tr.issue td.subject, tr.issue td.category, td.assigned_to, tr.issue td.string, tr.issue td.text, tr.issue td.relations { white-space: normal; } | |
151 | tr.issue td.subject, tr.issue td.relations { text-align: left; } |
|
151 | tr.issue td.subject, tr.issue td.relations { text-align: left; } | |
152 | tr.issue td.done_ratio table.progress { margin-left:auto; margin-right: auto;} |
|
152 | tr.issue td.done_ratio table.progress { margin-left:auto; margin-right: auto;} | |
153 | tr.issue td.relations span {white-space: nowrap;} |
|
153 | tr.issue td.relations span {white-space: nowrap;} | |
154 | table.issues td.description {color:#777; font-size:90%; padding:4px 4px 4px 24px; text-align:left; white-space:normal;} |
|
154 | table.issues td.description {color:#777; font-size:90%; padding:4px 4px 4px 24px; text-align:left; white-space:normal;} | |
155 | table.issues td.description pre {white-space:normal;} |
|
155 | table.issues td.description pre {white-space:normal;} | |
156 |
|
156 | |||
157 | tr.issue.idnt td.subject a {background: url(../images/bullet_arrow_right.png) no-repeat 0 50%; padding-left: 16px;} |
|
157 | tr.issue.idnt td.subject a {background: url(../images/bullet_arrow_right.png) no-repeat 0 50%; padding-left: 16px;} | |
158 | tr.issue.idnt-1 td.subject {padding-left: 0.5em;} |
|
158 | tr.issue.idnt-1 td.subject {padding-left: 0.5em;} | |
159 | tr.issue.idnt-2 td.subject {padding-left: 2em;} |
|
159 | tr.issue.idnt-2 td.subject {padding-left: 2em;} | |
160 | tr.issue.idnt-3 td.subject {padding-left: 3.5em;} |
|
160 | tr.issue.idnt-3 td.subject {padding-left: 3.5em;} | |
161 | tr.issue.idnt-4 td.subject {padding-left: 5em;} |
|
161 | tr.issue.idnt-4 td.subject {padding-left: 5em;} | |
162 | tr.issue.idnt-5 td.subject {padding-left: 6.5em;} |
|
162 | tr.issue.idnt-5 td.subject {padding-left: 6.5em;} | |
163 | tr.issue.idnt-6 td.subject {padding-left: 8em;} |
|
163 | tr.issue.idnt-6 td.subject {padding-left: 8em;} | |
164 | tr.issue.idnt-7 td.subject {padding-left: 9.5em;} |
|
164 | tr.issue.idnt-7 td.subject {padding-left: 9.5em;} | |
165 | tr.issue.idnt-8 td.subject {padding-left: 11em;} |
|
165 | tr.issue.idnt-8 td.subject {padding-left: 11em;} | |
166 | tr.issue.idnt-9 td.subject {padding-left: 12.5em;} |
|
166 | tr.issue.idnt-9 td.subject {padding-left: 12.5em;} | |
167 |
|
167 | |||
168 | tr.entry { border: 1px solid #f8f8f8; } |
|
168 | tr.entry { border: 1px solid #f8f8f8; } | |
169 | tr.entry td { white-space: nowrap; } |
|
169 | tr.entry td { white-space: nowrap; } | |
170 | tr.entry td.filename { width: 30%; } |
|
170 | tr.entry td.filename { width: 30%; } | |
171 | tr.entry td.filename_no_report { width: 70%; } |
|
171 | tr.entry td.filename_no_report { width: 70%; } | |
172 | tr.entry td.size { text-align: right; font-size: 90%; } |
|
172 | tr.entry td.size { text-align: right; font-size: 90%; } | |
173 | tr.entry td.revision, tr.entry td.author { text-align: center; } |
|
173 | tr.entry td.revision, tr.entry td.author { text-align: center; } | |
174 | tr.entry td.age { text-align: right; } |
|
174 | tr.entry td.age { text-align: right; } | |
175 | tr.entry.file td.filename a { margin-left: 16px; } |
|
175 | tr.entry.file td.filename a { margin-left: 16px; } | |
176 | tr.entry.file td.filename_no_report a { margin-left: 16px; } |
|
176 | tr.entry.file td.filename_no_report a { margin-left: 16px; } | |
177 |
|
177 | |||
178 | tr span.expander {background-image: url(../images/bullet_toggle_plus.png); padding-left: 8px; margin-left: 0; cursor: pointer;} |
|
178 | tr span.expander {background-image: url(../images/bullet_toggle_plus.png); padding-left: 8px; margin-left: 0; cursor: pointer;} | |
179 | tr.open span.expander {background-image: url(../images/bullet_toggle_minus.png);} |
|
179 | tr.open span.expander {background-image: url(../images/bullet_toggle_minus.png);} | |
180 |
|
180 | |||
181 | tr.changeset { height: 20px } |
|
181 | tr.changeset { height: 20px } | |
182 | tr.changeset ul, ol { margin-top: 0px; margin-bottom: 0px; } |
|
182 | tr.changeset ul, ol { margin-top: 0px; margin-bottom: 0px; } | |
183 | tr.changeset td.revision_graph { width: 15%; background-color: #fffffb; } |
|
183 | tr.changeset td.revision_graph { width: 15%; background-color: #fffffb; } | |
184 | tr.changeset td.author { text-align: center; width: 15%; white-space:nowrap;} |
|
184 | tr.changeset td.author { text-align: center; width: 15%; white-space:nowrap;} | |
185 | tr.changeset td.committed_on { text-align: center; width: 15%; white-space:nowrap;} |
|
185 | tr.changeset td.committed_on { text-align: center; width: 15%; white-space:nowrap;} | |
186 |
|
186 | |||
187 | table.files tr.file td { text-align: center; } |
|
187 | table.files tr.file td { text-align: center; } | |
188 | table.files tr.file td.filename { text-align: left; padding-left: 24px; } |
|
188 | table.files tr.file td.filename { text-align: left; padding-left: 24px; } | |
189 | table.files tr.file td.digest { font-size: 80%; } |
|
189 | table.files tr.file td.digest { font-size: 80%; } | |
190 |
|
190 | |||
191 | table.members td.roles, table.memberships td.roles { width: 45%; } |
|
191 | table.members td.roles, table.memberships td.roles { width: 45%; } | |
192 |
|
192 | |||
193 | tr.message { height: 2.6em; } |
|
193 | tr.message { height: 2.6em; } | |
194 | tr.message td.subject { padding-left: 20px; } |
|
194 | tr.message td.subject { padding-left: 20px; } | |
195 | tr.message td.created_on { white-space: nowrap; } |
|
195 | tr.message td.created_on { white-space: nowrap; } | |
196 | tr.message td.last_message { font-size: 80%; white-space: nowrap; } |
|
196 | tr.message td.last_message { font-size: 80%; white-space: nowrap; } | |
197 | tr.message.locked td.subject { background: url(../images/locked.png) no-repeat 0 1px; } |
|
197 | tr.message.locked td.subject { background: url(../images/locked.png) no-repeat 0 1px; } | |
198 | tr.message.sticky td.subject { background: url(../images/bullet_go.png) no-repeat 0 1px; font-weight: bold; } |
|
198 | tr.message.sticky td.subject { background: url(../images/bullet_go.png) no-repeat 0 1px; font-weight: bold; } | |
199 |
|
199 | |||
200 | tr.version.closed, tr.version.closed a { color: #999; } |
|
200 | tr.version.closed, tr.version.closed a { color: #999; } | |
201 | tr.version td.name { padding-left: 20px; } |
|
201 | tr.version td.name { padding-left: 20px; } | |
202 | tr.version.shared td.name { background: url(../images/link.png) no-repeat 0% 70%; } |
|
202 | tr.version.shared td.name { background: url(../images/link.png) no-repeat 0% 70%; } | |
203 | tr.version td.date, tr.version td.status, tr.version td.sharing { text-align: center; white-space:nowrap; } |
|
203 | tr.version td.date, tr.version td.status, tr.version td.sharing { text-align: center; white-space:nowrap; } | |
204 |
|
204 | |||
205 | tr.user td { width:13%; } |
|
205 | tr.user td { width:13%; } | |
206 | tr.user td.email { width:18%; } |
|
206 | tr.user td.email { width:18%; } | |
207 | tr.user td { white-space: nowrap; } |
|
207 | tr.user td { white-space: nowrap; } | |
208 | tr.user.locked, tr.user.registered { color: #aaa; } |
|
208 | tr.user.locked, tr.user.registered { color: #aaa; } | |
209 | tr.user.locked a, tr.user.registered a { color: #aaa; } |
|
209 | tr.user.locked a, tr.user.registered a { color: #aaa; } | |
210 |
|
210 | |||
211 | table.permissions td.role {color:#999;font-size:90%;font-weight:normal !important;text-align:center;vertical-align:bottom;} |
|
211 | table.permissions td.role {color:#999;font-size:90%;font-weight:normal !important;text-align:center;vertical-align:bottom;} | |
212 |
|
212 | |||
213 | tr.wiki-page-version td.updated_on, tr.wiki-page-version td.author {text-align:center;} |
|
213 | tr.wiki-page-version td.updated_on, tr.wiki-page-version td.author {text-align:center;} | |
214 |
|
214 | |||
215 | tr.time-entry { text-align: center; white-space: nowrap; } |
|
215 | tr.time-entry { text-align: center; white-space: nowrap; } | |
216 | tr.time-entry td.issue, tr.time-entry td.comments { text-align: left; white-space: normal; } |
|
216 | tr.time-entry td.issue, tr.time-entry td.comments { text-align: left; white-space: normal; } | |
217 | td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; } |
|
217 | td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; } | |
218 | td.hours .hours-dec { font-size: 0.9em; } |
|
218 | td.hours .hours-dec { font-size: 0.9em; } | |
219 |
|
219 | |||
220 | table.plugins td { vertical-align: middle; } |
|
220 | table.plugins td { vertical-align: middle; } | |
221 | table.plugins td.configure { text-align: right; padding-right: 1em; } |
|
221 | table.plugins td.configure { text-align: right; padding-right: 1em; } | |
222 | table.plugins span.name { font-weight: bold; display: block; margin-bottom: 6px; } |
|
222 | table.plugins span.name { font-weight: bold; display: block; margin-bottom: 6px; } | |
223 | table.plugins span.description { display: block; font-size: 0.9em; } |
|
223 | table.plugins span.description { display: block; font-size: 0.9em; } | |
224 | table.plugins span.url { display: block; font-size: 0.9em; } |
|
224 | table.plugins span.url { display: block; font-size: 0.9em; } | |
225 |
|
225 | |||
226 | table.list tbody tr.group td { padding: 0.8em 0 0.5em 0.3em; font-weight: bold; border-bottom: 1px solid #ccc; } |
|
226 | table.list tbody tr.group td { padding: 0.8em 0 0.5em 0.3em; font-weight: bold; border-bottom: 1px solid #ccc; } | |
227 | table.list tbody tr.group span.count {position:relative; top:-1px; color:#fff; font-size:10px; background:#9DB9D5; padding:0px 6px 1px 6px; border-radius:3px; margin-left:4px;} |
|
227 | table.list tbody tr.group span.count {position:relative; top:-1px; color:#fff; font-size:10px; background:#9DB9D5; padding:0px 6px 1px 6px; border-radius:3px; margin-left:4px;} | |
228 | tr.group a.toggle-all { color: #aaa; font-size: 80%; font-weight: normal; display:none;} |
|
228 | tr.group a.toggle-all { color: #aaa; font-size: 80%; font-weight: normal; display:none;} | |
229 | tr.group:hover a.toggle-all { display:inline;} |
|
229 | tr.group:hover a.toggle-all { display:inline;} | |
230 | a.toggle-all:hover {text-decoration:none;} |
|
230 | a.toggle-all:hover {text-decoration:none;} | |
231 |
|
231 | |||
232 | table.list tbody tr:hover { background-color:#ffffdd; } |
|
232 | table.list tbody tr:hover { background-color:#ffffdd; } | |
233 | table.list tbody tr.group:hover { background-color:inherit; } |
|
233 | table.list tbody tr.group:hover { background-color:inherit; } | |
234 | table td {padding:2px;} |
|
234 | table td {padding:2px;} | |
235 | table p {margin:0;} |
|
235 | table p {margin:0;} | |
236 | .odd {background-color:#f6f7f8;} |
|
236 | .odd {background-color:#f6f7f8;} | |
237 | .even {background-color: #fff;} |
|
237 | .even {background-color: #fff;} | |
238 |
|
238 | |||
239 | a.sort { padding-right: 16px; background-position: 100% 50%; background-repeat: no-repeat; } |
|
239 | a.sort { padding-right: 16px; background-position: 100% 50%; background-repeat: no-repeat; } | |
240 | a.sort.asc { background-image: url(../images/sort_asc.png); } |
|
240 | a.sort.asc { background-image: url(../images/sort_asc.png); } | |
241 | a.sort.desc { background-image: url(../images/sort_desc.png); } |
|
241 | a.sort.desc { background-image: url(../images/sort_desc.png); } | |
242 |
|
242 | |||
243 | table.attributes { width: 100% } |
|
243 | table.attributes { width: 100% } | |
244 | table.attributes th { vertical-align: top; text-align: left; } |
|
244 | table.attributes th { vertical-align: top; text-align: left; } | |
245 | table.attributes td { vertical-align: top; } |
|
245 | table.attributes td { vertical-align: top; } | |
246 |
|
246 | |||
247 | table.boards a.board, h3.comments { background: url(../images/comment.png) no-repeat 0% 50%; padding-left: 20px; } |
|
247 | table.boards a.board, h3.comments { background: url(../images/comment.png) no-repeat 0% 50%; padding-left: 20px; } | |
248 | table.boards td.topic-count, table.boards td.message-count {text-align:center;} |
|
248 | table.boards td.topic-count, table.boards td.message-count {text-align:center;} | |
249 | table.boards td.last-message {font-size:80%;} |
|
249 | table.boards td.last-message {font-size:80%;} | |
250 |
|
250 | |||
251 | table.messages td.author, table.messages td.created_on, table.messages td.reply-count {text-align:center;} |
|
251 | table.messages td.author, table.messages td.created_on, table.messages td.reply-count {text-align:center;} | |
252 |
|
252 | |||
253 | table.query-columns { |
|
253 | table.query-columns { | |
254 | border-collapse: collapse; |
|
254 | border-collapse: collapse; | |
255 | border: 0; |
|
255 | border: 0; | |
256 | } |
|
256 | } | |
257 |
|
257 | |||
258 | table.query-columns td.buttons { |
|
258 | table.query-columns td.buttons { | |
259 | vertical-align: middle; |
|
259 | vertical-align: middle; | |
260 | text-align: center; |
|
260 | text-align: center; | |
261 | } |
|
261 | } | |
262 |
|
262 | |||
263 | td.center {text-align:center;} |
|
263 | td.center {text-align:center;} | |
264 |
|
264 | |||
265 | h3.version { background: url(../images/package.png) no-repeat 0% 50%; padding-left: 20px; } |
|
265 | h3.version { background: url(../images/package.png) no-repeat 0% 50%; padding-left: 20px; } | |
266 |
|
266 | |||
267 | div.issues h3 { background: url(../images/ticket.png) no-repeat 0% 50%; padding-left: 20px; } |
|
267 | div.issues h3 { background: url(../images/ticket.png) no-repeat 0% 50%; padding-left: 20px; } | |
268 | div.members h3 { background: url(../images/group.png) no-repeat 0% 50%; padding-left: 20px; } |
|
268 | div.members h3 { background: url(../images/group.png) no-repeat 0% 50%; padding-left: 20px; } | |
269 | div.news h3 { background: url(../images/news.png) no-repeat 0% 50%; padding-left: 20px; } |
|
269 | div.news h3 { background: url(../images/news.png) no-repeat 0% 50%; padding-left: 20px; } | |
270 | div.projects h3 { background: url(../images/projects.png) no-repeat 0% 50%; padding-left: 20px; } |
|
270 | div.projects h3 { background: url(../images/projects.png) no-repeat 0% 50%; padding-left: 20px; } | |
271 |
|
271 | |||
272 | #watchers select {width: 95%; display: block;} |
|
272 | #watchers select {width: 95%; display: block;} | |
273 | #watchers a.delete {opacity: 0.4; vertical-align: middle;} |
|
273 | #watchers a.delete {opacity: 0.4; vertical-align: middle;} | |
274 | #watchers a.delete:hover {opacity: 1;} |
|
274 | #watchers a.delete:hover {opacity: 1;} | |
275 | #watchers img.gravatar {margin: 0 4px 2px 0;} |
|
275 | #watchers img.gravatar {margin: 0 4px 2px 0;} | |
276 |
|
276 | |||
277 | span#watchers_inputs {overflow:auto; display:block;} |
|
277 | span#watchers_inputs {overflow:auto; display:block;} | |
278 | span.search_for_watchers {display:block;} |
|
278 | span.search_for_watchers {display:block;} | |
279 | span.search_for_watchers, span.add_attachment {font-size:80%; line-height:2.5em;} |
|
279 | span.search_for_watchers, span.add_attachment {font-size:80%; line-height:2.5em;} | |
280 | span.search_for_watchers a, span.add_attachment a {padding-left:16px; background: url(../images/bullet_add.png) no-repeat 0 50%; } |
|
280 | span.search_for_watchers a, span.add_attachment a {padding-left:16px; background: url(../images/bullet_add.png) no-repeat 0 50%; } | |
281 |
|
281 | |||
282 |
|
282 | |||
283 | .highlight { background-color: #FCFD8D;} |
|
283 | .highlight { background-color: #FCFD8D;} | |
284 | .highlight.token-1 { background-color: #faa;} |
|
284 | .highlight.token-1 { background-color: #faa;} | |
285 | .highlight.token-2 { background-color: #afa;} |
|
285 | .highlight.token-2 { background-color: #afa;} | |
286 | .highlight.token-3 { background-color: #aaf;} |
|
286 | .highlight.token-3 { background-color: #aaf;} | |
287 |
|
287 | |||
288 | .box{ |
|
288 | .box{ | |
289 | padding:6px; |
|
289 | padding:6px; | |
290 | margin-bottom: 10px; |
|
290 | margin-bottom: 10px; | |
291 | background-color:#f6f6f6; |
|
291 | background-color:#f6f6f6; | |
292 | color:#505050; |
|
292 | color:#505050; | |
293 | line-height:1.5em; |
|
293 | line-height:1.5em; | |
294 | border: 1px solid #e4e4e4; |
|
294 | border: 1px solid #e4e4e4; | |
295 | } |
|
295 | } | |
296 |
|
296 | |||
297 | div.square { |
|
297 | div.square { | |
298 | border: 1px solid #999; |
|
298 | border: 1px solid #999; | |
299 | float: left; |
|
299 | float: left; | |
300 | margin: .3em .4em 0 .4em; |
|
300 | margin: .3em .4em 0 .4em; | |
301 | overflow: hidden; |
|
301 | overflow: hidden; | |
302 | width: .6em; height: .6em; |
|
302 | width: .6em; height: .6em; | |
303 | } |
|
303 | } | |
304 | .contextual {float:right; white-space: nowrap; line-height:1.4em;margin-top:5px; padding-left: 10px; font-size:0.9em;} |
|
304 | .contextual {float:right; white-space: nowrap; line-height:1.4em;margin-top:5px; padding-left: 10px; font-size:0.9em;} | |
305 | .contextual input, .contextual select {font-size:0.9em;} |
|
305 | .contextual input, .contextual select {font-size:0.9em;} | |
306 | .message .contextual { margin-top: 0; } |
|
306 | .message .contextual { margin-top: 0; } | |
307 |
|
307 | |||
308 | .splitcontent {overflow:auto;} |
|
308 | .splitcontent {overflow:auto;} | |
309 | .splitcontentleft{float:left; width:49%;} |
|
309 | .splitcontentleft{float:left; width:49%;} | |
310 | .splitcontentright{float:right; width:49%;} |
|
310 | .splitcontentright{float:right; width:49%;} | |
311 | form {display: inline;} |
|
311 | form {display: inline;} | |
312 | input, select {vertical-align: middle; margin-top: 1px; margin-bottom: 1px;} |
|
312 | input, select {vertical-align: middle; margin-top: 1px; margin-bottom: 1px;} | |
313 | fieldset {border: 1px solid #e4e4e4; margin:0;} |
|
313 | fieldset {border: 1px solid #e4e4e4; margin:0;} | |
314 | legend {color: #484848;} |
|
314 | legend {color: #484848;} | |
315 | hr { width: 100%; height: 1px; background: #ccc; border: 0;} |
|
315 | hr { width: 100%; height: 1px; background: #ccc; border: 0;} | |
316 | blockquote { font-style: italic; border-left: 3px solid #e0e0e0; padding-left: 0.6em; margin-left: 2.4em;} |
|
316 | blockquote { font-style: italic; border-left: 3px solid #e0e0e0; padding-left: 0.6em; margin-left: 2.4em;} | |
317 | blockquote blockquote { margin-left: 0;} |
|
317 | blockquote blockquote { margin-left: 0;} | |
318 | acronym { border-bottom: 1px dotted; cursor: help; } |
|
318 | acronym { border-bottom: 1px dotted; cursor: help; } | |
319 | textarea.wiki-edit {width:99%; resize:vertical;} |
|
319 | textarea.wiki-edit {width:99%; resize:vertical;} | |
320 | li p {margin-top: 0;} |
|
320 | li p {margin-top: 0;} | |
321 | div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;} |
|
321 | div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;} | |
322 | p.breadcrumb { font-size: 0.9em; margin: 4px 0 4px 0;} |
|
322 | p.breadcrumb { font-size: 0.9em; margin: 4px 0 4px 0;} | |
323 | p.subtitle { font-size: 0.9em; margin: -6px 0 12px 0; font-style: italic; } |
|
323 | p.subtitle { font-size: 0.9em; margin: -6px 0 12px 0; font-style: italic; } | |
324 | p.footnote { font-size: 0.9em; margin-top: 0px; margin-bottom: 0px; } |
|
324 | p.footnote { font-size: 0.9em; margin-top: 0px; margin-bottom: 0px; } | |
325 |
|
325 | |||
326 | div.issue div.subject div div { padding-left: 16px; } |
|
326 | div.issue div.subject div div { padding-left: 16px; } | |
327 | div.issue div.subject p {margin: 0; margin-bottom: 0.1em; font-size: 90%; color: #999;} |
|
327 | div.issue div.subject p {margin: 0; margin-bottom: 0.1em; font-size: 90%; color: #999;} | |
328 | div.issue div.subject>div>p { margin-top: 0.5em; } |
|
328 | div.issue div.subject>div>p { margin-top: 0.5em; } | |
329 | div.issue div.subject h3 {margin: 0; margin-bottom: 0.1em;} |
|
329 | div.issue div.subject h3 {margin: 0; margin-bottom: 0.1em;} | |
330 | div.issue span.private { position:relative; bottom: 2px; text-transform: uppercase; background: #d22; color: #fff; font-weight:bold; padding: 0px 2px 0px 2px; font-size: 60%; margin-right: 2px; border-radius: 2px;} |
|
330 | div.issue span.private { position:relative; bottom: 2px; text-transform: uppercase; background: #d22; color: #fff; font-weight:bold; padding: 0px 2px 0px 2px; font-size: 60%; margin-right: 2px; border-radius: 2px;} | |
331 | div.issue .next-prev-links {color:#999;} |
|
331 | div.issue .next-prev-links {color:#999;} | |
332 | div.issue table.attributes th {width:22%;} |
|
332 | div.issue table.attributes th {width:22%;} | |
333 | div.issue table.attributes td {width:28%;} |
|
333 | div.issue table.attributes td {width:28%;} | |
334 |
|
334 | |||
335 | #issue_tree table.issues, #relations table.issues { border: 0; } |
|
335 | #issue_tree table.issues, #relations table.issues { border: 0; } | |
336 | #issue_tree td.checkbox, #relations td.checkbox {display:none;} |
|
336 | #issue_tree td.checkbox, #relations td.checkbox {display:none;} | |
337 | #relations td.buttons {padding:0;} |
|
337 | #relations td.buttons {padding:0;} | |
338 |
|
338 | |||
339 | fieldset.collapsible { border-width: 1px 0 0 0; font-size: 0.9em; } |
|
339 | fieldset.collapsible { border-width: 1px 0 0 0; font-size: 0.9em; } | |
340 | fieldset.collapsible>legend { padding-left: 16px; background: url(../images/arrow_expanded.png) no-repeat 0% 40%; cursor:pointer; } |
|
340 | fieldset.collapsible>legend { padding-left: 16px; background: url(../images/arrow_expanded.png) no-repeat 0% 40%; cursor:pointer; } | |
341 | fieldset.collapsible.collapsed>legend { background-image: url(../images/arrow_collapsed.png); } |
|
341 | fieldset.collapsible.collapsed>legend { background-image: url(../images/arrow_collapsed.png); } | |
342 |
|
342 | |||
343 | fieldset#date-range p { margin: 2px 0 2px 0; } |
|
343 | fieldset#date-range p { margin: 2px 0 2px 0; } | |
344 | fieldset#filters table { border-collapse: collapse; } |
|
344 | fieldset#filters table { border-collapse: collapse; } | |
345 | fieldset#filters table td { padding: 0; vertical-align: middle; } |
|
345 | fieldset#filters table td { padding: 0; vertical-align: middle; } | |
346 | fieldset#filters tr.filter { height: 2.1em; } |
|
346 | fieldset#filters tr.filter { height: 2.1em; } | |
347 | fieldset#filters td.field { width:230px; } |
|
347 | fieldset#filters td.field { width:230px; } | |
348 | fieldset#filters td.operator { width:180px; } |
|
348 | fieldset#filters td.operator { width:180px; } | |
349 | fieldset#filters td.operator select {max-width:170px;} |
|
349 | fieldset#filters td.operator select {max-width:170px;} | |
350 | fieldset#filters td.values { white-space:nowrap; } |
|
350 | fieldset#filters td.values { white-space:nowrap; } | |
351 | fieldset#filters td.values select {min-width:130px;} |
|
351 | fieldset#filters td.values select {min-width:130px;} | |
352 | fieldset#filters td.values input {height:1em;} |
|
352 | fieldset#filters td.values input {height:1em;} | |
353 | fieldset#filters td.add-filter { text-align: right; vertical-align: top; } |
|
353 | fieldset#filters td.add-filter { text-align: right; vertical-align: top; } | |
354 |
|
354 | |||
355 | .toggle-multiselect {background: url(../images/bullet_toggle_plus.png) no-repeat 0% 40%; padding-left:8px; margin-left:0; cursor:pointer;} |
|
355 | .toggle-multiselect {background: url(../images/bullet_toggle_plus.png) no-repeat 0% 40%; padding-left:8px; margin-left:0; cursor:pointer;} | |
356 | .buttons { font-size: 0.9em; margin-bottom: 1.4em; margin-top: 1em; } |
|
356 | .buttons { font-size: 0.9em; margin-bottom: 1.4em; margin-top: 1em; } | |
357 |
|
357 | |||
358 | div#issue-changesets {float:right; width:45%; margin-left: 1em; margin-bottom: 1em; background: #fff; padding-left: 1em; font-size: 90%;} |
|
358 | div#issue-changesets {float:right; width:45%; margin-left: 1em; margin-bottom: 1em; background: #fff; padding-left: 1em; font-size: 90%;} | |
359 | div#issue-changesets div.changeset { padding: 4px;} |
|
359 | div#issue-changesets div.changeset { padding: 4px;} | |
360 | div#issue-changesets div.changeset { border-bottom: 1px solid #ddd; } |
|
360 | div#issue-changesets div.changeset { border-bottom: 1px solid #ddd; } | |
361 | div#issue-changesets p { margin-top: 0; margin-bottom: 1em;} |
|
361 | div#issue-changesets p { margin-top: 0; margin-bottom: 1em;} | |
362 |
|
362 | |||
363 | .journal ul.details img {margin:0 0 -3px 4px;} |
|
363 | .journal ul.details img {margin:0 0 -3px 4px;} | |
364 | div.journal {overflow:auto;} |
|
364 | div.journal {overflow:auto;} | |
365 | div.journal.private-notes {border-left:2px solid #d22; padding-left:4px; margin-left:-6px;} |
|
365 | div.journal.private-notes {border-left:2px solid #d22; padding-left:4px; margin-left:-6px;} | |
366 |
|
366 | |||
367 | div#activity dl, #search-results { margin-left: 2em; } |
|
367 | div#activity dl, #search-results { margin-left: 2em; } | |
368 | div#activity dd, #search-results dd { margin-bottom: 1em; padding-left: 18px; font-size: 0.9em; } |
|
368 | div#activity dd, #search-results dd { margin-bottom: 1em; padding-left: 18px; font-size: 0.9em; } | |
369 | div#activity dt, #search-results dt { margin-bottom: 0px; padding-left: 20px; line-height: 18px; background-position: 0 50%; background-repeat: no-repeat; } |
|
369 | div#activity dt, #search-results dt { margin-bottom: 0px; padding-left: 20px; line-height: 18px; background-position: 0 50%; background-repeat: no-repeat; } | |
370 | div#activity dt.me .time { border-bottom: 1px solid #999; } |
|
370 | div#activity dt.me .time { border-bottom: 1px solid #999; } | |
371 | div#activity dt .time { color: #777; font-size: 80%; } |
|
371 | div#activity dt .time { color: #777; font-size: 80%; } | |
372 | div#activity dd .description, #search-results dd .description { font-style: italic; } |
|
372 | div#activity dd .description, #search-results dd .description { font-style: italic; } | |
373 | div#activity span.project:after, #search-results span.project:after { content: " -"; } |
|
373 | div#activity span.project:after, #search-results span.project:after { content: " -"; } | |
374 | div#activity dd span.description, #search-results dd span.description { display:block; color: #808080; } |
|
374 | div#activity dd span.description, #search-results dd span.description { display:block; color: #808080; } | |
375 | div#activity dt.grouped {margin-left:5em;} |
|
375 | div#activity dt.grouped {margin-left:5em;} | |
376 | div#activity dd.grouped {margin-left:9em;} |
|
376 | div#activity dd.grouped {margin-left:9em;} | |
377 |
|
377 | |||
378 | #search-results dd { margin-bottom: 1em; padding-left: 20px; margin-left:0px; } |
|
378 | #search-results dd { margin-bottom: 1em; padding-left: 20px; margin-left:0px; } | |
379 |
|
379 | |||
380 | div#search-results-counts {float:right;} |
|
380 | div#search-results-counts {float:right;} | |
381 | div#search-results-counts ul { margin-top: 0.5em; } |
|
381 | div#search-results-counts ul { margin-top: 0.5em; } | |
382 | div#search-results-counts li { list-style-type:none; float: left; margin-left: 1em; } |
|
382 | div#search-results-counts li { list-style-type:none; float: left; margin-left: 1em; } | |
383 |
|
383 | |||
384 | dt.issue { background-image: url(../images/ticket.png); } |
|
384 | dt.issue { background-image: url(../images/ticket.png); } | |
385 | dt.issue-edit { background-image: url(../images/ticket_edit.png); } |
|
385 | dt.issue-edit { background-image: url(../images/ticket_edit.png); } | |
386 | dt.issue-closed { background-image: url(../images/ticket_checked.png); } |
|
386 | dt.issue-closed { background-image: url(../images/ticket_checked.png); } | |
387 | dt.issue-note { background-image: url(../images/ticket_note.png); } |
|
387 | dt.issue-note { background-image: url(../images/ticket_note.png); } | |
388 | dt.changeset { background-image: url(../images/changeset.png); } |
|
388 | dt.changeset { background-image: url(../images/changeset.png); } | |
389 | dt.news { background-image: url(../images/news.png); } |
|
389 | dt.news { background-image: url(../images/news.png); } | |
390 | dt.message { background-image: url(../images/message.png); } |
|
390 | dt.message { background-image: url(../images/message.png); } | |
391 | dt.reply { background-image: url(../images/comments.png); } |
|
391 | dt.reply { background-image: url(../images/comments.png); } | |
392 | dt.wiki-page { background-image: url(../images/wiki_edit.png); } |
|
392 | dt.wiki-page { background-image: url(../images/wiki_edit.png); } | |
393 | dt.attachment { background-image: url(../images/attachment.png); } |
|
393 | dt.attachment { background-image: url(../images/attachment.png); } | |
394 | dt.document { background-image: url(../images/document.png); } |
|
394 | dt.document { background-image: url(../images/document.png); } | |
395 | dt.project { background-image: url(../images/projects.png); } |
|
395 | dt.project { background-image: url(../images/projects.png); } | |
396 | dt.time-entry { background-image: url(../images/time.png); } |
|
396 | dt.time-entry { background-image: url(../images/time.png); } | |
397 |
|
397 | |||
398 | #search-results dt.issue.closed { background-image: url(../images/ticket_checked.png); } |
|
398 | #search-results dt.issue.closed { background-image: url(../images/ticket_checked.png); } | |
399 |
|
399 | |||
400 | div#roadmap .related-issues { margin-bottom: 1em; } |
|
400 | div#roadmap .related-issues { margin-bottom: 1em; } | |
401 | div#roadmap .related-issues td.checkbox { display: none; } |
|
401 | div#roadmap .related-issues td.checkbox { display: none; } | |
402 | div#roadmap .wiki h1:first-child { display: none; } |
|
402 | div#roadmap .wiki h1:first-child { display: none; } | |
403 | div#roadmap .wiki h1 { font-size: 120%; } |
|
403 | div#roadmap .wiki h1 { font-size: 120%; } | |
404 | div#roadmap .wiki h2 { font-size: 110%; } |
|
404 | div#roadmap .wiki h2 { font-size: 110%; } | |
405 | body.controller-versions.action-show div#roadmap .related-issues {width:70%;} |
|
405 | body.controller-versions.action-show div#roadmap .related-issues {width:70%;} | |
406 |
|
406 | |||
407 | div#version-summary { float:right; width:28%; margin-left: 16px; margin-bottom: 16px; background-color: #fff; } |
|
407 | div#version-summary { float:right; width:28%; margin-left: 16px; margin-bottom: 16px; background-color: #fff; } | |
408 | div#version-summary fieldset { margin-bottom: 1em; } |
|
408 | div#version-summary fieldset { margin-bottom: 1em; } | |
409 | div#version-summary fieldset.time-tracking table { width:100%; } |
|
409 | div#version-summary fieldset.time-tracking table { width:100%; } | |
410 | div#version-summary th, div#version-summary td.total-hours { text-align: right; } |
|
410 | div#version-summary th, div#version-summary td.total-hours { text-align: right; } | |
411 |
|
411 | |||
412 | table#time-report td.hours, table#time-report th.period, table#time-report th.total { text-align: right; padding-right: 0.5em; } |
|
412 | table#time-report td.hours, table#time-report th.period, table#time-report th.total { text-align: right; padding-right: 0.5em; } | |
413 | table#time-report tbody tr.subtotal { font-style: italic; color:#777;} |
|
413 | table#time-report tbody tr.subtotal { font-style: italic; color:#777;} | |
414 | table#time-report tbody tr.subtotal td.hours { color:#b0b0b0; } |
|
414 | table#time-report tbody tr.subtotal td.hours { color:#b0b0b0; } | |
415 | table#time-report tbody tr.total { font-weight: bold; background-color:#EEEEEE; border-top:1px solid #e4e4e4;} |
|
415 | table#time-report tbody tr.total { font-weight: bold; background-color:#EEEEEE; border-top:1px solid #e4e4e4;} | |
416 | table#time-report .hours-dec { font-size: 0.9em; } |
|
416 | table#time-report .hours-dec { font-size: 0.9em; } | |
417 |
|
417 | |||
418 | div.wiki-page .contextual a {opacity: 0.4} |
|
418 | div.wiki-page .contextual a {opacity: 0.4} | |
419 | div.wiki-page .contextual a:hover {opacity: 1} |
|
419 | div.wiki-page .contextual a:hover {opacity: 1} | |
420 |
|
420 | |||
421 | form .attributes select { width: 60%; } |
|
421 | form .attributes select { width: 60%; } | |
422 | input#issue_subject { width: 99%; } |
|
422 | input#issue_subject { width: 99%; } | |
423 | select#issue_done_ratio { width: 95px; } |
|
423 | select#issue_done_ratio { width: 95px; } | |
424 |
|
424 | |||
425 | ul.projects {margin:0; padding-left:1em;} |
|
425 | ul.projects {margin:0; padding-left:1em;} | |
426 | ul.projects ul {padding-left:1.6em;} |
|
426 | ul.projects ul {padding-left:1.6em;} | |
427 | ul.projects.root {margin:0; padding:0;} |
|
427 | ul.projects.root {margin:0; padding:0;} | |
428 | ul.projects li {list-style-type:none;} |
|
428 | ul.projects li {list-style-type:none;} | |
429 |
|
429 | |||
430 | #projects-index ul.projects ul.projects { border-left: 3px solid #e0e0e0; padding-left:1em;} |
|
430 | #projects-index ul.projects ul.projects { border-left: 3px solid #e0e0e0; padding-left:1em;} | |
431 | #projects-index ul.projects li.root {margin-bottom: 1em;} |
|
431 | #projects-index ul.projects li.root {margin-bottom: 1em;} | |
432 | #projects-index ul.projects li.child {margin-top: 1em;} |
|
432 | #projects-index ul.projects li.child {margin-top: 1em;} | |
433 | #projects-index ul.projects div.root a.project { font-family: "Trebuchet MS", Verdana, sans-serif; font-weight: bold; font-size: 16px; margin: 0 0 10px 0; } |
|
433 | #projects-index ul.projects div.root a.project { font-family: "Trebuchet MS", Verdana, sans-serif; font-weight: bold; font-size: 16px; margin: 0 0 10px 0; } | |
434 | .my-project { padding-left: 18px; background: url(../images/fav.png) no-repeat 0 50%; } |
|
434 | .my-project { padding-left: 18px; background: url(../images/fav.png) no-repeat 0 50%; } | |
435 |
|
435 | |||
436 | #notified-projects ul, #tracker_project_ids ul {max-height:250px; overflow-y:auto;} |
|
436 | #notified-projects ul, #tracker_project_ids ul, #custom_field_project_ids ul {max-height:250px; overflow-y:auto;} | |
437 |
|
437 | |||
438 | #related-issues li img {vertical-align:middle;} |
|
438 | #related-issues li img {vertical-align:middle;} | |
439 |
|
439 | |||
440 | ul.properties {padding:0; font-size: 0.9em; color: #777;} |
|
440 | ul.properties {padding:0; font-size: 0.9em; color: #777;} | |
441 | ul.properties li {list-style-type:none;} |
|
441 | ul.properties li {list-style-type:none;} | |
442 | ul.properties li span {font-style:italic;} |
|
442 | ul.properties li span {font-style:italic;} | |
443 |
|
443 | |||
444 | .total-hours { font-size: 110%; font-weight: bold; } |
|
444 | .total-hours { font-size: 110%; font-weight: bold; } | |
445 | .total-hours span.hours-int { font-size: 120%; } |
|
445 | .total-hours span.hours-int { font-size: 120%; } | |
446 |
|
446 | |||
447 | .autoscroll {overflow-x: auto; padding:1px; margin-bottom: 1.2em;} |
|
447 | .autoscroll {overflow-x: auto; padding:1px; margin-bottom: 1.2em;} | |
448 | #user_login, #user_firstname, #user_lastname, #user_mail, #my_account_form select, #user_form select, #user_identity_url { width: 90%; } |
|
448 | #user_login, #user_firstname, #user_lastname, #user_mail, #my_account_form select, #user_form select, #user_identity_url { width: 90%; } | |
449 |
|
449 | |||
450 | #workflow_copy_form select { width: 200px; } |
|
450 | #workflow_copy_form select { width: 200px; } | |
451 | table.transitions td.enabled {background: #bfb;} |
|
451 | table.transitions td.enabled {background: #bfb;} | |
452 | table.fields_permissions select {font-size:90%} |
|
452 | table.fields_permissions select {font-size:90%} | |
453 | table.fields_permissions td.readonly {background:#ddd;} |
|
453 | table.fields_permissions td.readonly {background:#ddd;} | |
454 | table.fields_permissions td.required {background:#d88;} |
|
454 | table.fields_permissions td.required {background:#d88;} | |
455 |
|
455 | |||
456 | textarea#custom_field_possible_values {width: 99%} |
|
456 | textarea#custom_field_possible_values {width: 99%} | |
457 | textarea#custom_field_default_value {width: 99%} |
|
457 | textarea#custom_field_default_value {width: 99%} | |
458 |
|
458 | |||
459 | input#content_comments {width: 99%} |
|
459 | input#content_comments {width: 99%} | |
460 |
|
460 | |||
461 | p.pagination {margin-top:8px; font-size: 90%} |
|
461 | p.pagination {margin-top:8px; font-size: 90%} | |
462 |
|
462 | |||
463 | /***** Tabular forms ******/ |
|
463 | /***** Tabular forms ******/ | |
464 | .tabular p{ |
|
464 | .tabular p{ | |
465 | margin: 0; |
|
465 | margin: 0; | |
466 | padding: 3px 0 3px 0; |
|
466 | padding: 3px 0 3px 0; | |
467 | padding-left: 180px; /* width of left column containing the label elements */ |
|
467 | padding-left: 180px; /* width of left column containing the label elements */ | |
468 | min-height: 1.8em; |
|
468 | min-height: 1.8em; | |
469 | clear:left; |
|
469 | clear:left; | |
470 | } |
|
470 | } | |
471 |
|
471 | |||
472 | html>body .tabular p {overflow:hidden;} |
|
472 | html>body .tabular p {overflow:hidden;} | |
473 |
|
473 | |||
474 | .tabular label{ |
|
474 | .tabular label{ | |
475 | font-weight: bold; |
|
475 | font-weight: bold; | |
476 | float: left; |
|
476 | float: left; | |
477 | text-align: right; |
|
477 | text-align: right; | |
478 | /* width of left column */ |
|
478 | /* width of left column */ | |
479 | margin-left: -180px; |
|
479 | margin-left: -180px; | |
480 | /* width of labels. Should be smaller than left column to create some right margin */ |
|
480 | /* width of labels. Should be smaller than left column to create some right margin */ | |
481 | width: 175px; |
|
481 | width: 175px; | |
482 | } |
|
482 | } | |
483 |
|
483 | |||
484 | .tabular label.floating{ |
|
484 | .tabular label.floating{ | |
485 | font-weight: normal; |
|
485 | font-weight: normal; | |
486 | margin-left: 0px; |
|
486 | margin-left: 0px; | |
487 | text-align: left; |
|
487 | text-align: left; | |
488 | width: 270px; |
|
488 | width: 270px; | |
489 | } |
|
489 | } | |
490 |
|
490 | |||
491 | .tabular label.block{ |
|
491 | .tabular label.block{ | |
492 | font-weight: normal; |
|
492 | font-weight: normal; | |
493 | margin-left: 0px !important; |
|
493 | margin-left: 0px !important; | |
494 | text-align: left; |
|
494 | text-align: left; | |
495 | float: none; |
|
495 | float: none; | |
496 | display: block; |
|
496 | display: block; | |
497 | width: auto; |
|
497 | width: auto; | |
498 | } |
|
498 | } | |
499 |
|
499 | |||
500 | .tabular label.inline{ |
|
500 | .tabular label.inline{ | |
501 | font-weight: normal; |
|
501 | font-weight: normal; | |
502 | float:none; |
|
502 | float:none; | |
503 | margin-left: 5px !important; |
|
503 | margin-left: 5px !important; | |
504 | width: auto; |
|
504 | width: auto; | |
505 | } |
|
505 | } | |
506 |
|
506 | |||
507 | label.no-css { |
|
507 | label.no-css { | |
508 | font-weight: inherit; |
|
508 | font-weight: inherit; | |
509 | float:none; |
|
509 | float:none; | |
510 | text-align:left; |
|
510 | text-align:left; | |
511 | margin-left:0px; |
|
511 | margin-left:0px; | |
512 | width:auto; |
|
512 | width:auto; | |
513 | } |
|
513 | } | |
514 | input#time_entry_comments { width: 90%;} |
|
514 | input#time_entry_comments { width: 90%;} | |
515 |
|
515 | |||
516 | #preview fieldset {margin-top: 1em; background: url(../images/draft.png)} |
|
516 | #preview fieldset {margin-top: 1em; background: url(../images/draft.png)} | |
517 |
|
517 | |||
518 | .tabular.settings p{ padding-left: 300px; } |
|
518 | .tabular.settings p{ padding-left: 300px; } | |
519 | .tabular.settings label{ margin-left: -300px; width: 295px; } |
|
519 | .tabular.settings label{ margin-left: -300px; width: 295px; } | |
520 | .tabular.settings textarea { width: 99%; } |
|
520 | .tabular.settings textarea { width: 99%; } | |
521 |
|
521 | |||
522 | .settings.enabled_scm table {width:100%} |
|
522 | .settings.enabled_scm table {width:100%} | |
523 | .settings.enabled_scm td.scm_name{ font-weight: bold; } |
|
523 | .settings.enabled_scm td.scm_name{ font-weight: bold; } | |
524 |
|
524 | |||
525 | fieldset.settings label { display: block; } |
|
525 | fieldset.settings label { display: block; } | |
526 | fieldset#notified_events .parent { padding-left: 20px; } |
|
526 | fieldset#notified_events .parent { padding-left: 20px; } | |
527 |
|
527 | |||
528 | span.required {color: #bb0000;} |
|
528 | span.required {color: #bb0000;} | |
529 | .summary {font-style: italic;} |
|
529 | .summary {font-style: italic;} | |
530 |
|
530 | |||
531 | #attachments_fields input.description {margin-left:4px; width:340px;} |
|
531 | #attachments_fields input.description {margin-left:4px; width:340px;} | |
532 | #attachments_fields span {display:block; white-space:nowrap;} |
|
532 | #attachments_fields span {display:block; white-space:nowrap;} | |
533 | #attachments_fields input.filename {border:0; height:1.8em; width:250px; color:#555; background-color:inherit; background:url(../images/attachment.png) no-repeat 1px 50%; padding-left:18px;} |
|
533 | #attachments_fields input.filename {border:0; height:1.8em; width:250px; color:#555; background-color:inherit; background:url(../images/attachment.png) no-repeat 1px 50%; padding-left:18px;} | |
534 | #attachments_fields .ajax-waiting input.filename {background:url(../images/hourglass.png) no-repeat 0px 50%;} |
|
534 | #attachments_fields .ajax-waiting input.filename {background:url(../images/hourglass.png) no-repeat 0px 50%;} | |
535 | #attachments_fields .ajax-loading input.filename {background:url(../images/loading.gif) no-repeat 0px 50%;} |
|
535 | #attachments_fields .ajax-loading input.filename {background:url(../images/loading.gif) no-repeat 0px 50%;} | |
536 | #attachments_fields div.ui-progressbar { width: 100px; height:14px; margin: 2px 0 -5px 8px; display: inline-block; } |
|
536 | #attachments_fields div.ui-progressbar { width: 100px; height:14px; margin: 2px 0 -5px 8px; display: inline-block; } | |
537 | a.remove-upload {background: url(../images/delete.png) no-repeat 1px 50%; width:1px; display:inline-block; padding-left:16px;} |
|
537 | a.remove-upload {background: url(../images/delete.png) no-repeat 1px 50%; width:1px; display:inline-block; padding-left:16px;} | |
538 | a.remove-upload:hover {text-decoration:none !important;} |
|
538 | a.remove-upload:hover {text-decoration:none !important;} | |
539 |
|
539 | |||
540 | div.fileover { background-color: lavender; } |
|
540 | div.fileover { background-color: lavender; } | |
541 |
|
541 | |||
542 | div.attachments { margin-top: 12px; } |
|
542 | div.attachments { margin-top: 12px; } | |
543 | div.attachments p { margin:4px 0 2px 0; } |
|
543 | div.attachments p { margin:4px 0 2px 0; } | |
544 | div.attachments img { vertical-align: middle; } |
|
544 | div.attachments img { vertical-align: middle; } | |
545 | div.attachments span.author { font-size: 0.9em; color: #888; } |
|
545 | div.attachments span.author { font-size: 0.9em; color: #888; } | |
546 |
|
546 | |||
547 | div.thumbnails {margin-top:0.6em;} |
|
547 | div.thumbnails {margin-top:0.6em;} | |
548 | div.thumbnails div {background:#fff;border:2px solid #ddd;display:inline-block;margin-right:2px;} |
|
548 | div.thumbnails div {background:#fff;border:2px solid #ddd;display:inline-block;margin-right:2px;} | |
549 | div.thumbnails img {margin: 3px;} |
|
549 | div.thumbnails img {margin: 3px;} | |
550 |
|
550 | |||
551 | p.other-formats { text-align: right; font-size:0.9em; color: #666; } |
|
551 | p.other-formats { text-align: right; font-size:0.9em; color: #666; } | |
552 | .other-formats span + span:before { content: "| "; } |
|
552 | .other-formats span + span:before { content: "| "; } | |
553 |
|
553 | |||
554 | a.atom { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; } |
|
554 | a.atom { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; } | |
555 |
|
555 | |||
556 | em.info {font-style:normal;font-size:90%;color:#888;display:block;} |
|
556 | em.info {font-style:normal;font-size:90%;color:#888;display:block;} | |
557 | em.info.error {padding-left:20px; background:url(../images/exclamation.png) no-repeat 0 50%;} |
|
557 | em.info.error {padding-left:20px; background:url(../images/exclamation.png) no-repeat 0 50%;} | |
558 |
|
558 | |||
559 | textarea.text_cf {width:90%;} |
|
559 | textarea.text_cf {width:90%;} | |
560 |
|
560 | |||
561 | #tab-content-modules fieldset p {margin:3px 0 4px 0;} |
|
561 | #tab-content-modules fieldset p {margin:3px 0 4px 0;} | |
562 |
|
562 | |||
563 | #tab-content-members .splitcontentleft, #tab-content-memberships .splitcontentleft, #tab-content-users .splitcontentleft {width: 64%;} |
|
563 | #tab-content-members .splitcontentleft, #tab-content-memberships .splitcontentleft, #tab-content-users .splitcontentleft {width: 64%;} | |
564 | #tab-content-members .splitcontentright, #tab-content-memberships .splitcontentright, #tab-content-users .splitcontentright {width: 34%;} |
|
564 | #tab-content-members .splitcontentright, #tab-content-memberships .splitcontentright, #tab-content-users .splitcontentright {width: 34%;} | |
565 | #tab-content-members fieldset, #tab-content-memberships fieldset, #tab-content-users fieldset {padding:1em; margin-bottom: 1em;} |
|
565 | #tab-content-members fieldset, #tab-content-memberships fieldset, #tab-content-users fieldset {padding:1em; margin-bottom: 1em;} | |
566 | #tab-content-members fieldset legend, #tab-content-memberships fieldset legend, #tab-content-users fieldset legend {font-weight: bold;} |
|
566 | #tab-content-members fieldset legend, #tab-content-memberships fieldset legend, #tab-content-users fieldset legend {font-weight: bold;} | |
567 | #tab-content-members fieldset label, #tab-content-memberships fieldset label, #tab-content-users fieldset label {display: block;} |
|
567 | #tab-content-members fieldset label, #tab-content-memberships fieldset label, #tab-content-users fieldset label {display: block;} | |
568 | #tab-content-members #principals, #tab-content-users #principals {max-height: 400px; overflow: auto;} |
|
568 | #tab-content-members #principals, #tab-content-users #principals {max-height: 400px; overflow: auto;} | |
569 |
|
569 | |||
570 | #tab-content-memberships .splitcontentright select {width:90%} |
|
570 | #tab-content-memberships .splitcontentright select {width:90%} | |
571 |
|
571 | |||
572 | #users_for_watcher {height: 200px; overflow:auto;} |
|
572 | #users_for_watcher {height: 200px; overflow:auto;} | |
573 | #users_for_watcher label {display: block;} |
|
573 | #users_for_watcher label {display: block;} | |
574 |
|
574 | |||
575 | table.members td.group { padding-left: 20px; background: url(../images/group.png) no-repeat 0% 50%; } |
|
575 | table.members td.group { padding-left: 20px; background: url(../images/group.png) no-repeat 0% 50%; } | |
576 |
|
576 | |||
577 | input#principal_search, input#user_search {width:90%} |
|
577 | input#principal_search, input#user_search {width:90%} | |
578 |
|
578 | |||
579 | input.autocomplete { |
|
579 | input.autocomplete { | |
580 | background: #fff url(../images/magnifier.png) no-repeat 2px 50%; padding-left:20px !important; |
|
580 | background: #fff url(../images/magnifier.png) no-repeat 2px 50%; padding-left:20px !important; | |
581 | border:1px solid #9EB1C2; border-radius:2px; height:1.5em; |
|
581 | border:1px solid #9EB1C2; border-radius:2px; height:1.5em; | |
582 | } |
|
582 | } | |
583 | input.autocomplete.ajax-loading { |
|
583 | input.autocomplete.ajax-loading { | |
584 | background-image: url(../images/loading.gif); |
|
584 | background-image: url(../images/loading.gif); | |
585 | } |
|
585 | } | |
586 |
|
586 | |||
587 | .role-visibility {padding-left:2em;} |
|
587 | .role-visibility {padding-left:2em;} | |
588 |
|
588 | |||
589 | /***** Flash & error messages ****/ |
|
589 | /***** Flash & error messages ****/ | |
590 | #errorExplanation, div.flash, .nodata, .warning, .conflict { |
|
590 | #errorExplanation, div.flash, .nodata, .warning, .conflict { | |
591 | padding: 4px 4px 4px 30px; |
|
591 | padding: 4px 4px 4px 30px; | |
592 | margin-bottom: 12px; |
|
592 | margin-bottom: 12px; | |
593 | font-size: 1.1em; |
|
593 | font-size: 1.1em; | |
594 | border: 2px solid; |
|
594 | border: 2px solid; | |
595 | } |
|
595 | } | |
596 |
|
596 | |||
597 | div.flash {margin-top: 8px;} |
|
597 | div.flash {margin-top: 8px;} | |
598 |
|
598 | |||
599 | div.flash.error, #errorExplanation { |
|
599 | div.flash.error, #errorExplanation { | |
600 | background: url(../images/exclamation.png) 8px 50% no-repeat; |
|
600 | background: url(../images/exclamation.png) 8px 50% no-repeat; | |
601 | background-color: #ffe3e3; |
|
601 | background-color: #ffe3e3; | |
602 | border-color: #dd0000; |
|
602 | border-color: #dd0000; | |
603 | color: #880000; |
|
603 | color: #880000; | |
604 | } |
|
604 | } | |
605 |
|
605 | |||
606 | div.flash.notice { |
|
606 | div.flash.notice { | |
607 | background: url(../images/true.png) 8px 5px no-repeat; |
|
607 | background: url(../images/true.png) 8px 5px no-repeat; | |
608 | background-color: #dfffdf; |
|
608 | background-color: #dfffdf; | |
609 | border-color: #9fcf9f; |
|
609 | border-color: #9fcf9f; | |
610 | color: #005f00; |
|
610 | color: #005f00; | |
611 | } |
|
611 | } | |
612 |
|
612 | |||
613 | div.flash.warning, .conflict { |
|
613 | div.flash.warning, .conflict { | |
614 | background: url(../images/warning.png) 8px 5px no-repeat; |
|
614 | background: url(../images/warning.png) 8px 5px no-repeat; | |
615 | background-color: #FFEBC1; |
|
615 | background-color: #FFEBC1; | |
616 | border-color: #FDBF3B; |
|
616 | border-color: #FDBF3B; | |
617 | color: #A6750C; |
|
617 | color: #A6750C; | |
618 | text-align: left; |
|
618 | text-align: left; | |
619 | } |
|
619 | } | |
620 |
|
620 | |||
621 | .nodata, .warning { |
|
621 | .nodata, .warning { | |
622 | text-align: center; |
|
622 | text-align: center; | |
623 | background-color: #FFEBC1; |
|
623 | background-color: #FFEBC1; | |
624 | border-color: #FDBF3B; |
|
624 | border-color: #FDBF3B; | |
625 | color: #A6750C; |
|
625 | color: #A6750C; | |
626 | } |
|
626 | } | |
627 |
|
627 | |||
628 | #errorExplanation ul { font-size: 0.9em;} |
|
628 | #errorExplanation ul { font-size: 0.9em;} | |
629 | #errorExplanation h2, #errorExplanation p { display: none; } |
|
629 | #errorExplanation h2, #errorExplanation p { display: none; } | |
630 |
|
630 | |||
631 | .conflict-details {font-size:80%;} |
|
631 | .conflict-details {font-size:80%;} | |
632 |
|
632 | |||
633 | /***** Ajax indicator ******/ |
|
633 | /***** Ajax indicator ******/ | |
634 | #ajax-indicator { |
|
634 | #ajax-indicator { | |
635 | position: absolute; /* fixed not supported by IE */ |
|
635 | position: absolute; /* fixed not supported by IE */ | |
636 | background-color:#eee; |
|
636 | background-color:#eee; | |
637 | border: 1px solid #bbb; |
|
637 | border: 1px solid #bbb; | |
638 | top:35%; |
|
638 | top:35%; | |
639 | left:40%; |
|
639 | left:40%; | |
640 | width:20%; |
|
640 | width:20%; | |
641 | font-weight:bold; |
|
641 | font-weight:bold; | |
642 | text-align:center; |
|
642 | text-align:center; | |
643 | padding:0.6em; |
|
643 | padding:0.6em; | |
644 | z-index:100; |
|
644 | z-index:100; | |
645 | opacity: 0.5; |
|
645 | opacity: 0.5; | |
646 | } |
|
646 | } | |
647 |
|
647 | |||
648 | html>body #ajax-indicator { position: fixed; } |
|
648 | html>body #ajax-indicator { position: fixed; } | |
649 |
|
649 | |||
650 | #ajax-indicator span { |
|
650 | #ajax-indicator span { | |
651 | background-position: 0% 40%; |
|
651 | background-position: 0% 40%; | |
652 | background-repeat: no-repeat; |
|
652 | background-repeat: no-repeat; | |
653 | background-image: url(../images/loading.gif); |
|
653 | background-image: url(../images/loading.gif); | |
654 | padding-left: 26px; |
|
654 | padding-left: 26px; | |
655 | vertical-align: bottom; |
|
655 | vertical-align: bottom; | |
656 | } |
|
656 | } | |
657 |
|
657 | |||
658 | /***** Calendar *****/ |
|
658 | /***** Calendar *****/ | |
659 | table.cal {border-collapse: collapse; width: 100%; margin: 0px 0 6px 0;border: 1px solid #d7d7d7;} |
|
659 | table.cal {border-collapse: collapse; width: 100%; margin: 0px 0 6px 0;border: 1px solid #d7d7d7;} | |
660 | table.cal thead th {width: 14%; background-color:#EEEEEE; padding: 4px; } |
|
660 | table.cal thead th {width: 14%; background-color:#EEEEEE; padding: 4px; } | |
661 | table.cal thead th.week-number {width: auto;} |
|
661 | table.cal thead th.week-number {width: auto;} | |
662 | table.cal tbody tr {height: 100px;} |
|
662 | table.cal tbody tr {height: 100px;} | |
663 | table.cal td {border: 1px solid #d7d7d7; vertical-align: top; font-size: 0.9em;} |
|
663 | table.cal td {border: 1px solid #d7d7d7; vertical-align: top; font-size: 0.9em;} | |
664 | table.cal td.week-number { background-color:#EEEEEE; padding: 4px; border:none; font-size: 1em;} |
|
664 | table.cal td.week-number { background-color:#EEEEEE; padding: 4px; border:none; font-size: 1em;} | |
665 | table.cal td p.day-num {font-size: 1.1em; text-align:right;} |
|
665 | table.cal td p.day-num {font-size: 1.1em; text-align:right;} | |
666 | table.cal td.odd p.day-num {color: #bbb;} |
|
666 | table.cal td.odd p.day-num {color: #bbb;} | |
667 | table.cal td.today {background:#ffffdd;} |
|
667 | table.cal td.today {background:#ffffdd;} | |
668 | table.cal td.today p.day-num {font-weight: bold;} |
|
668 | table.cal td.today p.day-num {font-weight: bold;} | |
669 | table.cal .starting a, p.cal.legend .starting {background: url(../images/bullet_go.png) no-repeat -1px -2px; padding-left:16px;} |
|
669 | table.cal .starting a, p.cal.legend .starting {background: url(../images/bullet_go.png) no-repeat -1px -2px; padding-left:16px;} | |
670 | table.cal .ending a, p.cal.legend .ending {background: url(../images/bullet_end.png) no-repeat -1px -2px; padding-left:16px;} |
|
670 | table.cal .ending a, p.cal.legend .ending {background: url(../images/bullet_end.png) no-repeat -1px -2px; padding-left:16px;} | |
671 | table.cal .starting.ending a, p.cal.legend .starting.ending {background: url(../images/bullet_diamond.png) no-repeat -1px -2px; padding-left:16px;} |
|
671 | table.cal .starting.ending a, p.cal.legend .starting.ending {background: url(../images/bullet_diamond.png) no-repeat -1px -2px; padding-left:16px;} | |
672 | p.cal.legend span {display:block;} |
|
672 | p.cal.legend span {display:block;} | |
673 |
|
673 | |||
674 | /***** Tooltips ******/ |
|
674 | /***** Tooltips ******/ | |
675 | .tooltip{position:relative;z-index:24;} |
|
675 | .tooltip{position:relative;z-index:24;} | |
676 | .tooltip:hover{z-index:25;color:#000;} |
|
676 | .tooltip:hover{z-index:25;color:#000;} | |
677 | .tooltip span.tip{display: none; text-align:left;} |
|
677 | .tooltip span.tip{display: none; text-align:left;} | |
678 |
|
678 | |||
679 | div.tooltip:hover span.tip{ |
|
679 | div.tooltip:hover span.tip{ | |
680 | display:block; |
|
680 | display:block; | |
681 | position:absolute; |
|
681 | position:absolute; | |
682 | top:12px; left:24px; width:270px; |
|
682 | top:12px; left:24px; width:270px; | |
683 | border:1px solid #555; |
|
683 | border:1px solid #555; | |
684 | background-color:#fff; |
|
684 | background-color:#fff; | |
685 | padding: 4px; |
|
685 | padding: 4px; | |
686 | font-size: 0.8em; |
|
686 | font-size: 0.8em; | |
687 | color:#505050; |
|
687 | color:#505050; | |
688 | } |
|
688 | } | |
689 |
|
689 | |||
690 | img.ui-datepicker-trigger { |
|
690 | img.ui-datepicker-trigger { | |
691 | cursor: pointer; |
|
691 | cursor: pointer; | |
692 | vertical-align: middle; |
|
692 | vertical-align: middle; | |
693 | margin-left: 4px; |
|
693 | margin-left: 4px; | |
694 | } |
|
694 | } | |
695 |
|
695 | |||
696 | /***** Progress bar *****/ |
|
696 | /***** Progress bar *****/ | |
697 | table.progress { |
|
697 | table.progress { | |
698 | border-collapse: collapse; |
|
698 | border-collapse: collapse; | |
699 | border-spacing: 0pt; |
|
699 | border-spacing: 0pt; | |
700 | empty-cells: show; |
|
700 | empty-cells: show; | |
701 | text-align: center; |
|
701 | text-align: center; | |
702 | float:left; |
|
702 | float:left; | |
703 | margin: 1px 6px 1px 0px; |
|
703 | margin: 1px 6px 1px 0px; | |
704 | } |
|
704 | } | |
705 |
|
705 | |||
706 | table.progress td { height: 1em; } |
|
706 | table.progress td { height: 1em; } | |
707 | table.progress td.closed { background: #BAE0BA none repeat scroll 0%; } |
|
707 | table.progress td.closed { background: #BAE0BA none repeat scroll 0%; } | |
708 | table.progress td.done { background: #D3EDD3 none repeat scroll 0%; } |
|
708 | table.progress td.done { background: #D3EDD3 none repeat scroll 0%; } | |
709 | table.progress td.todo { background: #eee none repeat scroll 0%; } |
|
709 | table.progress td.todo { background: #eee none repeat scroll 0%; } | |
710 | p.percent {font-size: 80%;} |
|
710 | p.percent {font-size: 80%;} | |
711 | p.progress-info {clear: left; font-size: 80%; margin-top:-4px; color:#777;} |
|
711 | p.progress-info {clear: left; font-size: 80%; margin-top:-4px; color:#777;} | |
712 |
|
712 | |||
713 | #roadmap table.progress td { height: 1.2em; } |
|
713 | #roadmap table.progress td { height: 1.2em; } | |
714 | /***** Tabs *****/ |
|
714 | /***** Tabs *****/ | |
715 | #content .tabs {height: 2.6em; margin-bottom:1.2em; position:relative; overflow:hidden;} |
|
715 | #content .tabs {height: 2.6em; margin-bottom:1.2em; position:relative; overflow:hidden;} | |
716 | #content .tabs ul {margin:0; position:absolute; bottom:0; padding-left:0.5em; width: 2000px; border-bottom: 1px solid #bbbbbb;} |
|
716 | #content .tabs ul {margin:0; position:absolute; bottom:0; padding-left:0.5em; width: 2000px; border-bottom: 1px solid #bbbbbb;} | |
717 | #content .tabs ul li { |
|
717 | #content .tabs ul li { | |
718 | float:left; |
|
718 | float:left; | |
719 | list-style-type:none; |
|
719 | list-style-type:none; | |
720 | white-space:nowrap; |
|
720 | white-space:nowrap; | |
721 | margin-right:4px; |
|
721 | margin-right:4px; | |
722 | background:#fff; |
|
722 | background:#fff; | |
723 | position:relative; |
|
723 | position:relative; | |
724 | margin-bottom:-1px; |
|
724 | margin-bottom:-1px; | |
725 | } |
|
725 | } | |
726 | #content .tabs ul li a{ |
|
726 | #content .tabs ul li a{ | |
727 | display:block; |
|
727 | display:block; | |
728 | font-size: 0.9em; |
|
728 | font-size: 0.9em; | |
729 | text-decoration:none; |
|
729 | text-decoration:none; | |
730 | line-height:1.3em; |
|
730 | line-height:1.3em; | |
731 | padding:4px 6px 4px 6px; |
|
731 | padding:4px 6px 4px 6px; | |
732 | border: 1px solid #ccc; |
|
732 | border: 1px solid #ccc; | |
733 | border-bottom: 1px solid #bbbbbb; |
|
733 | border-bottom: 1px solid #bbbbbb; | |
734 | background-color: #f6f6f6; |
|
734 | background-color: #f6f6f6; | |
735 | color:#999; |
|
735 | color:#999; | |
736 | font-weight:bold; |
|
736 | font-weight:bold; | |
737 | border-top-left-radius:3px; |
|
737 | border-top-left-radius:3px; | |
738 | border-top-right-radius:3px; |
|
738 | border-top-right-radius:3px; | |
739 | } |
|
739 | } | |
740 |
|
740 | |||
741 | #content .tabs ul li a:hover { |
|
741 | #content .tabs ul li a:hover { | |
742 | background-color: #ffffdd; |
|
742 | background-color: #ffffdd; | |
743 | text-decoration:none; |
|
743 | text-decoration:none; | |
744 | } |
|
744 | } | |
745 |
|
745 | |||
746 | #content .tabs ul li a.selected { |
|
746 | #content .tabs ul li a.selected { | |
747 | background-color: #fff; |
|
747 | background-color: #fff; | |
748 | border: 1px solid #bbbbbb; |
|
748 | border: 1px solid #bbbbbb; | |
749 | border-bottom: 1px solid #fff; |
|
749 | border-bottom: 1px solid #fff; | |
750 | color:#444; |
|
750 | color:#444; | |
751 | } |
|
751 | } | |
752 |
|
752 | |||
753 | #content .tabs ul li a.selected:hover {background-color: #fff;} |
|
753 | #content .tabs ul li a.selected:hover {background-color: #fff;} | |
754 |
|
754 | |||
755 | div.tabs-buttons { position:absolute; right: 0; width: 48px; height: 24px; background: white; bottom: 0; border-bottom: 1px solid #bbbbbb; } |
|
755 | div.tabs-buttons { position:absolute; right: 0; width: 48px; height: 24px; background: white; bottom: 0; border-bottom: 1px solid #bbbbbb; } | |
756 |
|
756 | |||
757 | button.tab-left, button.tab-right { |
|
757 | button.tab-left, button.tab-right { | |
758 | font-size: 0.9em; |
|
758 | font-size: 0.9em; | |
759 | cursor: pointer; |
|
759 | cursor: pointer; | |
760 | height:24px; |
|
760 | height:24px; | |
761 | border: 1px solid #ccc; |
|
761 | border: 1px solid #ccc; | |
762 | border-bottom: 1px solid #bbbbbb; |
|
762 | border-bottom: 1px solid #bbbbbb; | |
763 | position:absolute; |
|
763 | position:absolute; | |
764 | padding:4px; |
|
764 | padding:4px; | |
765 | width: 20px; |
|
765 | width: 20px; | |
766 | bottom: -1px; |
|
766 | bottom: -1px; | |
767 | } |
|
767 | } | |
768 |
|
768 | |||
769 | button.tab-left { |
|
769 | button.tab-left { | |
770 | right: 20px; |
|
770 | right: 20px; | |
771 | background: #eeeeee url(../images/bullet_arrow_left.png) no-repeat 50% 50%; |
|
771 | background: #eeeeee url(../images/bullet_arrow_left.png) no-repeat 50% 50%; | |
772 | border-top-left-radius:3px; |
|
772 | border-top-left-radius:3px; | |
773 | } |
|
773 | } | |
774 |
|
774 | |||
775 | button.tab-right { |
|
775 | button.tab-right { | |
776 | right: 0; |
|
776 | right: 0; | |
777 | background: #eeeeee url(../images/bullet_arrow_right.png) no-repeat 50% 50%; |
|
777 | background: #eeeeee url(../images/bullet_arrow_right.png) no-repeat 50% 50%; | |
778 | border-top-right-radius:3px; |
|
778 | border-top-right-radius:3px; | |
779 | } |
|
779 | } | |
780 |
|
780 | |||
781 | /***** Diff *****/ |
|
781 | /***** Diff *****/ | |
782 | .diff_out { background: #fcc; } |
|
782 | .diff_out { background: #fcc; } | |
783 | .diff_out span { background: #faa; } |
|
783 | .diff_out span { background: #faa; } | |
784 | .diff_in { background: #cfc; } |
|
784 | .diff_in { background: #cfc; } | |
785 | .diff_in span { background: #afa; } |
|
785 | .diff_in span { background: #afa; } | |
786 |
|
786 | |||
787 | .text-diff { |
|
787 | .text-diff { | |
788 | padding: 1em; |
|
788 | padding: 1em; | |
789 | background-color:#f6f6f6; |
|
789 | background-color:#f6f6f6; | |
790 | color:#505050; |
|
790 | color:#505050; | |
791 | border: 1px solid #e4e4e4; |
|
791 | border: 1px solid #e4e4e4; | |
792 | } |
|
792 | } | |
793 |
|
793 | |||
794 | /***** Wiki *****/ |
|
794 | /***** Wiki *****/ | |
795 | div.wiki table { |
|
795 | div.wiki table { | |
796 | border-collapse: collapse; |
|
796 | border-collapse: collapse; | |
797 | margin-bottom: 1em; |
|
797 | margin-bottom: 1em; | |
798 | } |
|
798 | } | |
799 |
|
799 | |||
800 | div.wiki table, div.wiki td, div.wiki th { |
|
800 | div.wiki table, div.wiki td, div.wiki th { | |
801 | border: 1px solid #bbb; |
|
801 | border: 1px solid #bbb; | |
802 | padding: 4px; |
|
802 | padding: 4px; | |
803 | } |
|
803 | } | |
804 |
|
804 | |||
805 | div.wiki .noborder, div.wiki .noborder td, div.wiki .noborder th {border:0;} |
|
805 | div.wiki .noborder, div.wiki .noborder td, div.wiki .noborder th {border:0;} | |
806 |
|
806 | |||
807 | div.wiki .external { |
|
807 | div.wiki .external { | |
808 | background-position: 0% 60%; |
|
808 | background-position: 0% 60%; | |
809 | background-repeat: no-repeat; |
|
809 | background-repeat: no-repeat; | |
810 | padding-left: 12px; |
|
810 | padding-left: 12px; | |
811 | background-image: url(../images/external.png); |
|
811 | background-image: url(../images/external.png); | |
812 | } |
|
812 | } | |
813 |
|
813 | |||
814 | div.wiki a.new {color: #b73535;} |
|
814 | div.wiki a.new {color: #b73535;} | |
815 |
|
815 | |||
816 | div.wiki ul, div.wiki ol {margin-bottom:1em;} |
|
816 | div.wiki ul, div.wiki ol {margin-bottom:1em;} | |
817 |
|
817 | |||
818 | div.wiki pre { |
|
818 | div.wiki pre { | |
819 | margin: 1em 1em 1em 1.6em; |
|
819 | margin: 1em 1em 1em 1.6em; | |
820 | padding: 8px; |
|
820 | padding: 8px; | |
821 | background-color: #fafafa; |
|
821 | background-color: #fafafa; | |
822 | border: 1px solid #e2e2e2; |
|
822 | border: 1px solid #e2e2e2; | |
823 | width:auto; |
|
823 | width:auto; | |
824 | overflow-x: auto; |
|
824 | overflow-x: auto; | |
825 | overflow-y: hidden; |
|
825 | overflow-y: hidden; | |
826 | } |
|
826 | } | |
827 |
|
827 | |||
828 | div.wiki ul.toc { |
|
828 | div.wiki ul.toc { | |
829 | background-color: #ffffdd; |
|
829 | background-color: #ffffdd; | |
830 | border: 1px solid #e4e4e4; |
|
830 | border: 1px solid #e4e4e4; | |
831 | padding: 4px; |
|
831 | padding: 4px; | |
832 | line-height: 1.2em; |
|
832 | line-height: 1.2em; | |
833 | margin-bottom: 12px; |
|
833 | margin-bottom: 12px; | |
834 | margin-right: 12px; |
|
834 | margin-right: 12px; | |
835 | margin-left: 0; |
|
835 | margin-left: 0; | |
836 | display: table |
|
836 | display: table | |
837 | } |
|
837 | } | |
838 | * html div.wiki ul.toc { width: 50%; } /* IE6 doesn't autosize div */ |
|
838 | * html div.wiki ul.toc { width: 50%; } /* IE6 doesn't autosize div */ | |
839 |
|
839 | |||
840 | div.wiki ul.toc.right { float: right; margin-left: 12px; margin-right: 0; width: auto; } |
|
840 | div.wiki ul.toc.right { float: right; margin-left: 12px; margin-right: 0; width: auto; } | |
841 | div.wiki ul.toc.left { float: left; margin-right: 12px; margin-left: 0; width: auto; } |
|
841 | div.wiki ul.toc.left { float: left; margin-right: 12px; margin-left: 0; width: auto; } | |
842 | div.wiki ul.toc ul { margin: 0; padding: 0; } |
|
842 | div.wiki ul.toc ul { margin: 0; padding: 0; } | |
843 | div.wiki ul.toc li {list-style-type:none; margin: 0; font-size:12px;} |
|
843 | div.wiki ul.toc li {list-style-type:none; margin: 0; font-size:12px;} | |
844 | div.wiki ul.toc li li {margin-left: 1.5em; font-size:10px;} |
|
844 | div.wiki ul.toc li li {margin-left: 1.5em; font-size:10px;} | |
845 | div.wiki ul.toc a { |
|
845 | div.wiki ul.toc a { | |
846 | font-size: 0.9em; |
|
846 | font-size: 0.9em; | |
847 | font-weight: normal; |
|
847 | font-weight: normal; | |
848 | text-decoration: none; |
|
848 | text-decoration: none; | |
849 | color: #606060; |
|
849 | color: #606060; | |
850 | } |
|
850 | } | |
851 | div.wiki ul.toc a:hover { color: #c61a1a; text-decoration: underline;} |
|
851 | div.wiki ul.toc a:hover { color: #c61a1a; text-decoration: underline;} | |
852 |
|
852 | |||
853 | a.wiki-anchor { display: none; margin-left: 6px; text-decoration: none; } |
|
853 | a.wiki-anchor { display: none; margin-left: 6px; text-decoration: none; } | |
854 | a.wiki-anchor:hover { color: #aaa !important; text-decoration: none; } |
|
854 | a.wiki-anchor:hover { color: #aaa !important; text-decoration: none; } | |
855 | h1:hover a.wiki-anchor, h2:hover a.wiki-anchor, h3:hover a.wiki-anchor { display: inline; color: #ddd; } |
|
855 | h1:hover a.wiki-anchor, h2:hover a.wiki-anchor, h3:hover a.wiki-anchor { display: inline; color: #ddd; } | |
856 |
|
856 | |||
857 | div.wiki img { vertical-align: middle; } |
|
857 | div.wiki img { vertical-align: middle; } | |
858 |
|
858 | |||
859 | /***** My page layout *****/ |
|
859 | /***** My page layout *****/ | |
860 | .block-receiver { |
|
860 | .block-receiver { | |
861 | border:1px dashed #c0c0c0; |
|
861 | border:1px dashed #c0c0c0; | |
862 | margin-bottom: 20px; |
|
862 | margin-bottom: 20px; | |
863 | padding: 15px 0 15px 0; |
|
863 | padding: 15px 0 15px 0; | |
864 | } |
|
864 | } | |
865 |
|
865 | |||
866 | .mypage-box { |
|
866 | .mypage-box { | |
867 | margin:0 0 20px 0; |
|
867 | margin:0 0 20px 0; | |
868 | color:#505050; |
|
868 | color:#505050; | |
869 | line-height:1.5em; |
|
869 | line-height:1.5em; | |
870 | } |
|
870 | } | |
871 |
|
871 | |||
872 | .handle {cursor: move;} |
|
872 | .handle {cursor: move;} | |
873 |
|
873 | |||
874 | a.close-icon { |
|
874 | a.close-icon { | |
875 | display:block; |
|
875 | display:block; | |
876 | margin-top:3px; |
|
876 | margin-top:3px; | |
877 | overflow:hidden; |
|
877 | overflow:hidden; | |
878 | width:12px; |
|
878 | width:12px; | |
879 | height:12px; |
|
879 | height:12px; | |
880 | background-repeat: no-repeat; |
|
880 | background-repeat: no-repeat; | |
881 | cursor:pointer; |
|
881 | cursor:pointer; | |
882 | background-image:url('../images/close.png'); |
|
882 | background-image:url('../images/close.png'); | |
883 | } |
|
883 | } | |
884 | a.close-icon:hover {background-image:url('../images/close_hl.png');} |
|
884 | a.close-icon:hover {background-image:url('../images/close_hl.png');} | |
885 |
|
885 | |||
886 | /***** Gantt chart *****/ |
|
886 | /***** Gantt chart *****/ | |
887 | .gantt_hdr { |
|
887 | .gantt_hdr { | |
888 | position:absolute; |
|
888 | position:absolute; | |
889 | top:0; |
|
889 | top:0; | |
890 | height:16px; |
|
890 | height:16px; | |
891 | border-top: 1px solid #c0c0c0; |
|
891 | border-top: 1px solid #c0c0c0; | |
892 | border-bottom: 1px solid #c0c0c0; |
|
892 | border-bottom: 1px solid #c0c0c0; | |
893 | border-right: 1px solid #c0c0c0; |
|
893 | border-right: 1px solid #c0c0c0; | |
894 | text-align: center; |
|
894 | text-align: center; | |
895 | overflow: hidden; |
|
895 | overflow: hidden; | |
896 | } |
|
896 | } | |
897 |
|
897 | |||
898 | .gantt_hdr.nwday {background-color:#f1f1f1;} |
|
898 | .gantt_hdr.nwday {background-color:#f1f1f1;} | |
899 |
|
899 | |||
900 | .gantt_subjects { font-size: 0.8em; } |
|
900 | .gantt_subjects { font-size: 0.8em; } | |
901 | .gantt_subjects div { line-height:16px;height:16px;overflow:hidden;white-space:nowrap;text-overflow: ellipsis; } |
|
901 | .gantt_subjects div { line-height:16px;height:16px;overflow:hidden;white-space:nowrap;text-overflow: ellipsis; } | |
902 |
|
902 | |||
903 | .task { |
|
903 | .task { | |
904 | position: absolute; |
|
904 | position: absolute; | |
905 | height:8px; |
|
905 | height:8px; | |
906 | font-size:0.8em; |
|
906 | font-size:0.8em; | |
907 | color:#888; |
|
907 | color:#888; | |
908 | padding:0; |
|
908 | padding:0; | |
909 | margin:0; |
|
909 | margin:0; | |
910 | line-height:16px; |
|
910 | line-height:16px; | |
911 | white-space:nowrap; |
|
911 | white-space:nowrap; | |
912 | } |
|
912 | } | |
913 |
|
913 | |||
914 | .task.label {width:100%;} |
|
914 | .task.label {width:100%;} | |
915 | .task.label.project, .task.label.version { font-weight: bold; } |
|
915 | .task.label.project, .task.label.version { font-weight: bold; } | |
916 |
|
916 | |||
917 | .task_late { background:#f66 url(../images/task_late.png); border: 1px solid #f66; } |
|
917 | .task_late { background:#f66 url(../images/task_late.png); border: 1px solid #f66; } | |
918 | .task_done { background:#00c600 url(../images/task_done.png); border: 1px solid #00c600; } |
|
918 | .task_done { background:#00c600 url(../images/task_done.png); border: 1px solid #00c600; } | |
919 | .task_todo { background:#aaa url(../images/task_todo.png); border: 1px solid #aaa; } |
|
919 | .task_todo { background:#aaa url(../images/task_todo.png); border: 1px solid #aaa; } | |
920 |
|
920 | |||
921 | .task_todo.parent { background: #888; border: 1px solid #888; height: 3px;} |
|
921 | .task_todo.parent { background: #888; border: 1px solid #888; height: 3px;} | |
922 | .task_late.parent, .task_done.parent { height: 3px;} |
|
922 | .task_late.parent, .task_done.parent { height: 3px;} | |
923 | .task.parent.marker.starting { position: absolute; background: url(../images/task_parent_end.png) no-repeat 0 0; width: 8px; height: 16px; margin-left: -4px; left: 0px; top: -1px;} |
|
923 | .task.parent.marker.starting { position: absolute; background: url(../images/task_parent_end.png) no-repeat 0 0; width: 8px; height: 16px; margin-left: -4px; left: 0px; top: -1px;} | |
924 | .task.parent.marker.ending { position: absolute; background: url(../images/task_parent_end.png) no-repeat 0 0; width: 8px; height: 16px; margin-left: -4px; right: 0px; top: -1px;} |
|
924 | .task.parent.marker.ending { position: absolute; background: url(../images/task_parent_end.png) no-repeat 0 0; width: 8px; height: 16px; margin-left: -4px; right: 0px; top: -1px;} | |
925 |
|
925 | |||
926 | .version.task_late { background:#f66 url(../images/milestone_late.png); border: 1px solid #f66; height: 2px; margin-top: 3px;} |
|
926 | .version.task_late { background:#f66 url(../images/milestone_late.png); border: 1px solid #f66; height: 2px; margin-top: 3px;} | |
927 | .version.task_done { background:#00c600 url(../images/milestone_done.png); border: 1px solid #00c600; height: 2px; margin-top: 3px;} |
|
927 | .version.task_done { background:#00c600 url(../images/milestone_done.png); border: 1px solid #00c600; height: 2px; margin-top: 3px;} | |
928 | .version.task_todo { background:#fff url(../images/milestone_todo.png); border: 1px solid #fff; height: 2px; margin-top: 3px;} |
|
928 | .version.task_todo { background:#fff url(../images/milestone_todo.png); border: 1px solid #fff; height: 2px; margin-top: 3px;} | |
929 | .version.marker { background-image:url(../images/version_marker.png); background-repeat: no-repeat; border: 0; margin-left: -4px; margin-top: 1px; } |
|
929 | .version.marker { background-image:url(../images/version_marker.png); background-repeat: no-repeat; border: 0; margin-left: -4px; margin-top: 1px; } | |
930 |
|
930 | |||
931 | .project.task_late { background:#f66 url(../images/milestone_late.png); border: 1px solid #f66; height: 2px; margin-top: 3px;} |
|
931 | .project.task_late { background:#f66 url(../images/milestone_late.png); border: 1px solid #f66; height: 2px; margin-top: 3px;} | |
932 | .project.task_done { background:#00c600 url(../images/milestone_done.png); border: 1px solid #00c600; height: 2px; margin-top: 3px;} |
|
932 | .project.task_done { background:#00c600 url(../images/milestone_done.png); border: 1px solid #00c600; height: 2px; margin-top: 3px;} | |
933 | .project.task_todo { background:#fff url(../images/milestone_todo.png); border: 1px solid #fff; height: 2px; margin-top: 3px;} |
|
933 | .project.task_todo { background:#fff url(../images/milestone_todo.png); border: 1px solid #fff; height: 2px; margin-top: 3px;} | |
934 | .project.marker { background-image:url(../images/project_marker.png); background-repeat: no-repeat; border: 0; margin-left: -4px; margin-top: 1px; } |
|
934 | .project.marker { background-image:url(../images/project_marker.png); background-repeat: no-repeat; border: 0; margin-left: -4px; margin-top: 1px; } | |
935 |
|
935 | |||
936 | .version-behind-schedule a, .issue-behind-schedule a {color: #f66914;} |
|
936 | .version-behind-schedule a, .issue-behind-schedule a {color: #f66914;} | |
937 | .version-overdue a, .issue-overdue a, .project-overdue a {color: #f00;} |
|
937 | .version-overdue a, .issue-overdue a, .project-overdue a {color: #f00;} | |
938 |
|
938 | |||
939 | /***** Icons *****/ |
|
939 | /***** Icons *****/ | |
940 | .icon { |
|
940 | .icon { | |
941 | background-position: 0% 50%; |
|
941 | background-position: 0% 50%; | |
942 | background-repeat: no-repeat; |
|
942 | background-repeat: no-repeat; | |
943 | padding-left: 20px; |
|
943 | padding-left: 20px; | |
944 | padding-top: 2px; |
|
944 | padding-top: 2px; | |
945 | padding-bottom: 3px; |
|
945 | padding-bottom: 3px; | |
946 | } |
|
946 | } | |
947 |
|
947 | |||
948 | .icon-add { background-image: url(../images/add.png); } |
|
948 | .icon-add { background-image: url(../images/add.png); } | |
949 | .icon-edit { background-image: url(../images/edit.png); } |
|
949 | .icon-edit { background-image: url(../images/edit.png); } | |
950 | .icon-copy { background-image: url(../images/copy.png); } |
|
950 | .icon-copy { background-image: url(../images/copy.png); } | |
951 | .icon-duplicate { background-image: url(../images/duplicate.png); } |
|
951 | .icon-duplicate { background-image: url(../images/duplicate.png); } | |
952 | .icon-del { background-image: url(../images/delete.png); } |
|
952 | .icon-del { background-image: url(../images/delete.png); } | |
953 | .icon-move { background-image: url(../images/move.png); } |
|
953 | .icon-move { background-image: url(../images/move.png); } | |
954 | .icon-save { background-image: url(../images/save.png); } |
|
954 | .icon-save { background-image: url(../images/save.png); } | |
955 | .icon-cancel { background-image: url(../images/cancel.png); } |
|
955 | .icon-cancel { background-image: url(../images/cancel.png); } | |
956 | .icon-multiple { background-image: url(../images/table_multiple.png); } |
|
956 | .icon-multiple { background-image: url(../images/table_multiple.png); } | |
957 | .icon-folder { background-image: url(../images/folder.png); } |
|
957 | .icon-folder { background-image: url(../images/folder.png); } | |
958 | .open .icon-folder { background-image: url(../images/folder_open.png); } |
|
958 | .open .icon-folder { background-image: url(../images/folder_open.png); } | |
959 | .icon-package { background-image: url(../images/package.png); } |
|
959 | .icon-package { background-image: url(../images/package.png); } | |
960 | .icon-user { background-image: url(../images/user.png); } |
|
960 | .icon-user { background-image: url(../images/user.png); } | |
961 | .icon-projects { background-image: url(../images/projects.png); } |
|
961 | .icon-projects { background-image: url(../images/projects.png); } | |
962 | .icon-help { background-image: url(../images/help.png); } |
|
962 | .icon-help { background-image: url(../images/help.png); } | |
963 | .icon-attachment { background-image: url(../images/attachment.png); } |
|
963 | .icon-attachment { background-image: url(../images/attachment.png); } | |
964 | .icon-history { background-image: url(../images/history.png); } |
|
964 | .icon-history { background-image: url(../images/history.png); } | |
965 | .icon-time { background-image: url(../images/time.png); } |
|
965 | .icon-time { background-image: url(../images/time.png); } | |
966 | .icon-time-add { background-image: url(../images/time_add.png); } |
|
966 | .icon-time-add { background-image: url(../images/time_add.png); } | |
967 | .icon-stats { background-image: url(../images/stats.png); } |
|
967 | .icon-stats { background-image: url(../images/stats.png); } | |
968 | .icon-warning { background-image: url(../images/warning.png); } |
|
968 | .icon-warning { background-image: url(../images/warning.png); } | |
969 | .icon-fav { background-image: url(../images/fav.png); } |
|
969 | .icon-fav { background-image: url(../images/fav.png); } | |
970 | .icon-fav-off { background-image: url(../images/fav_off.png); } |
|
970 | .icon-fav-off { background-image: url(../images/fav_off.png); } | |
971 | .icon-reload { background-image: url(../images/reload.png); } |
|
971 | .icon-reload { background-image: url(../images/reload.png); } | |
972 | .icon-lock { background-image: url(../images/locked.png); } |
|
972 | .icon-lock { background-image: url(../images/locked.png); } | |
973 | .icon-unlock { background-image: url(../images/unlock.png); } |
|
973 | .icon-unlock { background-image: url(../images/unlock.png); } | |
974 | .icon-checked { background-image: url(../images/true.png); } |
|
974 | .icon-checked { background-image: url(../images/true.png); } | |
975 | .icon-details { background-image: url(../images/zoom_in.png); } |
|
975 | .icon-details { background-image: url(../images/zoom_in.png); } | |
976 | .icon-report { background-image: url(../images/report.png); } |
|
976 | .icon-report { background-image: url(../images/report.png); } | |
977 | .icon-comment { background-image: url(../images/comment.png); } |
|
977 | .icon-comment { background-image: url(../images/comment.png); } | |
978 | .icon-summary { background-image: url(../images/lightning.png); } |
|
978 | .icon-summary { background-image: url(../images/lightning.png); } | |
979 | .icon-server-authentication { background-image: url(../images/server_key.png); } |
|
979 | .icon-server-authentication { background-image: url(../images/server_key.png); } | |
980 | .icon-issue { background-image: url(../images/ticket.png); } |
|
980 | .icon-issue { background-image: url(../images/ticket.png); } | |
981 | .icon-zoom-in { background-image: url(../images/zoom_in.png); } |
|
981 | .icon-zoom-in { background-image: url(../images/zoom_in.png); } | |
982 | .icon-zoom-out { background-image: url(../images/zoom_out.png); } |
|
982 | .icon-zoom-out { background-image: url(../images/zoom_out.png); } | |
983 | .icon-passwd { background-image: url(../images/textfield_key.png); } |
|
983 | .icon-passwd { background-image: url(../images/textfield_key.png); } | |
984 | .icon-test { background-image: url(../images/bullet_go.png); } |
|
984 | .icon-test { background-image: url(../images/bullet_go.png); } | |
985 |
|
985 | |||
986 | .icon-file { background-image: url(../images/files/default.png); } |
|
986 | .icon-file { background-image: url(../images/files/default.png); } | |
987 | .icon-file.text-plain { background-image: url(../images/files/text.png); } |
|
987 | .icon-file.text-plain { background-image: url(../images/files/text.png); } | |
988 | .icon-file.text-x-c { background-image: url(../images/files/c.png); } |
|
988 | .icon-file.text-x-c { background-image: url(../images/files/c.png); } | |
989 | .icon-file.text-x-csharp { background-image: url(../images/files/csharp.png); } |
|
989 | .icon-file.text-x-csharp { background-image: url(../images/files/csharp.png); } | |
990 | .icon-file.text-x-java { background-image: url(../images/files/java.png); } |
|
990 | .icon-file.text-x-java { background-image: url(../images/files/java.png); } | |
991 | .icon-file.text-x-javascript { background-image: url(../images/files/js.png); } |
|
991 | .icon-file.text-x-javascript { background-image: url(../images/files/js.png); } | |
992 | .icon-file.text-x-php { background-image: url(../images/files/php.png); } |
|
992 | .icon-file.text-x-php { background-image: url(../images/files/php.png); } | |
993 | .icon-file.text-x-ruby { background-image: url(../images/files/ruby.png); } |
|
993 | .icon-file.text-x-ruby { background-image: url(../images/files/ruby.png); } | |
994 | .icon-file.text-xml { background-image: url(../images/files/xml.png); } |
|
994 | .icon-file.text-xml { background-image: url(../images/files/xml.png); } | |
995 | .icon-file.text-css { background-image: url(../images/files/css.png); } |
|
995 | .icon-file.text-css { background-image: url(../images/files/css.png); } | |
996 | .icon-file.text-html { background-image: url(../images/files/html.png); } |
|
996 | .icon-file.text-html { background-image: url(../images/files/html.png); } | |
997 | .icon-file.image-gif { background-image: url(../images/files/image.png); } |
|
997 | .icon-file.image-gif { background-image: url(../images/files/image.png); } | |
998 | .icon-file.image-jpeg { background-image: url(../images/files/image.png); } |
|
998 | .icon-file.image-jpeg { background-image: url(../images/files/image.png); } | |
999 | .icon-file.image-png { background-image: url(../images/files/image.png); } |
|
999 | .icon-file.image-png { background-image: url(../images/files/image.png); } | |
1000 | .icon-file.image-tiff { background-image: url(../images/files/image.png); } |
|
1000 | .icon-file.image-tiff { background-image: url(../images/files/image.png); } | |
1001 | .icon-file.application-pdf { background-image: url(../images/files/pdf.png); } |
|
1001 | .icon-file.application-pdf { background-image: url(../images/files/pdf.png); } | |
1002 | .icon-file.application-zip { background-image: url(../images/files/zip.png); } |
|
1002 | .icon-file.application-zip { background-image: url(../images/files/zip.png); } | |
1003 | .icon-file.application-x-gzip { background-image: url(../images/files/zip.png); } |
|
1003 | .icon-file.application-x-gzip { background-image: url(../images/files/zip.png); } | |
1004 |
|
1004 | |||
1005 | img.gravatar { |
|
1005 | img.gravatar { | |
1006 | padding: 2px; |
|
1006 | padding: 2px; | |
1007 | border: solid 1px #d5d5d5; |
|
1007 | border: solid 1px #d5d5d5; | |
1008 | background: #fff; |
|
1008 | background: #fff; | |
1009 | vertical-align: middle; |
|
1009 | vertical-align: middle; | |
1010 | } |
|
1010 | } | |
1011 |
|
1011 | |||
1012 | div.issue img.gravatar { |
|
1012 | div.issue img.gravatar { | |
1013 | float: left; |
|
1013 | float: left; | |
1014 | margin: 0 6px 0 0; |
|
1014 | margin: 0 6px 0 0; | |
1015 | padding: 5px; |
|
1015 | padding: 5px; | |
1016 | } |
|
1016 | } | |
1017 |
|
1017 | |||
1018 | div.issue table img.gravatar { |
|
1018 | div.issue table img.gravatar { | |
1019 | height: 14px; |
|
1019 | height: 14px; | |
1020 | width: 14px; |
|
1020 | width: 14px; | |
1021 | padding: 2px; |
|
1021 | padding: 2px; | |
1022 | float: left; |
|
1022 | float: left; | |
1023 | margin: 0 0.5em 0 0; |
|
1023 | margin: 0 0.5em 0 0; | |
1024 | } |
|
1024 | } | |
1025 |
|
1025 | |||
1026 | h2 img.gravatar {margin: -2px 4px -4px 0;} |
|
1026 | h2 img.gravatar {margin: -2px 4px -4px 0;} | |
1027 | h3 img.gravatar {margin: -4px 4px -4px 0;} |
|
1027 | h3 img.gravatar {margin: -4px 4px -4px 0;} | |
1028 | h4 img.gravatar {margin: -6px 4px -4px 0;} |
|
1028 | h4 img.gravatar {margin: -6px 4px -4px 0;} | |
1029 | td.username img.gravatar {margin: 0 0.5em 0 0; vertical-align: top;} |
|
1029 | td.username img.gravatar {margin: 0 0.5em 0 0; vertical-align: top;} | |
1030 | #activity dt img.gravatar {float: left; margin: 0 1em 1em 0;} |
|
1030 | #activity dt img.gravatar {float: left; margin: 0 1em 1em 0;} | |
1031 | /* Used on 12px Gravatar img tags without the icon background */ |
|
1031 | /* Used on 12px Gravatar img tags without the icon background */ | |
1032 | .icon-gravatar {float: left; margin-right: 4px;} |
|
1032 | .icon-gravatar {float: left; margin-right: 4px;} | |
1033 |
|
1033 | |||
1034 | #activity dt, .journal {clear: left;} |
|
1034 | #activity dt, .journal {clear: left;} | |
1035 |
|
1035 | |||
1036 | .journal-link {float: right;} |
|
1036 | .journal-link {float: right;} | |
1037 |
|
1037 | |||
1038 | h2 img { vertical-align:middle; } |
|
1038 | h2 img { vertical-align:middle; } | |
1039 |
|
1039 | |||
1040 | .hascontextmenu { cursor: context-menu; } |
|
1040 | .hascontextmenu { cursor: context-menu; } | |
1041 |
|
1041 | |||
1042 | /* Custom JQuery styles */ |
|
1042 | /* Custom JQuery styles */ | |
1043 | .ui-datepicker-title select {width:70px !important; margin-top:-2px !important; margin-right:4px !important;} |
|
1043 | .ui-datepicker-title select {width:70px !important; margin-top:-2px !important; margin-right:4px !important;} | |
1044 |
|
1044 | |||
1045 |
|
1045 | |||
1046 | /************* CodeRay styles *************/ |
|
1046 | /************* CodeRay styles *************/ | |
1047 | .syntaxhl div {display: inline;} |
|
1047 | .syntaxhl div {display: inline;} | |
1048 | .syntaxhl .line-numbers {padding: 2px 4px 2px 4px; background-color: #eee; margin:0px 5px 0px 0px;} |
|
1048 | .syntaxhl .line-numbers {padding: 2px 4px 2px 4px; background-color: #eee; margin:0px 5px 0px 0px;} | |
1049 | .syntaxhl .code pre { overflow: auto } |
|
1049 | .syntaxhl .code pre { overflow: auto } | |
1050 | .syntaxhl .debug { color: white !important; background: blue !important; } |
|
1050 | .syntaxhl .debug { color: white !important; background: blue !important; } | |
1051 |
|
1051 | |||
1052 | .syntaxhl .annotation { color:#007 } |
|
1052 | .syntaxhl .annotation { color:#007 } | |
1053 | .syntaxhl .attribute-name { color:#b48 } |
|
1053 | .syntaxhl .attribute-name { color:#b48 } | |
1054 | .syntaxhl .attribute-value { color:#700 } |
|
1054 | .syntaxhl .attribute-value { color:#700 } | |
1055 | .syntaxhl .binary { color:#509 } |
|
1055 | .syntaxhl .binary { color:#509 } | |
1056 | .syntaxhl .char .content { color:#D20 } |
|
1056 | .syntaxhl .char .content { color:#D20 } | |
1057 | .syntaxhl .char .delimiter { color:#710 } |
|
1057 | .syntaxhl .char .delimiter { color:#710 } | |
1058 | .syntaxhl .char { color:#D20 } |
|
1058 | .syntaxhl .char { color:#D20 } | |
1059 | .syntaxhl .class { color:#258; font-weight:bold } |
|
1059 | .syntaxhl .class { color:#258; font-weight:bold } | |
1060 | .syntaxhl .class-variable { color:#369 } |
|
1060 | .syntaxhl .class-variable { color:#369 } | |
1061 | .syntaxhl .color { color:#0A0 } |
|
1061 | .syntaxhl .color { color:#0A0 } | |
1062 | .syntaxhl .comment { color:#385 } |
|
1062 | .syntaxhl .comment { color:#385 } | |
1063 | .syntaxhl .comment .char { color:#385 } |
|
1063 | .syntaxhl .comment .char { color:#385 } | |
1064 | .syntaxhl .comment .delimiter { color:#385 } |
|
1064 | .syntaxhl .comment .delimiter { color:#385 } | |
1065 | .syntaxhl .complex { color:#A08 } |
|
1065 | .syntaxhl .complex { color:#A08 } | |
1066 | .syntaxhl .constant { color:#258; font-weight:bold } |
|
1066 | .syntaxhl .constant { color:#258; font-weight:bold } | |
1067 | .syntaxhl .decorator { color:#B0B } |
|
1067 | .syntaxhl .decorator { color:#B0B } | |
1068 | .syntaxhl .definition { color:#099; font-weight:bold } |
|
1068 | .syntaxhl .definition { color:#099; font-weight:bold } | |
1069 | .syntaxhl .delimiter { color:black } |
|
1069 | .syntaxhl .delimiter { color:black } | |
1070 | .syntaxhl .directive { color:#088; font-weight:bold } |
|
1070 | .syntaxhl .directive { color:#088; font-weight:bold } | |
1071 | .syntaxhl .doc { color:#970 } |
|
1071 | .syntaxhl .doc { color:#970 } | |
1072 | .syntaxhl .doc-string { color:#D42; font-weight:bold } |
|
1072 | .syntaxhl .doc-string { color:#D42; font-weight:bold } | |
1073 | .syntaxhl .doctype { color:#34b } |
|
1073 | .syntaxhl .doctype { color:#34b } | |
1074 | .syntaxhl .entity { color:#800; font-weight:bold } |
|
1074 | .syntaxhl .entity { color:#800; font-weight:bold } | |
1075 | .syntaxhl .error { color:#F00; background-color:#FAA } |
|
1075 | .syntaxhl .error { color:#F00; background-color:#FAA } | |
1076 | .syntaxhl .escape { color:#666 } |
|
1076 | .syntaxhl .escape { color:#666 } | |
1077 | .syntaxhl .exception { color:#C00; font-weight:bold } |
|
1077 | .syntaxhl .exception { color:#C00; font-weight:bold } | |
1078 | .syntaxhl .float { color:#06D } |
|
1078 | .syntaxhl .float { color:#06D } | |
1079 | .syntaxhl .function { color:#06B; font-weight:bold } |
|
1079 | .syntaxhl .function { color:#06B; font-weight:bold } | |
1080 | .syntaxhl .global-variable { color:#d70 } |
|
1080 | .syntaxhl .global-variable { color:#d70 } | |
1081 | .syntaxhl .hex { color:#02b } |
|
1081 | .syntaxhl .hex { color:#02b } | |
1082 | .syntaxhl .imaginary { color:#f00 } |
|
1082 | .syntaxhl .imaginary { color:#f00 } | |
1083 | .syntaxhl .include { color:#B44; font-weight:bold } |
|
1083 | .syntaxhl .include { color:#B44; font-weight:bold } | |
1084 | .syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
1084 | .syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } | |
1085 | .syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
1085 | .syntaxhl .inline-delimiter { font-weight: bold; color: #666 } | |
1086 | .syntaxhl .instance-variable { color:#33B } |
|
1086 | .syntaxhl .instance-variable { color:#33B } | |
1087 | .syntaxhl .integer { color:#06D } |
|
1087 | .syntaxhl .integer { color:#06D } | |
1088 | .syntaxhl .key .char { color: #60f } |
|
1088 | .syntaxhl .key .char { color: #60f } | |
1089 | .syntaxhl .key .delimiter { color: #404 } |
|
1089 | .syntaxhl .key .delimiter { color: #404 } | |
1090 | .syntaxhl .key { color: #606 } |
|
1090 | .syntaxhl .key { color: #606 } | |
1091 | .syntaxhl .keyword { color:#939; font-weight:bold } |
|
1091 | .syntaxhl .keyword { color:#939; font-weight:bold } | |
1092 | .syntaxhl .label { color:#970; font-weight:bold } |
|
1092 | .syntaxhl .label { color:#970; font-weight:bold } | |
1093 | .syntaxhl .local-variable { color:#963 } |
|
1093 | .syntaxhl .local-variable { color:#963 } | |
1094 | .syntaxhl .namespace { color:#707; font-weight:bold } |
|
1094 | .syntaxhl .namespace { color:#707; font-weight:bold } | |
1095 | .syntaxhl .octal { color:#40E } |
|
1095 | .syntaxhl .octal { color:#40E } | |
1096 | .syntaxhl .operator { } |
|
1096 | .syntaxhl .operator { } | |
1097 | .syntaxhl .predefined { color:#369; font-weight:bold } |
|
1097 | .syntaxhl .predefined { color:#369; font-weight:bold } | |
1098 | .syntaxhl .predefined-constant { color:#069 } |
|
1098 | .syntaxhl .predefined-constant { color:#069 } | |
1099 | .syntaxhl .predefined-type { color:#0a5; font-weight:bold } |
|
1099 | .syntaxhl .predefined-type { color:#0a5; font-weight:bold } | |
1100 | .syntaxhl .preprocessor { color:#579 } |
|
1100 | .syntaxhl .preprocessor { color:#579 } | |
1101 | .syntaxhl .pseudo-class { color:#00C; font-weight:bold } |
|
1101 | .syntaxhl .pseudo-class { color:#00C; font-weight:bold } | |
1102 | .syntaxhl .regexp .content { color:#808 } |
|
1102 | .syntaxhl .regexp .content { color:#808 } | |
1103 | .syntaxhl .regexp .delimiter { color:#404 } |
|
1103 | .syntaxhl .regexp .delimiter { color:#404 } | |
1104 | .syntaxhl .regexp .modifier { color:#C2C } |
|
1104 | .syntaxhl .regexp .modifier { color:#C2C } | |
1105 | .syntaxhl .regexp { background-color:hsla(300,100%,50%,0.06); } |
|
1105 | .syntaxhl .regexp { background-color:hsla(300,100%,50%,0.06); } | |
1106 | .syntaxhl .reserved { color:#080; font-weight:bold } |
|
1106 | .syntaxhl .reserved { color:#080; font-weight:bold } | |
1107 | .syntaxhl .shell .content { color:#2B2 } |
|
1107 | .syntaxhl .shell .content { color:#2B2 } | |
1108 | .syntaxhl .shell .delimiter { color:#161 } |
|
1108 | .syntaxhl .shell .delimiter { color:#161 } | |
1109 | .syntaxhl .shell { background-color:hsla(120,100%,50%,0.06); } |
|
1109 | .syntaxhl .shell { background-color:hsla(120,100%,50%,0.06); } | |
1110 | .syntaxhl .string .char { color: #46a } |
|
1110 | .syntaxhl .string .char { color: #46a } | |
1111 | .syntaxhl .string .content { color: #46a } |
|
1111 | .syntaxhl .string .content { color: #46a } | |
1112 | .syntaxhl .string .delimiter { color: #46a } |
|
1112 | .syntaxhl .string .delimiter { color: #46a } | |
1113 | .syntaxhl .string .modifier { color: #46a } |
|
1113 | .syntaxhl .string .modifier { color: #46a } | |
1114 | .syntaxhl .symbol .content { color:#d33 } |
|
1114 | .syntaxhl .symbol .content { color:#d33 } | |
1115 | .syntaxhl .symbol .delimiter { color:#d33 } |
|
1115 | .syntaxhl .symbol .delimiter { color:#d33 } | |
1116 | .syntaxhl .symbol { color:#d33 } |
|
1116 | .syntaxhl .symbol { color:#d33 } | |
1117 | .syntaxhl .tag { color:#070 } |
|
1117 | .syntaxhl .tag { color:#070 } | |
1118 | .syntaxhl .type { color:#339; font-weight:bold } |
|
1118 | .syntaxhl .type { color:#339; font-weight:bold } | |
1119 | .syntaxhl .value { color: #088; } |
|
1119 | .syntaxhl .value { color: #088; } | |
1120 | .syntaxhl .variable { color:#037 } |
|
1120 | .syntaxhl .variable { color:#037 } | |
1121 |
|
1121 | |||
1122 | .syntaxhl .insert { background: hsla(120,100%,50%,0.12) } |
|
1122 | .syntaxhl .insert { background: hsla(120,100%,50%,0.12) } | |
1123 | .syntaxhl .delete { background: hsla(0,100%,50%,0.12) } |
|
1123 | .syntaxhl .delete { background: hsla(0,100%,50%,0.12) } | |
1124 | .syntaxhl .change { color: #bbf; background: #007; } |
|
1124 | .syntaxhl .change { color: #bbf; background: #007; } | |
1125 | .syntaxhl .head { color: #f8f; background: #505 } |
|
1125 | .syntaxhl .head { color: #f8f; background: #505 } | |
1126 | .syntaxhl .head .filename { color: white; } |
|
1126 | .syntaxhl .head .filename { color: white; } | |
1127 |
|
1127 | |||
1128 | .syntaxhl .delete .eyecatcher { background-color: hsla(0,100%,50%,0.2); border: 1px solid hsla(0,100%,45%,0.5); margin: -1px; border-bottom: none; border-top-left-radius: 5px; border-top-right-radius: 5px; } |
|
1128 | .syntaxhl .delete .eyecatcher { background-color: hsla(0,100%,50%,0.2); border: 1px solid hsla(0,100%,45%,0.5); margin: -1px; border-bottom: none; border-top-left-radius: 5px; border-top-right-radius: 5px; } | |
1129 | .syntaxhl .insert .eyecatcher { background-color: hsla(120,100%,50%,0.2); border: 1px solid hsla(120,100%,25%,0.5); margin: -1px; border-top: none; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; } |
|
1129 | .syntaxhl .insert .eyecatcher { background-color: hsla(120,100%,50%,0.2); border: 1px solid hsla(120,100%,25%,0.5); margin: -1px; border-top: none; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; } | |
1130 |
|
1130 | |||
1131 | .syntaxhl .insert .insert { color: #0c0; background:transparent; font-weight:bold } |
|
1131 | .syntaxhl .insert .insert { color: #0c0; background:transparent; font-weight:bold } | |
1132 | .syntaxhl .delete .delete { color: #c00; background:transparent; font-weight:bold } |
|
1132 | .syntaxhl .delete .delete { color: #c00; background:transparent; font-weight:bold } | |
1133 | .syntaxhl .change .change { color: #88f } |
|
1133 | .syntaxhl .change .change { color: #88f } | |
1134 | .syntaxhl .head .head { color: #f4f } |
|
1134 | .syntaxhl .head .head { color: #f4f } | |
1135 |
|
1135 | |||
1136 | /***** Media print specific styles *****/ |
|
1136 | /***** Media print specific styles *****/ | |
1137 | @media print { |
|
1137 | @media print { | |
1138 | #top-menu, #header, #main-menu, #sidebar, #footer, .contextual, .other-formats { display:none; } |
|
1138 | #top-menu, #header, #main-menu, #sidebar, #footer, .contextual, .other-formats { display:none; } | |
1139 | #main { background: #fff; } |
|
1139 | #main { background: #fff; } | |
1140 | #content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; overflow: visible !important;} |
|
1140 | #content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; overflow: visible !important;} | |
1141 | #wiki_add_attachment { display:none; } |
|
1141 | #wiki_add_attachment { display:none; } | |
1142 | .hide-when-print { display: none; } |
|
1142 | .hide-when-print { display: none; } | |
1143 | .autoscroll {overflow-x: visible;} |
|
1143 | .autoscroll {overflow-x: visible;} | |
1144 | table.list {margin-top:0.5em;} |
|
1144 | table.list {margin-top:0.5em;} | |
1145 | table.list th, table.list td {border: 1px solid #aaa;} |
|
1145 | table.list th, table.list td {border: 1px solid #aaa;} | |
1146 | } |
|
1146 | } | |
1147 |
|
1147 | |||
1148 | /* Accessibility specific styles */ |
|
1148 | /* Accessibility specific styles */ | |
1149 | .hidden-for-sighted { |
|
1149 | .hidden-for-sighted { | |
1150 | position:absolute; |
|
1150 | position:absolute; | |
1151 | left:-10000px; |
|
1151 | left:-10000px; | |
1152 | top:auto; |
|
1152 | top:auto; | |
1153 | width:1px; |
|
1153 | width:1px; | |
1154 | height:1px; |
|
1154 | height:1px; | |
1155 | overflow:hidden; |
|
1155 | overflow:hidden; | |
1156 | } |
|
1156 | } |
@@ -1,176 +1,199 | |||||
1 | # Redmine - project management software |
|
1 | # Redmine - project management software | |
2 | # Copyright (C) 2006-2013 Jean-Philippe Lang |
|
2 | # Copyright (C) 2006-2013 Jean-Philippe Lang | |
3 | # |
|
3 | # | |
4 | # This program is free software; you can redistribute it and/or |
|
4 | # This program is free software; you can redistribute it and/or | |
5 | # modify it under the terms of the GNU General Public License |
|
5 | # modify it under the terms of the GNU General Public License | |
6 | # as published by the Free Software Foundation; either version 2 |
|
6 | # as published by the Free Software Foundation; either version 2 | |
7 | # of the License, or (at your option) any later version. |
|
7 | # of the License, or (at your option) any later version. | |
8 | # |
|
8 | # | |
9 | # This program is distributed in the hope that it will be useful, |
|
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | # GNU General Public License for more details. |
|
12 | # GNU General Public License for more details. | |
13 | # |
|
13 | # | |
14 | # You should have received a copy of the GNU General Public License |
|
14 | # You should have received a copy of the GNU General Public License | |
15 | # along with this program; if not, write to the Free Software |
|
15 | # along with this program; if not, write to the Free Software | |
16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
17 |
|
17 | |||
18 | require File.expand_path('../../test_helper', __FILE__) |
|
18 | require File.expand_path('../../test_helper', __FILE__) | |
19 |
|
19 | |||
20 | class CustomFieldsControllerTest < ActionController::TestCase |
|
20 | class CustomFieldsControllerTest < ActionController::TestCase | |
21 | fixtures :custom_fields, :custom_values, :trackers, :users |
|
21 | fixtures :custom_fields, :custom_values, :trackers, :users, :projects | |
22 |
|
22 | |||
23 | def setup |
|
23 | def setup | |
24 | @request.session[:user_id] = 1 |
|
24 | @request.session[:user_id] = 1 | |
25 | end |
|
25 | end | |
26 |
|
26 | |||
27 | def test_index |
|
27 | def test_index | |
28 | get :index |
|
28 | get :index | |
29 | assert_response :success |
|
29 | assert_response :success | |
30 | assert_template 'index' |
|
30 | assert_template 'index' | |
31 | end |
|
31 | end | |
32 |
|
32 | |||
33 | def test_new |
|
33 | def test_new | |
34 | custom_field_classes.each do |klass| |
|
34 | custom_field_classes.each do |klass| | |
35 | get :new, :type => klass.name |
|
35 | get :new, :type => klass.name | |
36 | assert_response :success |
|
36 | assert_response :success | |
37 | assert_template 'new' |
|
37 | assert_template 'new' | |
38 | assert_kind_of klass, assigns(:custom_field) |
|
38 | assert_kind_of klass, assigns(:custom_field) | |
39 | assert_select 'form#custom_field_form' do |
|
39 | assert_select 'form#custom_field_form' do | |
40 | assert_select 'select#custom_field_field_format[name=?]', 'custom_field[field_format]' |
|
40 | assert_select 'select#custom_field_field_format[name=?]', 'custom_field[field_format]' | |
41 | assert_select 'input[type=hidden][name=type][value=?]', klass.name |
|
41 | assert_select 'input[type=hidden][name=type][value=?]', klass.name | |
42 | end |
|
42 | end | |
43 | end |
|
43 | end | |
44 | end |
|
44 | end | |
45 |
|
45 | |||
46 | def test_new_issue_custom_field |
|
46 | def test_new_issue_custom_field | |
47 | get :new, :type => 'IssueCustomField' |
|
47 | get :new, :type => 'IssueCustomField' | |
48 | assert_response :success |
|
48 | assert_response :success | |
49 | assert_template 'new' |
|
49 | assert_template 'new' | |
50 | assert_select 'form#custom_field_form' do |
|
50 | assert_select 'form#custom_field_form' do | |
51 | assert_select 'select#custom_field_field_format[name=?]', 'custom_field[field_format]' do |
|
51 | assert_select 'select#custom_field_field_format[name=?]', 'custom_field[field_format]' do | |
52 | assert_select 'option[value=user]', :text => 'User' |
|
52 | assert_select 'option[value=user]', :text => 'User' | |
53 | assert_select 'option[value=version]', :text => 'Version' |
|
53 | assert_select 'option[value=version]', :text => 'Version' | |
54 | end |
|
54 | end | |
|
55 | assert_select 'input[type=checkbox][name=?]', 'custom_field[project_ids][]', Project.count | |||
|
56 | assert_select 'input[type=hidden][name=?]', 'custom_field[project_ids][]', 1 | |||
55 | assert_select 'input[type=hidden][name=type][value=IssueCustomField]' |
|
57 | assert_select 'input[type=hidden][name=type][value=IssueCustomField]' | |
56 | end |
|
58 | end | |
57 | end |
|
59 | end | |
58 |
|
60 | |||
|
61 | def test_new_time_entry_custom_field_should_not_show_trackers_and_projects | |||
|
62 | get :new, :type => 'TimeEntryCustomField' | |||
|
63 | assert_response :success | |||
|
64 | assert_template 'new' | |||
|
65 | assert_select 'form#custom_field_form' do | |||
|
66 | assert_select 'input[name=?]', 'custom_field[tracker_ids][]', 0 | |||
|
67 | assert_select 'input[name=?]', 'custom_field[project_ids][]', 0 | |||
|
68 | end | |||
|
69 | end | |||
|
70 | ||||
59 | def test_default_value_should_be_an_input_for_string_custom_field |
|
71 | def test_default_value_should_be_an_input_for_string_custom_field | |
60 | get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'string'} |
|
72 | get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'string'} | |
61 | assert_response :success |
|
73 | assert_response :success | |
62 | assert_select 'input[name=?]', 'custom_field[default_value]' |
|
74 | assert_select 'input[name=?]', 'custom_field[default_value]' | |
63 | end |
|
75 | end | |
64 |
|
76 | |||
65 | def test_default_value_should_be_a_textarea_for_text_custom_field |
|
77 | def test_default_value_should_be_a_textarea_for_text_custom_field | |
66 | get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'text'} |
|
78 | get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'text'} | |
67 | assert_response :success |
|
79 | assert_response :success | |
68 | assert_select 'textarea[name=?]', 'custom_field[default_value]' |
|
80 | assert_select 'textarea[name=?]', 'custom_field[default_value]' | |
69 | end |
|
81 | end | |
70 |
|
82 | |||
71 | def test_default_value_should_be_a_checkbox_for_bool_custom_field |
|
83 | def test_default_value_should_be_a_checkbox_for_bool_custom_field | |
72 | get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'bool'} |
|
84 | get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'bool'} | |
73 | assert_response :success |
|
85 | assert_response :success | |
74 | assert_select 'input[name=?][type=checkbox]', 'custom_field[default_value]' |
|
86 | assert_select 'input[name=?][type=checkbox]', 'custom_field[default_value]' | |
75 | end |
|
87 | end | |
76 |
|
88 | |||
77 | def test_default_value_should_not_be_present_for_user_custom_field |
|
89 | def test_default_value_should_not_be_present_for_user_custom_field | |
78 | get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'user'} |
|
90 | get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'user'} | |
79 | assert_response :success |
|
91 | assert_response :success | |
80 | assert_select '[name=?]', 'custom_field[default_value]', 0 |
|
92 | assert_select '[name=?]', 'custom_field[default_value]', 0 | |
81 | end |
|
93 | end | |
82 |
|
94 | |||
83 | def test_new_js |
|
95 | def test_new_js | |
84 | get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'list'}, :format => 'js' |
|
96 | get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'list'}, :format => 'js' | |
85 | assert_response :success |
|
97 | assert_response :success | |
86 | assert_template 'new' |
|
98 | assert_template 'new' | |
87 | assert_equal 'text/javascript', response.content_type |
|
99 | assert_equal 'text/javascript', response.content_type | |
88 |
|
100 | |||
89 | field = assigns(:custom_field) |
|
101 | field = assigns(:custom_field) | |
90 | assert_equal 'list', field.field_format |
|
102 | assert_equal 'list', field.field_format | |
91 | end |
|
103 | end | |
92 |
|
104 | |||
93 | def test_new_with_invalid_custom_field_class_should_render_404 |
|
105 | def test_new_with_invalid_custom_field_class_should_render_404 | |
94 | get :new, :type => 'UnknownCustomField' |
|
106 | get :new, :type => 'UnknownCustomField' | |
95 | assert_response 404 |
|
107 | assert_response 404 | |
96 | end |
|
108 | end | |
97 |
|
109 | |||
98 | def test_create_list_custom_field |
|
110 | def test_create_list_custom_field | |
99 | assert_difference 'CustomField.count' do |
|
111 | assert_difference 'CustomField.count' do | |
100 | post :create, :type => "IssueCustomField", |
|
112 | post :create, :type => "IssueCustomField", | |
101 | :custom_field => {:name => "test_post_new_list", |
|
113 | :custom_field => {:name => "test_post_new_list", | |
102 | :default_value => "", |
|
114 | :default_value => "", | |
103 | :min_length => "0", |
|
115 | :min_length => "0", | |
104 | :searchable => "0", |
|
116 | :searchable => "0", | |
105 | :regexp => "", |
|
117 | :regexp => "", | |
106 | :is_for_all => "1", |
|
118 | :is_for_all => "1", | |
107 | :possible_values => "0.1\n0.2\n", |
|
119 | :possible_values => "0.1\n0.2\n", | |
108 | :max_length => "0", |
|
120 | :max_length => "0", | |
109 | :is_filter => "0", |
|
121 | :is_filter => "0", | |
110 | :is_required =>"0", |
|
122 | :is_required =>"0", | |
111 | :field_format => "list", |
|
123 | :field_format => "list", | |
112 | :tracker_ids => ["1", ""]} |
|
124 | :tracker_ids => ["1", ""]} | |
113 | end |
|
125 | end | |
114 | assert_redirected_to '/custom_fields?tab=IssueCustomField' |
|
126 | assert_redirected_to '/custom_fields?tab=IssueCustomField' | |
115 | field = IssueCustomField.find_by_name('test_post_new_list') |
|
127 | field = IssueCustomField.find_by_name('test_post_new_list') | |
116 | assert_not_nil field |
|
128 | assert_not_nil field | |
117 | assert_equal ["0.1", "0.2"], field.possible_values |
|
129 | assert_equal ["0.1", "0.2"], field.possible_values | |
118 | assert_equal 1, field.trackers.size |
|
130 | assert_equal 1, field.trackers.size | |
119 | end |
|
131 | end | |
120 |
|
132 | |||
|
133 | def test_create_with_project_ids | |||
|
134 | assert_difference 'CustomField.count' do | |||
|
135 | post :create, :type => "IssueCustomField", :custom_field => { | |||
|
136 | :name => "foo", :field_format => "string", :is_for_all => "0", :project_ids => ["1", "3", ""] | |||
|
137 | } | |||
|
138 | assert_response 302 | |||
|
139 | end | |||
|
140 | field = IssueCustomField.order("id desc").first | |||
|
141 | assert_equal [1, 3], field.projects.map(&:id).sort | |||
|
142 | end | |||
|
143 | ||||
121 | def test_create_with_failure |
|
144 | def test_create_with_failure | |
122 | assert_no_difference 'CustomField.count' do |
|
145 | assert_no_difference 'CustomField.count' do | |
123 | post :create, :type => "IssueCustomField", :custom_field => {:name => ''} |
|
146 | post :create, :type => "IssueCustomField", :custom_field => {:name => ''} | |
124 | end |
|
147 | end | |
125 | assert_response :success |
|
148 | assert_response :success | |
126 | assert_template 'new' |
|
149 | assert_template 'new' | |
127 | end |
|
150 | end | |
128 |
|
151 | |||
129 | def test_edit |
|
152 | def test_edit | |
130 | get :edit, :id => 1 |
|
153 | get :edit, :id => 1 | |
131 | assert_response :success |
|
154 | assert_response :success | |
132 | assert_template 'edit' |
|
155 | assert_template 'edit' | |
133 | assert_tag 'input', :attributes => {:name => 'custom_field[name]', :value => 'Database'} |
|
156 | assert_tag 'input', :attributes => {:name => 'custom_field[name]', :value => 'Database'} | |
134 | end |
|
157 | end | |
135 |
|
158 | |||
136 | def test_edit_invalid_custom_field_should_render_404 |
|
159 | def test_edit_invalid_custom_field_should_render_404 | |
137 | get :edit, :id => 99 |
|
160 | get :edit, :id => 99 | |
138 | assert_response 404 |
|
161 | assert_response 404 | |
139 | end |
|
162 | end | |
140 |
|
163 | |||
141 | def test_update |
|
164 | def test_update | |
142 | put :update, :id => 1, :custom_field => {:name => 'New name'} |
|
165 | put :update, :id => 1, :custom_field => {:name => 'New name'} | |
143 | assert_redirected_to '/custom_fields?tab=IssueCustomField' |
|
166 | assert_redirected_to '/custom_fields?tab=IssueCustomField' | |
144 |
|
167 | |||
145 | field = CustomField.find(1) |
|
168 | field = CustomField.find(1) | |
146 | assert_equal 'New name', field.name |
|
169 | assert_equal 'New name', field.name | |
147 | end |
|
170 | end | |
148 |
|
171 | |||
149 | def test_update_with_failure |
|
172 | def test_update_with_failure | |
150 | put :update, :id => 1, :custom_field => {:name => ''} |
|
173 | put :update, :id => 1, :custom_field => {:name => ''} | |
151 | assert_response :success |
|
174 | assert_response :success | |
152 | assert_template 'edit' |
|
175 | assert_template 'edit' | |
153 | end |
|
176 | end | |
154 |
|
177 | |||
155 | def test_destroy |
|
178 | def test_destroy | |
156 | custom_values_count = CustomValue.where(:custom_field_id => 1).count |
|
179 | custom_values_count = CustomValue.where(:custom_field_id => 1).count | |
157 | assert custom_values_count > 0 |
|
180 | assert custom_values_count > 0 | |
158 |
|
181 | |||
159 | assert_difference 'CustomField.count', -1 do |
|
182 | assert_difference 'CustomField.count', -1 do | |
160 | assert_difference 'CustomValue.count', - custom_values_count do |
|
183 | assert_difference 'CustomValue.count', - custom_values_count do | |
161 | delete :destroy, :id => 1 |
|
184 | delete :destroy, :id => 1 | |
162 | end |
|
185 | end | |
163 | end |
|
186 | end | |
164 |
|
187 | |||
165 | assert_redirected_to '/custom_fields?tab=IssueCustomField' |
|
188 | assert_redirected_to '/custom_fields?tab=IssueCustomField' | |
166 | assert_nil CustomField.find_by_id(1) |
|
189 | assert_nil CustomField.find_by_id(1) | |
167 | assert_nil CustomValue.find_by_custom_field_id(1) |
|
190 | assert_nil CustomValue.find_by_custom_field_id(1) | |
168 | end |
|
191 | end | |
169 |
|
192 | |||
170 | def custom_field_classes |
|
193 | def custom_field_classes | |
171 | files = Dir.glob(File.join(Rails.root, 'app/models/*_custom_field.rb')).map {|f| File.basename(f).sub(/\.rb$/, '') } |
|
194 | files = Dir.glob(File.join(Rails.root, 'app/models/*_custom_field.rb')).map {|f| File.basename(f).sub(/\.rb$/, '') } | |
172 | classes = files.map(&:classify).map(&:constantize) |
|
195 | classes = files.map(&:classify).map(&:constantize) | |
173 | assert classes.size > 0 |
|
196 | assert classes.size > 0 | |
174 | classes |
|
197 | classes | |
175 | end |
|
198 | end | |
176 | end |
|
199 | end |
General Comments 0
You need to be logged in to leave comments.
Login now