##// END OF EJS Templates
Different icon for closed issues in search result (#992)....
Jean-Philippe Lang -
r2254:1ca69f2af1eb
parent child
Show More
@@ -1,280 +1,281
1 # redMine - project management software
1 # redMine - project management software
2 # Copyright (C) 2006-2007 Jean-Philippe Lang
2 # Copyright (C) 2006-2007 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 class Issue < ActiveRecord::Base
18 class Issue < ActiveRecord::Base
19 belongs_to :project
19 belongs_to :project
20 belongs_to :tracker
20 belongs_to :tracker
21 belongs_to :status, :class_name => 'IssueStatus', :foreign_key => 'status_id'
21 belongs_to :status, :class_name => 'IssueStatus', :foreign_key => 'status_id'
22 belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'
22 belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'
23 belongs_to :assigned_to, :class_name => 'User', :foreign_key => 'assigned_to_id'
23 belongs_to :assigned_to, :class_name => 'User', :foreign_key => 'assigned_to_id'
24 belongs_to :fixed_version, :class_name => 'Version', :foreign_key => 'fixed_version_id'
24 belongs_to :fixed_version, :class_name => 'Version', :foreign_key => 'fixed_version_id'
25 belongs_to :priority, :class_name => 'Enumeration', :foreign_key => 'priority_id'
25 belongs_to :priority, :class_name => 'Enumeration', :foreign_key => 'priority_id'
26 belongs_to :category, :class_name => 'IssueCategory', :foreign_key => 'category_id'
26 belongs_to :category, :class_name => 'IssueCategory', :foreign_key => 'category_id'
27
27
28 has_many :journals, :as => :journalized, :dependent => :destroy
28 has_many :journals, :as => :journalized, :dependent => :destroy
29 has_many :time_entries, :dependent => :delete_all
29 has_many :time_entries, :dependent => :delete_all
30 has_and_belongs_to_many :changesets, :order => "#{Changeset.table_name}.committed_on ASC, #{Changeset.table_name}.id ASC"
30 has_and_belongs_to_many :changesets, :order => "#{Changeset.table_name}.committed_on ASC, #{Changeset.table_name}.id ASC"
31
31
32 has_many :relations_from, :class_name => 'IssueRelation', :foreign_key => 'issue_from_id', :dependent => :delete_all
32 has_many :relations_from, :class_name => 'IssueRelation', :foreign_key => 'issue_from_id', :dependent => :delete_all
33 has_many :relations_to, :class_name => 'IssueRelation', :foreign_key => 'issue_to_id', :dependent => :delete_all
33 has_many :relations_to, :class_name => 'IssueRelation', :foreign_key => 'issue_to_id', :dependent => :delete_all
34
34
35 acts_as_attachable :after_remove => :attachment_removed
35 acts_as_attachable :after_remove => :attachment_removed
36 acts_as_customizable
36 acts_as_customizable
37 acts_as_watchable
37 acts_as_watchable
38 acts_as_searchable :columns => ['subject', "#{table_name}.description", "#{Journal.table_name}.notes"],
38 acts_as_searchable :columns => ['subject', "#{table_name}.description", "#{Journal.table_name}.notes"],
39 :include => [:project, :journals],
39 :include => [:project, :journals],
40 # sort by id so that limited eager loading doesn't break with postgresql
40 # sort by id so that limited eager loading doesn't break with postgresql
41 :order_column => "#{table_name}.id"
41 :order_column => "#{table_name}.id"
42 acts_as_event :title => Proc.new {|o| "#{o.tracker.name} ##{o.id}: #{o.subject}"},
42 acts_as_event :title => Proc.new {|o| "#{o.tracker.name} ##{o.id}: #{o.subject}"},
43 :url => Proc.new {|o| {:controller => 'issues', :action => 'show', :id => o.id}}
43 :url => Proc.new {|o| {:controller => 'issues', :action => 'show', :id => o.id}},
44 :type => Proc.new {|o| 'issue' + (o.closed? ? ' closed' : '') }
44
45
45 acts_as_activity_provider :find_options => {:include => [:project, :author, :tracker]},
46 acts_as_activity_provider :find_options => {:include => [:project, :author, :tracker]},
46 :author_key => :author_id
47 :author_key => :author_id
47
48
48 validates_presence_of :subject, :priority, :project, :tracker, :author, :status
49 validates_presence_of :subject, :priority, :project, :tracker, :author, :status
49 validates_length_of :subject, :maximum => 255
50 validates_length_of :subject, :maximum => 255
50 validates_inclusion_of :done_ratio, :in => 0..100
51 validates_inclusion_of :done_ratio, :in => 0..100
51 validates_numericality_of :estimated_hours, :allow_nil => true
52 validates_numericality_of :estimated_hours, :allow_nil => true
52
53
53 def after_initialize
54 def after_initialize
54 if new_record?
55 if new_record?
55 # set default values for new records only
56 # set default values for new records only
56 self.status ||= IssueStatus.default
57 self.status ||= IssueStatus.default
57 self.priority ||= Enumeration.default('IPRI')
58 self.priority ||= Enumeration.default('IPRI')
58 end
59 end
59 end
60 end
60
61
61 # Overrides Redmine::Acts::Customizable::InstanceMethods#available_custom_fields
62 # Overrides Redmine::Acts::Customizable::InstanceMethods#available_custom_fields
62 def available_custom_fields
63 def available_custom_fields
63 (project && tracker) ? project.all_issue_custom_fields.select {|c| tracker.custom_fields.include? c } : []
64 (project && tracker) ? project.all_issue_custom_fields.select {|c| tracker.custom_fields.include? c } : []
64 end
65 end
65
66
66 def copy_from(arg)
67 def copy_from(arg)
67 issue = arg.is_a?(Issue) ? arg : Issue.find(arg)
68 issue = arg.is_a?(Issue) ? arg : Issue.find(arg)
68 self.attributes = issue.attributes.dup
69 self.attributes = issue.attributes.dup
69 self.custom_values = issue.custom_values.collect {|v| v.clone}
70 self.custom_values = issue.custom_values.collect {|v| v.clone}
70 self
71 self
71 end
72 end
72
73
73 # Move an issue to a new project and tracker
74 # Move an issue to a new project and tracker
74 def move_to(new_project, new_tracker = nil)
75 def move_to(new_project, new_tracker = nil)
75 transaction do
76 transaction do
76 if new_project && project_id != new_project.id
77 if new_project && project_id != new_project.id
77 # delete issue relations
78 # delete issue relations
78 unless Setting.cross_project_issue_relations?
79 unless Setting.cross_project_issue_relations?
79 self.relations_from.clear
80 self.relations_from.clear
80 self.relations_to.clear
81 self.relations_to.clear
81 end
82 end
82 # issue is moved to another project
83 # issue is moved to another project
83 # reassign to the category with same name if any
84 # reassign to the category with same name if any
84 new_category = category.nil? ? nil : new_project.issue_categories.find_by_name(category.name)
85 new_category = category.nil? ? nil : new_project.issue_categories.find_by_name(category.name)
85 self.category = new_category
86 self.category = new_category
86 self.fixed_version = nil
87 self.fixed_version = nil
87 self.project = new_project
88 self.project = new_project
88 end
89 end
89 if new_tracker
90 if new_tracker
90 self.tracker = new_tracker
91 self.tracker = new_tracker
91 end
92 end
92 if save
93 if save
93 # Manually update project_id on related time entries
94 # Manually update project_id on related time entries
94 TimeEntry.update_all("project_id = #{new_project.id}", {:issue_id => id})
95 TimeEntry.update_all("project_id = #{new_project.id}", {:issue_id => id})
95 else
96 else
96 rollback_db_transaction
97 rollback_db_transaction
97 return false
98 return false
98 end
99 end
99 end
100 end
100 return true
101 return true
101 end
102 end
102
103
103 def priority_id=(pid)
104 def priority_id=(pid)
104 self.priority = nil
105 self.priority = nil
105 write_attribute(:priority_id, pid)
106 write_attribute(:priority_id, pid)
106 end
107 end
107
108
108 def estimated_hours=(h)
109 def estimated_hours=(h)
109 write_attribute :estimated_hours, (h.is_a?(String) ? h.to_hours : h)
110 write_attribute :estimated_hours, (h.is_a?(String) ? h.to_hours : h)
110 end
111 end
111
112
112 def validate
113 def validate
113 if self.due_date.nil? && @attributes['due_date'] && !@attributes['due_date'].empty?
114 if self.due_date.nil? && @attributes['due_date'] && !@attributes['due_date'].empty?
114 errors.add :due_date, :activerecord_error_not_a_date
115 errors.add :due_date, :activerecord_error_not_a_date
115 end
116 end
116
117
117 if self.due_date and self.start_date and self.due_date < self.start_date
118 if self.due_date and self.start_date and self.due_date < self.start_date
118 errors.add :due_date, :activerecord_error_greater_than_start_date
119 errors.add :due_date, :activerecord_error_greater_than_start_date
119 end
120 end
120
121
121 if start_date && soonest_start && start_date < soonest_start
122 if start_date && soonest_start && start_date < soonest_start
122 errors.add :start_date, :activerecord_error_invalid
123 errors.add :start_date, :activerecord_error_invalid
123 end
124 end
124 end
125 end
125
126
126 def validate_on_create
127 def validate_on_create
127 errors.add :tracker_id, :activerecord_error_invalid unless project.trackers.include?(tracker)
128 errors.add :tracker_id, :activerecord_error_invalid unless project.trackers.include?(tracker)
128 end
129 end
129
130
130 def before_create
131 def before_create
131 # default assignment based on category
132 # default assignment based on category
132 if assigned_to.nil? && category && category.assigned_to
133 if assigned_to.nil? && category && category.assigned_to
133 self.assigned_to = category.assigned_to
134 self.assigned_to = category.assigned_to
134 end
135 end
135 end
136 end
136
137
137 def before_save
138 def before_save
138 if @current_journal
139 if @current_journal
139 # attributes changes
140 # attributes changes
140 (Issue.column_names - %w(id description)).each {|c|
141 (Issue.column_names - %w(id description)).each {|c|
141 @current_journal.details << JournalDetail.new(:property => 'attr',
142 @current_journal.details << JournalDetail.new(:property => 'attr',
142 :prop_key => c,
143 :prop_key => c,
143 :old_value => @issue_before_change.send(c),
144 :old_value => @issue_before_change.send(c),
144 :value => send(c)) unless send(c)==@issue_before_change.send(c)
145 :value => send(c)) unless send(c)==@issue_before_change.send(c)
145 }
146 }
146 # custom fields changes
147 # custom fields changes
147 custom_values.each {|c|
148 custom_values.each {|c|
148 next if (@custom_values_before_change[c.custom_field_id]==c.value ||
149 next if (@custom_values_before_change[c.custom_field_id]==c.value ||
149 (@custom_values_before_change[c.custom_field_id].blank? && c.value.blank?))
150 (@custom_values_before_change[c.custom_field_id].blank? && c.value.blank?))
150 @current_journal.details << JournalDetail.new(:property => 'cf',
151 @current_journal.details << JournalDetail.new(:property => 'cf',
151 :prop_key => c.custom_field_id,
152 :prop_key => c.custom_field_id,
152 :old_value => @custom_values_before_change[c.custom_field_id],
153 :old_value => @custom_values_before_change[c.custom_field_id],
153 :value => c.value)
154 :value => c.value)
154 }
155 }
155 @current_journal.save
156 @current_journal.save
156 end
157 end
157 # Save the issue even if the journal is not saved (because empty)
158 # Save the issue even if the journal is not saved (because empty)
158 true
159 true
159 end
160 end
160
161
161 def after_save
162 def after_save
162 # Reload is needed in order to get the right status
163 # Reload is needed in order to get the right status
163 reload
164 reload
164
165
165 # Update start/due dates of following issues
166 # Update start/due dates of following issues
166 relations_from.each(&:set_issue_to_dates)
167 relations_from.each(&:set_issue_to_dates)
167
168
168 # Close duplicates if the issue was closed
169 # Close duplicates if the issue was closed
169 if @issue_before_change && !@issue_before_change.closed? && self.closed?
170 if @issue_before_change && !@issue_before_change.closed? && self.closed?
170 duplicates.each do |duplicate|
171 duplicates.each do |duplicate|
171 # Reload is need in case the duplicate was updated by a previous duplicate
172 # Reload is need in case the duplicate was updated by a previous duplicate
172 duplicate.reload
173 duplicate.reload
173 # Don't re-close it if it's already closed
174 # Don't re-close it if it's already closed
174 next if duplicate.closed?
175 next if duplicate.closed?
175 # Same user and notes
176 # Same user and notes
176 duplicate.init_journal(@current_journal.user, @current_journal.notes)
177 duplicate.init_journal(@current_journal.user, @current_journal.notes)
177 duplicate.update_attribute :status, self.status
178 duplicate.update_attribute :status, self.status
178 end
179 end
179 end
180 end
180 end
181 end
181
182
182 def init_journal(user, notes = "")
183 def init_journal(user, notes = "")
183 @current_journal ||= Journal.new(:journalized => self, :user => user, :notes => notes)
184 @current_journal ||= Journal.new(:journalized => self, :user => user, :notes => notes)
184 @issue_before_change = self.clone
185 @issue_before_change = self.clone
185 @issue_before_change.status = self.status
186 @issue_before_change.status = self.status
186 @custom_values_before_change = {}
187 @custom_values_before_change = {}
187 self.custom_values.each {|c| @custom_values_before_change.store c.custom_field_id, c.value }
188 self.custom_values.each {|c| @custom_values_before_change.store c.custom_field_id, c.value }
188 # Make sure updated_on is updated when adding a note.
189 # Make sure updated_on is updated when adding a note.
189 updated_on_will_change!
190 updated_on_will_change!
190 @current_journal
191 @current_journal
191 end
192 end
192
193
193 # Return true if the issue is closed, otherwise false
194 # Return true if the issue is closed, otherwise false
194 def closed?
195 def closed?
195 self.status.is_closed?
196 self.status.is_closed?
196 end
197 end
197
198
198 # Returns true if the issue is overdue
199 # Returns true if the issue is overdue
199 def overdue?
200 def overdue?
200 !due_date.nil? && (due_date < Date.today)
201 !due_date.nil? && (due_date < Date.today)
201 end
202 end
202
203
203 # Users the issue can be assigned to
204 # Users the issue can be assigned to
204 def assignable_users
205 def assignable_users
205 project.assignable_users
206 project.assignable_users
206 end
207 end
207
208
208 # Returns an array of status that user is able to apply
209 # Returns an array of status that user is able to apply
209 def new_statuses_allowed_to(user)
210 def new_statuses_allowed_to(user)
210 statuses = status.find_new_statuses_allowed_to(user.role_for_project(project), tracker)
211 statuses = status.find_new_statuses_allowed_to(user.role_for_project(project), tracker)
211 statuses << status unless statuses.empty?
212 statuses << status unless statuses.empty?
212 statuses.uniq.sort
213 statuses.uniq.sort
213 end
214 end
214
215
215 # Returns the mail adresses of users that should be notified for the issue
216 # Returns the mail adresses of users that should be notified for the issue
216 def recipients
217 def recipients
217 recipients = project.recipients
218 recipients = project.recipients
218 # Author and assignee are always notified unless they have been locked
219 # Author and assignee are always notified unless they have been locked
219 recipients << author.mail if author && author.active?
220 recipients << author.mail if author && author.active?
220 recipients << assigned_to.mail if assigned_to && assigned_to.active?
221 recipients << assigned_to.mail if assigned_to && assigned_to.active?
221 recipients.compact.uniq
222 recipients.compact.uniq
222 end
223 end
223
224
224 def spent_hours
225 def spent_hours
225 @spent_hours ||= time_entries.sum(:hours) || 0
226 @spent_hours ||= time_entries.sum(:hours) || 0
226 end
227 end
227
228
228 def relations
229 def relations
229 (relations_from + relations_to).sort
230 (relations_from + relations_to).sort
230 end
231 end
231
232
232 def all_dependent_issues
233 def all_dependent_issues
233 dependencies = []
234 dependencies = []
234 relations_from.each do |relation|
235 relations_from.each do |relation|
235 dependencies << relation.issue_to
236 dependencies << relation.issue_to
236 dependencies += relation.issue_to.all_dependent_issues
237 dependencies += relation.issue_to.all_dependent_issues
237 end
238 end
238 dependencies
239 dependencies
239 end
240 end
240
241
241 # Returns an array of issues that duplicate this one
242 # Returns an array of issues that duplicate this one
242 def duplicates
243 def duplicates
243 relations_to.select {|r| r.relation_type == IssueRelation::TYPE_DUPLICATES}.collect {|r| r.issue_from}
244 relations_to.select {|r| r.relation_type == IssueRelation::TYPE_DUPLICATES}.collect {|r| r.issue_from}
244 end
245 end
245
246
246 # Returns the due date or the target due date if any
247 # Returns the due date or the target due date if any
247 # Used on gantt chart
248 # Used on gantt chart
248 def due_before
249 def due_before
249 due_date || (fixed_version ? fixed_version.effective_date : nil)
250 due_date || (fixed_version ? fixed_version.effective_date : nil)
250 end
251 end
251
252
252 def duration
253 def duration
253 (start_date && due_date) ? due_date - start_date : 0
254 (start_date && due_date) ? due_date - start_date : 0
254 end
255 end
255
256
256 def soonest_start
257 def soonest_start
257 @soonest_start ||= relations_to.collect{|relation| relation.successor_soonest_start}.compact.min
258 @soonest_start ||= relations_to.collect{|relation| relation.successor_soonest_start}.compact.min
258 end
259 end
259
260
260 def self.visible_by(usr)
261 def self.visible_by(usr)
261 with_scope(:find => { :conditions => Project.visible_by(usr) }) do
262 with_scope(:find => { :conditions => Project.visible_by(usr) }) do
262 yield
263 yield
263 end
264 end
264 end
265 end
265
266
266 def to_s
267 def to_s
267 "#{tracker} ##{id}: #{subject}"
268 "#{tracker} ##{id}: #{subject}"
268 end
269 end
269
270
270 private
271 private
271
272
272 # Callback on attachment deletion
273 # Callback on attachment deletion
273 def attachment_removed(obj)
274 def attachment_removed(obj)
274 journal = init_journal(User.current)
275 journal = init_journal(User.current)
275 journal.details << JournalDetail.new(:property => 'attachment',
276 journal.details << JournalDetail.new(:property => 'attachment',
276 :prop_key => obj.id,
277 :prop_key => obj.id,
277 :old_value => obj.filename)
278 :old_value => obj.filename)
278 journal.save
279 journal.save
279 end
280 end
280 end
281 end
@@ -1,682 +1,685
1 body { font-family: Verdana, sans-serif; font-size: 12px; color:#484848; margin: 0; padding: 0; min-width: 900px; }
1 body { font-family: Verdana, sans-serif; font-size: 12px; color:#484848; margin: 0; padding: 0; min-width: 900px; }
2
2
3 h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, sans-serif;}
3 h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, sans-serif;}
4 h1 {margin:0; padding:0; font-size: 24px;}
4 h1 {margin:0; padding:0; font-size: 24px;}
5 h2, .wiki h1 {font-size: 20px;padding: 2px 10px 1px 0px;margin: 0 0 10px 0; border-bottom: 1px solid #bbbbbb; color: #444;}
5 h2, .wiki h1 {font-size: 20px;padding: 2px 10px 1px 0px;margin: 0 0 10px 0; border-bottom: 1px solid #bbbbbb; color: #444;}
6 h3, .wiki h2 {font-size: 16px;padding: 2px 10px 1px 0px;margin: 0 0 10px 0; border-bottom: 1px solid #bbbbbb; color: #444;}
6 h3, .wiki h2 {font-size: 16px;padding: 2px 10px 1px 0px;margin: 0 0 10px 0; border-bottom: 1px solid #bbbbbb; color: #444;}
7 h4, .wiki h3 {font-size: 13px;padding: 2px 10px 1px 0px;margin-bottom: 5px; border-bottom: 1px dotted #bbbbbb; color: #444;}
7 h4, .wiki h3 {font-size: 13px;padding: 2px 10px 1px 0px;margin-bottom: 5px; border-bottom: 1px dotted #bbbbbb; color: #444;}
8
8
9 /***** Layout *****/
9 /***** Layout *****/
10 #wrapper {background: white;}
10 #wrapper {background: white;}
11
11
12 #top-menu {background: #2C4056; color: #fff; height:1.8em; font-size: 0.8em; padding: 2px 2px 0px 6px;}
12 #top-menu {background: #2C4056; color: #fff; height:1.8em; font-size: 0.8em; padding: 2px 2px 0px 6px;}
13 #top-menu ul {margin: 0; padding: 0;}
13 #top-menu ul {margin: 0; padding: 0;}
14 #top-menu li {
14 #top-menu li {
15 float:left;
15 float:left;
16 list-style-type:none;
16 list-style-type:none;
17 margin: 0px 0px 0px 0px;
17 margin: 0px 0px 0px 0px;
18 padding: 0px 0px 0px 0px;
18 padding: 0px 0px 0px 0px;
19 white-space:nowrap;
19 white-space:nowrap;
20 }
20 }
21 #top-menu a {color: #fff; padding-right: 8px; font-weight: bold;}
21 #top-menu a {color: #fff; padding-right: 8px; font-weight: bold;}
22 #top-menu #loggedas { float: right; margin-right: 0.5em; color: #fff; }
22 #top-menu #loggedas { float: right; margin-right: 0.5em; color: #fff; }
23
23
24 #account {float:right;}
24 #account {float:right;}
25
25
26 #header {height:5.3em;margin:0;background-color:#507AAA;color:#f8f8f8; padding: 4px 8px 0px 6px; position:relative;}
26 #header {height:5.3em;margin:0;background-color:#507AAA;color:#f8f8f8; padding: 4px 8px 0px 6px; position:relative;}
27 #header a {color:#f8f8f8;}
27 #header a {color:#f8f8f8;}
28 #quick-search {float:right;}
28 #quick-search {float:right;}
29
29
30 #main-menu {position: absolute; bottom: 0px; left:6px; margin-right: -500px;}
30 #main-menu {position: absolute; bottom: 0px; left:6px; margin-right: -500px;}
31 #main-menu ul {margin: 0; padding: 0;}
31 #main-menu ul {margin: 0; padding: 0;}
32 #main-menu li {
32 #main-menu li {
33 float:left;
33 float:left;
34 list-style-type:none;
34 list-style-type:none;
35 margin: 0px 2px 0px 0px;
35 margin: 0px 2px 0px 0px;
36 padding: 0px 0px 0px 0px;
36 padding: 0px 0px 0px 0px;
37 white-space:nowrap;
37 white-space:nowrap;
38 }
38 }
39 #main-menu li a {
39 #main-menu li a {
40 display: block;
40 display: block;
41 color: #fff;
41 color: #fff;
42 text-decoration: none;
42 text-decoration: none;
43 font-weight: bold;
43 font-weight: bold;
44 margin: 0;
44 margin: 0;
45 padding: 4px 10px 4px 10px;
45 padding: 4px 10px 4px 10px;
46 }
46 }
47 #main-menu li a:hover {background:#759FCF; color:#fff;}
47 #main-menu li a:hover {background:#759FCF; color:#fff;}
48 #main-menu li a.selected, #main-menu li a.selected:hover {background:#fff; color:#555;}
48 #main-menu li a.selected, #main-menu li a.selected:hover {background:#fff; color:#555;}
49
49
50 #main {background-color:#EEEEEE;}
50 #main {background-color:#EEEEEE;}
51
51
52 #sidebar{ float: right; width: 17%; position: relative; z-index: 9; min-height: 600px; padding: 0; margin: 0;}
52 #sidebar{ float: right; width: 17%; position: relative; z-index: 9; min-height: 600px; padding: 0; margin: 0;}
53 * html #sidebar{ width: 17%; }
53 * html #sidebar{ width: 17%; }
54 #sidebar h3{ font-size: 14px; margin-top:14px; color: #666; }
54 #sidebar h3{ font-size: 14px; margin-top:14px; color: #666; }
55 #sidebar hr{ width: 100%; margin: 0 auto; height: 1px; background: #ccc; border: 0; }
55 #sidebar hr{ width: 100%; margin: 0 auto; height: 1px; background: #ccc; border: 0; }
56 * html #sidebar hr{ width: 95%; position: relative; left: -6px; color: #ccc; }
56 * html #sidebar hr{ width: 95%; position: relative; left: -6px; color: #ccc; }
57
57
58 #content { width: 80%; background-color: #fff; margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; z-index: 10; }
58 #content { width: 80%; background-color: #fff; margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; z-index: 10; }
59 * html #content{ width: 80%; padding-left: 0; margin-top: 0px; padding: 6px 10px 10px 10px;}
59 * html #content{ width: 80%; padding-left: 0; margin-top: 0px; padding: 6px 10px 10px 10px;}
60 html>body #content { min-height: 600px; }
60 html>body #content { min-height: 600px; }
61 * html body #content { height: 600px; } /* IE */
61 * html body #content { height: 600px; } /* IE */
62
62
63 #main.nosidebar #sidebar{ display: none; }
63 #main.nosidebar #sidebar{ display: none; }
64 #main.nosidebar #content{ width: auto; border-right: 0; }
64 #main.nosidebar #content{ width: auto; border-right: 0; }
65
65
66 #footer {clear: both; border-top: 1px solid #bbb; font-size: 0.9em; color: #aaa; padding: 5px; text-align:center; background:#fff;}
66 #footer {clear: both; border-top: 1px solid #bbb; font-size: 0.9em; color: #aaa; padding: 5px; text-align:center; background:#fff;}
67
67
68 #login-form table {margin-top:5em; padding:1em; margin-left: auto; margin-right: auto; border: 2px solid #FDBF3B; background-color:#FFEBC1; }
68 #login-form table {margin-top:5em; padding:1em; margin-left: auto; margin-right: auto; border: 2px solid #FDBF3B; background-color:#FFEBC1; }
69 #login-form table td {padding: 6px;}
69 #login-form table td {padding: 6px;}
70 #login-form label {font-weight: bold;}
70 #login-form label {font-weight: bold;}
71
71
72 .clear:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden; }
72 .clear:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden; }
73
73
74 /***** Links *****/
74 /***** Links *****/
75 a, a:link, a:visited{ color: #2A5685; text-decoration: none; }
75 a, a:link, a:visited{ color: #2A5685; text-decoration: none; }
76 a:hover, a:active{ color: #c61a1a; text-decoration: underline;}
76 a:hover, a:active{ color: #c61a1a; text-decoration: underline;}
77 a img{ border: 0; }
77 a img{ border: 0; }
78
78
79 a.issue.closed { text-decoration: line-through; }
79 a.issue.closed { text-decoration: line-through; }
80
80
81 /***** Tables *****/
81 /***** Tables *****/
82 table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; }
82 table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; }
83 table.list th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; }
83 table.list th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; }
84 table.list td { vertical-align: top; }
84 table.list td { vertical-align: top; }
85 table.list td.id { width: 2%; text-align: center;}
85 table.list td.id { width: 2%; text-align: center;}
86 table.list td.checkbox { width: 15px; padding: 0px;}
86 table.list td.checkbox { width: 15px; padding: 0px;}
87
87
88 tr.issue { text-align: center; white-space: nowrap; }
88 tr.issue { text-align: center; white-space: nowrap; }
89 tr.issue td.subject, tr.issue td.category, td.assigned_to { white-space: normal; }
89 tr.issue td.subject, tr.issue td.category, td.assigned_to { white-space: normal; }
90 tr.issue td.subject { text-align: left; }
90 tr.issue td.subject { text-align: left; }
91 tr.issue td.done_ratio table.progress { margin-left:auto; margin-right: auto;}
91 tr.issue td.done_ratio table.progress { margin-left:auto; margin-right: auto;}
92
92
93 tr.entry { border: 1px solid #f8f8f8; }
93 tr.entry { border: 1px solid #f8f8f8; }
94 tr.entry td { white-space: nowrap; }
94 tr.entry td { white-space: nowrap; }
95 tr.entry td.filename { width: 30%; }
95 tr.entry td.filename { width: 30%; }
96 tr.entry td.size { text-align: right; font-size: 90%; }
96 tr.entry td.size { text-align: right; font-size: 90%; }
97 tr.entry td.revision, tr.entry td.author { text-align: center; }
97 tr.entry td.revision, tr.entry td.author { text-align: center; }
98 tr.entry td.age { text-align: right; }
98 tr.entry td.age { text-align: right; }
99
99
100 tr.entry span.expander {background-image: url(../images/bullet_toggle_plus.png); padding-left: 8px; margin-left: 0; cursor: pointer;}
100 tr.entry span.expander {background-image: url(../images/bullet_toggle_plus.png); padding-left: 8px; margin-left: 0; cursor: pointer;}
101 tr.entry.open span.expander {background-image: url(../images/bullet_toggle_minus.png);}
101 tr.entry.open span.expander {background-image: url(../images/bullet_toggle_minus.png);}
102 tr.entry.file td.filename a { margin-left: 16px; }
102 tr.entry.file td.filename a { margin-left: 16px; }
103
103
104 tr.changeset td.author { text-align: center; width: 15%; }
104 tr.changeset td.author { text-align: center; width: 15%; }
105 tr.changeset td.committed_on { text-align: center; width: 15%; }
105 tr.changeset td.committed_on { text-align: center; width: 15%; }
106
106
107 tr.message { height: 2.6em; }
107 tr.message { height: 2.6em; }
108 tr.message td.last_message { font-size: 80%; }
108 tr.message td.last_message { font-size: 80%; }
109 tr.message.locked td.subject a { background-image: url(../images/locked.png); }
109 tr.message.locked td.subject a { background-image: url(../images/locked.png); }
110 tr.message.sticky td.subject a { background-image: url(../images/sticky.png); font-weight: bold; }
110 tr.message.sticky td.subject a { background-image: url(../images/sticky.png); font-weight: bold; }
111
111
112 tr.user td { width:13%; }
112 tr.user td { width:13%; }
113 tr.user td.email { width:18%; }
113 tr.user td.email { width:18%; }
114 tr.user td { white-space: nowrap; }
114 tr.user td { white-space: nowrap; }
115 tr.user.locked, tr.user.registered { color: #aaa; }
115 tr.user.locked, tr.user.registered { color: #aaa; }
116 tr.user.locked a, tr.user.registered a { color: #aaa; }
116 tr.user.locked a, tr.user.registered a { color: #aaa; }
117
117
118 tr.time-entry { text-align: center; white-space: nowrap; }
118 tr.time-entry { text-align: center; white-space: nowrap; }
119 tr.time-entry td.subject, tr.time-entry td.comments { text-align: left; white-space: normal; }
119 tr.time-entry td.subject, tr.time-entry td.comments { text-align: left; white-space: normal; }
120 td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; }
120 td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; }
121 td.hours .hours-dec { font-size: 0.9em; }
121 td.hours .hours-dec { font-size: 0.9em; }
122
122
123 table.plugins td { vertical-align: middle; }
123 table.plugins td { vertical-align: middle; }
124 table.plugins td.configure { text-align: right; padding-right: 1em; }
124 table.plugins td.configure { text-align: right; padding-right: 1em; }
125 table.plugins span.name { font-weight: bold; display: block; margin-bottom: 6px; }
125 table.plugins span.name { font-weight: bold; display: block; margin-bottom: 6px; }
126 table.plugins span.description { display: block; font-size: 0.9em; }
126 table.plugins span.description { display: block; font-size: 0.9em; }
127 table.plugins span.url { display: block; font-size: 0.9em; }
127 table.plugins span.url { display: block; font-size: 0.9em; }
128
128
129 table.list tbody tr:hover { background-color:#ffffdd; }
129 table.list tbody tr:hover { background-color:#ffffdd; }
130 table td {padding:2px;}
130 table td {padding:2px;}
131 table p {margin:0;}
131 table p {margin:0;}
132 .odd {background-color:#f6f7f8;}
132 .odd {background-color:#f6f7f8;}
133 .even {background-color: #fff;}
133 .even {background-color: #fff;}
134
134
135 .highlight { background-color: #FCFD8D;}
135 .highlight { background-color: #FCFD8D;}
136 .highlight.token-1 { background-color: #faa;}
136 .highlight.token-1 { background-color: #faa;}
137 .highlight.token-2 { background-color: #afa;}
137 .highlight.token-2 { background-color: #afa;}
138 .highlight.token-3 { background-color: #aaf;}
138 .highlight.token-3 { background-color: #aaf;}
139
139
140 .box{
140 .box{
141 padding:6px;
141 padding:6px;
142 margin-bottom: 10px;
142 margin-bottom: 10px;
143 background-color:#f6f6f6;
143 background-color:#f6f6f6;
144 color:#505050;
144 color:#505050;
145 line-height:1.5em;
145 line-height:1.5em;
146 border: 1px solid #e4e4e4;
146 border: 1px solid #e4e4e4;
147 }
147 }
148
148
149 div.square {
149 div.square {
150 border: 1px solid #999;
150 border: 1px solid #999;
151 float: left;
151 float: left;
152 margin: .3em .4em 0 .4em;
152 margin: .3em .4em 0 .4em;
153 overflow: hidden;
153 overflow: hidden;
154 width: .6em; height: .6em;
154 width: .6em; height: .6em;
155 }
155 }
156 .contextual {float:right; white-space: nowrap; line-height:1.4em;margin-top:5px; padding-left: 10px; font-size:0.9em;}
156 .contextual {float:right; white-space: nowrap; line-height:1.4em;margin-top:5px; padding-left: 10px; font-size:0.9em;}
157 .contextual input {font-size:0.9em;}
157 .contextual input {font-size:0.9em;}
158
158
159 .splitcontentleft{float:left; width:49%;}
159 .splitcontentleft{float:left; width:49%;}
160 .splitcontentright{float:right; width:49%;}
160 .splitcontentright{float:right; width:49%;}
161 form {display: inline;}
161 form {display: inline;}
162 input, select {vertical-align: middle; margin-top: 1px; margin-bottom: 1px;}
162 input, select {vertical-align: middle; margin-top: 1px; margin-bottom: 1px;}
163 fieldset {border: 1px solid #e4e4e4; margin:0;}
163 fieldset {border: 1px solid #e4e4e4; margin:0;}
164 legend {color: #484848;}
164 legend {color: #484848;}
165 hr { width: 100%; height: 1px; background: #ccc; border: 0;}
165 hr { width: 100%; height: 1px; background: #ccc; border: 0;}
166 blockquote { font-style: italic; border-left: 3px solid #e0e0e0; padding-left: 0.6em; margin-left: 2.4em;}
166 blockquote { font-style: italic; border-left: 3px solid #e0e0e0; padding-left: 0.6em; margin-left: 2.4em;}
167 blockquote blockquote { margin-left: 0;}
167 blockquote blockquote { margin-left: 0;}
168 textarea.wiki-edit { width: 99%; }
168 textarea.wiki-edit { width: 99%; }
169 li p {margin-top: 0;}
169 li p {margin-top: 0;}
170 div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;}
170 div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;}
171 p.breadcrumb { font-size: 0.9em; margin: 4px 0 4px 0;}
171 p.breadcrumb { font-size: 0.9em; margin: 4px 0 4px 0;}
172 p.subtitle { font-size: 0.9em; margin: -6px 0 12px 0; font-style: italic; }
172 p.subtitle { font-size: 0.9em; margin: -6px 0 12px 0; font-style: italic; }
173 p.footnote { font-size: 0.9em; margin-top: 0px; margin-bottom: 0px; }
173 p.footnote { font-size: 0.9em; margin-top: 0px; margin-bottom: 0px; }
174
174
175 fieldset#filters, fieldset#date-range { padding: 0.7em; margin-bottom: 8px; }
175 fieldset#filters, fieldset#date-range { padding: 0.7em; margin-bottom: 8px; }
176 fieldset#filters p { margin: 1.2em 0 0.8em 2px; }
176 fieldset#filters p { margin: 1.2em 0 0.8em 2px; }
177 fieldset#filters table { border-collapse: collapse; }
177 fieldset#filters table { border-collapse: collapse; }
178 fieldset#filters table td { padding: 0; vertical-align: middle; }
178 fieldset#filters table td { padding: 0; vertical-align: middle; }
179 fieldset#filters tr.filter { height: 2em; }
179 fieldset#filters tr.filter { height: 2em; }
180 fieldset#filters td.add-filter { text-align: right; vertical-align: top; }
180 fieldset#filters td.add-filter { text-align: right; vertical-align: top; }
181 .buttons { font-size: 0.9em; }
181 .buttons { font-size: 0.9em; }
182
182
183 div#issue-changesets {float:right; width:45%; margin-left: 1em; margin-bottom: 1em; background: #fff; padding-left: 1em; font-size: 90%;}
183 div#issue-changesets {float:right; width:45%; margin-left: 1em; margin-bottom: 1em; background: #fff; padding-left: 1em; font-size: 90%;}
184 div#issue-changesets .changeset { padding: 4px;}
184 div#issue-changesets .changeset { padding: 4px;}
185 div#issue-changesets .changeset { border-bottom: 1px solid #ddd; }
185 div#issue-changesets .changeset { border-bottom: 1px solid #ddd; }
186 div#issue-changesets p { margin-top: 0; margin-bottom: 1em;}
186 div#issue-changesets p { margin-top: 0; margin-bottom: 1em;}
187
187
188 div#activity dl, #search-results { margin-left: 2em; }
188 div#activity dl, #search-results { margin-left: 2em; }
189 div#activity dd, #search-results dd { margin-bottom: 1em; padding-left: 18px; font-size: 0.9em; }
189 div#activity dd, #search-results dd { margin-bottom: 1em; padding-left: 18px; font-size: 0.9em; }
190 div#activity dt, #search-results dt { margin-bottom: 0px; padding-left: 20px; line-height: 18px; background-position: 0 50%; background-repeat: no-repeat; }
190 div#activity dt, #search-results dt { margin-bottom: 0px; padding-left: 20px; line-height: 18px; background-position: 0 50%; background-repeat: no-repeat; }
191 div#activity dt.me .time { border-bottom: 1px solid #999; }
191 div#activity dt.me .time { border-bottom: 1px solid #999; }
192 div#activity dt .time { color: #777; font-size: 80%; }
192 div#activity dt .time { color: #777; font-size: 80%; }
193 div#activity dd .description, #search-results dd .description { font-style: italic; }
193 div#activity dd .description, #search-results dd .description { font-style: italic; }
194 div#activity span.project:after, #search-results span.project:after { content: " -"; }
194 div#activity span.project:after, #search-results span.project:after { content: " -"; }
195 div#activity dd span.description, #search-results dd span.description { display:block; }
195 div#activity dd span.description, #search-results dd span.description { display:block; }
196
196
197 #search-results dd { margin-bottom: 1em; padding-left: 20px; margin-left:0px; }
197 #search-results dd { margin-bottom: 1em; padding-left: 20px; margin-left:0px; }
198
198 div#search-results-counts {float:right;}
199 div#search-results-counts {float:right;}
199 div#search-results-counts ul { margin-top: 0.5em; }
200 div#search-results-counts ul { margin-top: 0.5em; }
200 div#search-results-counts li { list-style-type:none; float: left; margin-left: 1em; }
201 div#search-results-counts li { list-style-type:none; float: left; margin-left: 1em; }
201
202
202 dt.issue { background-image: url(../images/ticket.png); }
203 dt.issue { background-image: url(../images/ticket.png); }
203 dt.issue-edit { background-image: url(../images/ticket_edit.png); }
204 dt.issue-edit { background-image: url(../images/ticket_edit.png); }
204 dt.issue-closed { background-image: url(../images/ticket_checked.png); }
205 dt.issue-closed { background-image: url(../images/ticket_checked.png); }
205 dt.issue-note { background-image: url(../images/ticket_note.png); }
206 dt.issue-note { background-image: url(../images/ticket_note.png); }
206 dt.changeset { background-image: url(../images/changeset.png); }
207 dt.changeset { background-image: url(../images/changeset.png); }
207 dt.news { background-image: url(../images/news.png); }
208 dt.news { background-image: url(../images/news.png); }
208 dt.message { background-image: url(../images/message.png); }
209 dt.message { background-image: url(../images/message.png); }
209 dt.reply { background-image: url(../images/comments.png); }
210 dt.reply { background-image: url(../images/comments.png); }
210 dt.wiki-page { background-image: url(../images/wiki_edit.png); }
211 dt.wiki-page { background-image: url(../images/wiki_edit.png); }
211 dt.attachment { background-image: url(../images/attachment.png); }
212 dt.attachment { background-image: url(../images/attachment.png); }
212 dt.document { background-image: url(../images/document.png); }
213 dt.document { background-image: url(../images/document.png); }
213 dt.project { background-image: url(../images/projects.png); }
214 dt.project { background-image: url(../images/projects.png); }
214
215
216 #search-results dt.issue.closed { background-image: url(../images/ticket_checked.png); }
217
215 div#roadmap fieldset.related-issues { margin-bottom: 1em; }
218 div#roadmap fieldset.related-issues { margin-bottom: 1em; }
216 div#roadmap fieldset.related-issues ul { margin-top: 0.3em; margin-bottom: 0.3em; }
219 div#roadmap fieldset.related-issues ul { margin-top: 0.3em; margin-bottom: 0.3em; }
217 div#roadmap .wiki h1:first-child { display: none; }
220 div#roadmap .wiki h1:first-child { display: none; }
218 div#roadmap .wiki h1 { font-size: 120%; }
221 div#roadmap .wiki h1 { font-size: 120%; }
219 div#roadmap .wiki h2 { font-size: 110%; }
222 div#roadmap .wiki h2 { font-size: 110%; }
220
223
221 div#version-summary { float:right; width:380px; margin-left: 16px; margin-bottom: 16px; background-color: #fff; }
224 div#version-summary { float:right; width:380px; margin-left: 16px; margin-bottom: 16px; background-color: #fff; }
222 div#version-summary fieldset { margin-bottom: 1em; }
225 div#version-summary fieldset { margin-bottom: 1em; }
223 div#version-summary .total-hours { text-align: right; }
226 div#version-summary .total-hours { text-align: right; }
224
227
225 table#time-report td.hours, table#time-report th.period, table#time-report th.total { text-align: right; padding-right: 0.5em; }
228 table#time-report td.hours, table#time-report th.period, table#time-report th.total { text-align: right; padding-right: 0.5em; }
226 table#time-report tbody tr { font-style: italic; color: #777; }
229 table#time-report tbody tr { font-style: italic; color: #777; }
227 table#time-report tbody tr.last-level { font-style: normal; color: #555; }
230 table#time-report tbody tr.last-level { font-style: normal; color: #555; }
228 table#time-report tbody tr.total { font-style: normal; font-weight: bold; color: #555; background-color:#EEEEEE; }
231 table#time-report tbody tr.total { font-style: normal; font-weight: bold; color: #555; background-color:#EEEEEE; }
229 table#time-report .hours-dec { font-size: 0.9em; }
232 table#time-report .hours-dec { font-size: 0.9em; }
230
233
231 ul.properties {padding:0; font-size: 0.9em; color: #777;}
234 ul.properties {padding:0; font-size: 0.9em; color: #777;}
232 ul.properties li {list-style-type:none;}
235 ul.properties li {list-style-type:none;}
233 ul.properties li span {font-style:italic;}
236 ul.properties li span {font-style:italic;}
234
237
235 .total-hours { font-size: 110%; font-weight: bold; }
238 .total-hours { font-size: 110%; font-weight: bold; }
236 .total-hours span.hours-int { font-size: 120%; }
239 .total-hours span.hours-int { font-size: 120%; }
237
240
238 .autoscroll {overflow-x: auto; padding:1px; margin-bottom: 1.2em;}
241 .autoscroll {overflow-x: auto; padding:1px; margin-bottom: 1.2em;}
239 #user_firstname, #user_lastname, #user_mail, #my_account_form select { width: 90%; }
242 #user_firstname, #user_lastname, #user_mail, #my_account_form select { width: 90%; }
240
243
241 .pagination {font-size: 90%}
244 .pagination {font-size: 90%}
242 p.pagination {margin-top:8px;}
245 p.pagination {margin-top:8px;}
243
246
244 /***** Tabular forms ******/
247 /***** Tabular forms ******/
245 .tabular p{
248 .tabular p{
246 margin: 0;
249 margin: 0;
247 padding: 5px 0 8px 0;
250 padding: 5px 0 8px 0;
248 padding-left: 180px; /*width of left column containing the label elements*/
251 padding-left: 180px; /*width of left column containing the label elements*/
249 height: 1%;
252 height: 1%;
250 clear:left;
253 clear:left;
251 }
254 }
252
255
253 html>body .tabular p {overflow:hidden;}
256 html>body .tabular p {overflow:hidden;}
254
257
255 .tabular label{
258 .tabular label{
256 font-weight: bold;
259 font-weight: bold;
257 float: left;
260 float: left;
258 text-align: right;
261 text-align: right;
259 margin-left: -180px; /*width of left column*/
262 margin-left: -180px; /*width of left column*/
260 width: 175px; /*width of labels. Should be smaller than left column to create some right
263 width: 175px; /*width of labels. Should be smaller than left column to create some right
261 margin*/
264 margin*/
262 }
265 }
263
266
264 .tabular label.floating{
267 .tabular label.floating{
265 font-weight: normal;
268 font-weight: normal;
266 margin-left: 0px;
269 margin-left: 0px;
267 text-align: left;
270 text-align: left;
268 width: 270px;
271 width: 270px;
269 }
272 }
270
273
271 input#time_entry_comments { width: 90%;}
274 input#time_entry_comments { width: 90%;}
272
275
273 #preview fieldset {margin-top: 1em; background: url(../images/draft.png)}
276 #preview fieldset {margin-top: 1em; background: url(../images/draft.png)}
274
277
275 .tabular.settings p{ padding-left: 300px; }
278 .tabular.settings p{ padding-left: 300px; }
276 .tabular.settings label{ margin-left: -300px; width: 295px; }
279 .tabular.settings label{ margin-left: -300px; width: 295px; }
277
280
278 .required {color: #bb0000;}
281 .required {color: #bb0000;}
279 .summary {font-style: italic;}
282 .summary {font-style: italic;}
280
283
281 #attachments_fields input[type=text] {margin-left: 8px; }
284 #attachments_fields input[type=text] {margin-left: 8px; }
282
285
283 div.attachments { margin-top: 12px; }
286 div.attachments { margin-top: 12px; }
284 div.attachments p { margin:4px 0 2px 0; }
287 div.attachments p { margin:4px 0 2px 0; }
285 div.attachments img { vertical-align: middle; }
288 div.attachments img { vertical-align: middle; }
286 div.attachments span.author { font-size: 0.9em; color: #888; }
289 div.attachments span.author { font-size: 0.9em; color: #888; }
287
290
288 p.other-formats { text-align: right; font-size:0.9em; color: #666; }
291 p.other-formats { text-align: right; font-size:0.9em; color: #666; }
289 .other-formats span + span:before { content: "| "; }
292 .other-formats span + span:before { content: "| "; }
290
293
291 a.feed { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; }
294 a.feed { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; }
292
295
293 /***** Flash & error messages ****/
296 /***** Flash & error messages ****/
294 #errorExplanation, div.flash, .nodata, .warning {
297 #errorExplanation, div.flash, .nodata, .warning {
295 padding: 4px 4px 4px 30px;
298 padding: 4px 4px 4px 30px;
296 margin-bottom: 12px;
299 margin-bottom: 12px;
297 font-size: 1.1em;
300 font-size: 1.1em;
298 border: 2px solid;
301 border: 2px solid;
299 }
302 }
300
303
301 div.flash {margin-top: 8px;}
304 div.flash {margin-top: 8px;}
302
305
303 div.flash.error, #errorExplanation {
306 div.flash.error, #errorExplanation {
304 background: url(../images/false.png) 8px 5px no-repeat;
307 background: url(../images/false.png) 8px 5px no-repeat;
305 background-color: #ffe3e3;
308 background-color: #ffe3e3;
306 border-color: #dd0000;
309 border-color: #dd0000;
307 color: #550000;
310 color: #550000;
308 }
311 }
309
312
310 div.flash.notice {
313 div.flash.notice {
311 background: url(../images/true.png) 8px 5px no-repeat;
314 background: url(../images/true.png) 8px 5px no-repeat;
312 background-color: #dfffdf;
315 background-color: #dfffdf;
313 border-color: #9fcf9f;
316 border-color: #9fcf9f;
314 color: #005f00;
317 color: #005f00;
315 }
318 }
316
319
317 div.flash.warning {
320 div.flash.warning {
318 background: url(../images/warning.png) 8px 5px no-repeat;
321 background: url(../images/warning.png) 8px 5px no-repeat;
319 background-color: #FFEBC1;
322 background-color: #FFEBC1;
320 border-color: #FDBF3B;
323 border-color: #FDBF3B;
321 color: #A6750C;
324 color: #A6750C;
322 text-align: left;
325 text-align: left;
323 }
326 }
324
327
325 .nodata, .warning {
328 .nodata, .warning {
326 text-align: center;
329 text-align: center;
327 background-color: #FFEBC1;
330 background-color: #FFEBC1;
328 border-color: #FDBF3B;
331 border-color: #FDBF3B;
329 color: #A6750C;
332 color: #A6750C;
330 }
333 }
331
334
332 #errorExplanation ul { font-size: 0.9em;}
335 #errorExplanation ul { font-size: 0.9em;}
333
336
334 /***** Ajax indicator ******/
337 /***** Ajax indicator ******/
335 #ajax-indicator {
338 #ajax-indicator {
336 position: absolute; /* fixed not supported by IE */
339 position: absolute; /* fixed not supported by IE */
337 background-color:#eee;
340 background-color:#eee;
338 border: 1px solid #bbb;
341 border: 1px solid #bbb;
339 top:35%;
342 top:35%;
340 left:40%;
343 left:40%;
341 width:20%;
344 width:20%;
342 font-weight:bold;
345 font-weight:bold;
343 text-align:center;
346 text-align:center;
344 padding:0.6em;
347 padding:0.6em;
345 z-index:100;
348 z-index:100;
346 filter:alpha(opacity=50);
349 filter:alpha(opacity=50);
347 opacity: 0.5;
350 opacity: 0.5;
348 }
351 }
349
352
350 html>body #ajax-indicator { position: fixed; }
353 html>body #ajax-indicator { position: fixed; }
351
354
352 #ajax-indicator span {
355 #ajax-indicator span {
353 background-position: 0% 40%;
356 background-position: 0% 40%;
354 background-repeat: no-repeat;
357 background-repeat: no-repeat;
355 background-image: url(../images/loading.gif);
358 background-image: url(../images/loading.gif);
356 padding-left: 26px;
359 padding-left: 26px;
357 vertical-align: bottom;
360 vertical-align: bottom;
358 }
361 }
359
362
360 /***** Calendar *****/
363 /***** Calendar *****/
361 table.cal {border-collapse: collapse; width: 100%; margin: 0px 0 6px 0;border: 1px solid #d7d7d7;}
364 table.cal {border-collapse: collapse; width: 100%; margin: 0px 0 6px 0;border: 1px solid #d7d7d7;}
362 table.cal thead th {width: 14%;}
365 table.cal thead th {width: 14%;}
363 table.cal tbody tr {height: 100px;}
366 table.cal tbody tr {height: 100px;}
364 table.cal th { background-color:#EEEEEE; padding: 4px; }
367 table.cal th { background-color:#EEEEEE; padding: 4px; }
365 table.cal td {border: 1px solid #d7d7d7; vertical-align: top; font-size: 0.9em;}
368 table.cal td {border: 1px solid #d7d7d7; vertical-align: top; font-size: 0.9em;}
366 table.cal td p.day-num {font-size: 1.1em; text-align:right;}
369 table.cal td p.day-num {font-size: 1.1em; text-align:right;}
367 table.cal td.odd p.day-num {color: #bbb;}
370 table.cal td.odd p.day-num {color: #bbb;}
368 table.cal td.today {background:#ffffdd;}
371 table.cal td.today {background:#ffffdd;}
369 table.cal td.today p.day-num {font-weight: bold;}
372 table.cal td.today p.day-num {font-weight: bold;}
370
373
371 /***** Tooltips ******/
374 /***** Tooltips ******/
372 .tooltip{position:relative;z-index:24;}
375 .tooltip{position:relative;z-index:24;}
373 .tooltip:hover{z-index:25;color:#000;}
376 .tooltip:hover{z-index:25;color:#000;}
374 .tooltip span.tip{display: none; text-align:left;}
377 .tooltip span.tip{display: none; text-align:left;}
375
378
376 div.tooltip:hover span.tip{
379 div.tooltip:hover span.tip{
377 display:block;
380 display:block;
378 position:absolute;
381 position:absolute;
379 top:12px; left:24px; width:270px;
382 top:12px; left:24px; width:270px;
380 border:1px solid #555;
383 border:1px solid #555;
381 background-color:#fff;
384 background-color:#fff;
382 padding: 4px;
385 padding: 4px;
383 font-size: 0.8em;
386 font-size: 0.8em;
384 color:#505050;
387 color:#505050;
385 }
388 }
386
389
387 /***** Progress bar *****/
390 /***** Progress bar *****/
388 table.progress {
391 table.progress {
389 border: 1px solid #D7D7D7;
392 border: 1px solid #D7D7D7;
390 border-collapse: collapse;
393 border-collapse: collapse;
391 border-spacing: 0pt;
394 border-spacing: 0pt;
392 empty-cells: show;
395 empty-cells: show;
393 text-align: center;
396 text-align: center;
394 float:left;
397 float:left;
395 margin: 1px 6px 1px 0px;
398 margin: 1px 6px 1px 0px;
396 }
399 }
397
400
398 table.progress td { height: 0.9em; }
401 table.progress td { height: 0.9em; }
399 table.progress td.closed { background: #BAE0BA none repeat scroll 0%; }
402 table.progress td.closed { background: #BAE0BA none repeat scroll 0%; }
400 table.progress td.done { background: #DEF0DE none repeat scroll 0%; }
403 table.progress td.done { background: #DEF0DE none repeat scroll 0%; }
401 table.progress td.open { background: #FFF none repeat scroll 0%; }
404 table.progress td.open { background: #FFF none repeat scroll 0%; }
402 p.pourcent {font-size: 80%;}
405 p.pourcent {font-size: 80%;}
403 p.progress-info {clear: left; font-style: italic; font-size: 80%;}
406 p.progress-info {clear: left; font-style: italic; font-size: 80%;}
404
407
405 /***** Tabs *****/
408 /***** Tabs *****/
406 #content .tabs {height: 2.6em; border-bottom: 1px solid #bbbbbb; margin-bottom:1.2em; position:relative;}
409 #content .tabs {height: 2.6em; border-bottom: 1px solid #bbbbbb; margin-bottom:1.2em; position:relative;}
407 #content .tabs ul {margin:0; position:absolute; bottom:-2px; padding-left:1em;}
410 #content .tabs ul {margin:0; position:absolute; bottom:-2px; padding-left:1em;}
408 #content .tabs>ul { bottom:-1px; } /* others */
411 #content .tabs>ul { bottom:-1px; } /* others */
409 #content .tabs ul li {
412 #content .tabs ul li {
410 float:left;
413 float:left;
411 list-style-type:none;
414 list-style-type:none;
412 white-space:nowrap;
415 white-space:nowrap;
413 margin-right:8px;
416 margin-right:8px;
414 background:#fff;
417 background:#fff;
415 }
418 }
416 #content .tabs ul li a{
419 #content .tabs ul li a{
417 display:block;
420 display:block;
418 font-size: 0.9em;
421 font-size: 0.9em;
419 text-decoration:none;
422 text-decoration:none;
420 line-height:1.3em;
423 line-height:1.3em;
421 padding:4px 6px 4px 6px;
424 padding:4px 6px 4px 6px;
422 border: 1px solid #ccc;
425 border: 1px solid #ccc;
423 border-bottom: 1px solid #bbbbbb;
426 border-bottom: 1px solid #bbbbbb;
424 background-color: #eeeeee;
427 background-color: #eeeeee;
425 color:#777;
428 color:#777;
426 font-weight:bold;
429 font-weight:bold;
427 }
430 }
428
431
429 #content .tabs ul li a:hover {
432 #content .tabs ul li a:hover {
430 background-color: #ffffdd;
433 background-color: #ffffdd;
431 text-decoration:none;
434 text-decoration:none;
432 }
435 }
433
436
434 #content .tabs ul li a.selected {
437 #content .tabs ul li a.selected {
435 background-color: #fff;
438 background-color: #fff;
436 border: 1px solid #bbbbbb;
439 border: 1px solid #bbbbbb;
437 border-bottom: 1px solid #fff;
440 border-bottom: 1px solid #fff;
438 }
441 }
439
442
440 #content .tabs ul li a.selected:hover {
443 #content .tabs ul li a.selected:hover {
441 background-color: #fff;
444 background-color: #fff;
442 }
445 }
443
446
444 /***** Diff *****/
447 /***** Diff *****/
445 .diff_out { background: #fcc; }
448 .diff_out { background: #fcc; }
446 .diff_in { background: #cfc; }
449 .diff_in { background: #cfc; }
447
450
448 /***** Wiki *****/
451 /***** Wiki *****/
449 div.wiki table {
452 div.wiki table {
450 border: 1px solid #505050;
453 border: 1px solid #505050;
451 border-collapse: collapse;
454 border-collapse: collapse;
452 margin-bottom: 1em;
455 margin-bottom: 1em;
453 }
456 }
454
457
455 div.wiki table, div.wiki td, div.wiki th {
458 div.wiki table, div.wiki td, div.wiki th {
456 border: 1px solid #bbb;
459 border: 1px solid #bbb;
457 padding: 4px;
460 padding: 4px;
458 }
461 }
459
462
460 div.wiki .external {
463 div.wiki .external {
461 background-position: 0% 60%;
464 background-position: 0% 60%;
462 background-repeat: no-repeat;
465 background-repeat: no-repeat;
463 padding-left: 12px;
466 padding-left: 12px;
464 background-image: url(../images/external.png);
467 background-image: url(../images/external.png);
465 }
468 }
466
469
467 div.wiki a.new {
470 div.wiki a.new {
468 color: #b73535;
471 color: #b73535;
469 }
472 }
470
473
471 div.wiki pre {
474 div.wiki pre {
472 margin: 1em 1em 1em 1.6em;
475 margin: 1em 1em 1em 1.6em;
473 padding: 2px;
476 padding: 2px;
474 background-color: #fafafa;
477 background-color: #fafafa;
475 border: 1px solid #dadada;
478 border: 1px solid #dadada;
476 width:95%;
479 width:95%;
477 overflow-x: auto;
480 overflow-x: auto;
478 }
481 }
479
482
480 div.wiki ul.toc {
483 div.wiki ul.toc {
481 background-color: #ffffdd;
484 background-color: #ffffdd;
482 border: 1px solid #e4e4e4;
485 border: 1px solid #e4e4e4;
483 padding: 4px;
486 padding: 4px;
484 line-height: 1.2em;
487 line-height: 1.2em;
485 margin-bottom: 12px;
488 margin-bottom: 12px;
486 margin-right: 12px;
489 margin-right: 12px;
487 margin-left: 0;
490 margin-left: 0;
488 display: table
491 display: table
489 }
492 }
490 * html div.wiki ul.toc { width: 50%; } /* IE6 doesn't autosize div */
493 * html div.wiki ul.toc { width: 50%; } /* IE6 doesn't autosize div */
491
494
492 div.wiki ul.toc.right { float: right; margin-left: 12px; margin-right: 0; width: auto; }
495 div.wiki ul.toc.right { float: right; margin-left: 12px; margin-right: 0; width: auto; }
493 div.wiki ul.toc.left { float: left; margin-right: 12px; margin-left: 0; width: auto; }
496 div.wiki ul.toc.left { float: left; margin-right: 12px; margin-left: 0; width: auto; }
494 div.wiki ul.toc li { list-style-type:none;}
497 div.wiki ul.toc li { list-style-type:none;}
495 div.wiki ul.toc li.heading2 { margin-left: 6px; }
498 div.wiki ul.toc li.heading2 { margin-left: 6px; }
496 div.wiki ul.toc li.heading3 { margin-left: 12px; font-size: 0.8em; }
499 div.wiki ul.toc li.heading3 { margin-left: 12px; font-size: 0.8em; }
497
500
498 div.wiki ul.toc a {
501 div.wiki ul.toc a {
499 font-size: 0.9em;
502 font-size: 0.9em;
500 font-weight: normal;
503 font-weight: normal;
501 text-decoration: none;
504 text-decoration: none;
502 color: #606060;
505 color: #606060;
503 }
506 }
504 div.wiki ul.toc a:hover { color: #c61a1a; text-decoration: underline;}
507 div.wiki ul.toc a:hover { color: #c61a1a; text-decoration: underline;}
505
508
506 a.wiki-anchor { display: none; margin-left: 6px; text-decoration: none; }
509 a.wiki-anchor { display: none; margin-left: 6px; text-decoration: none; }
507 a.wiki-anchor:hover { color: #aaa !important; text-decoration: none; }
510 a.wiki-anchor:hover { color: #aaa !important; text-decoration: none; }
508 h1:hover a.wiki-anchor, h2:hover a.wiki-anchor, h3:hover a.wiki-anchor { display: inline; color: #ddd; }
511 h1:hover a.wiki-anchor, h2:hover a.wiki-anchor, h3:hover a.wiki-anchor { display: inline; color: #ddd; }
509
512
510 /***** My page layout *****/
513 /***** My page layout *****/
511 .block-receiver {
514 .block-receiver {
512 border:1px dashed #c0c0c0;
515 border:1px dashed #c0c0c0;
513 margin-bottom: 20px;
516 margin-bottom: 20px;
514 padding: 15px 0 15px 0;
517 padding: 15px 0 15px 0;
515 }
518 }
516
519
517 .mypage-box {
520 .mypage-box {
518 margin:0 0 20px 0;
521 margin:0 0 20px 0;
519 color:#505050;
522 color:#505050;
520 line-height:1.5em;
523 line-height:1.5em;
521 }
524 }
522
525
523 .handle {
526 .handle {
524 cursor: move;
527 cursor: move;
525 }
528 }
526
529
527 a.close-icon {
530 a.close-icon {
528 display:block;
531 display:block;
529 margin-top:3px;
532 margin-top:3px;
530 overflow:hidden;
533 overflow:hidden;
531 width:12px;
534 width:12px;
532 height:12px;
535 height:12px;
533 background-repeat: no-repeat;
536 background-repeat: no-repeat;
534 cursor:pointer;
537 cursor:pointer;
535 background-image:url('../images/close.png');
538 background-image:url('../images/close.png');
536 }
539 }
537
540
538 a.close-icon:hover {
541 a.close-icon:hover {
539 background-image:url('../images/close_hl.png');
542 background-image:url('../images/close_hl.png');
540 }
543 }
541
544
542 /***** Gantt chart *****/
545 /***** Gantt chart *****/
543 .gantt_hdr {
546 .gantt_hdr {
544 position:absolute;
547 position:absolute;
545 top:0;
548 top:0;
546 height:16px;
549 height:16px;
547 border-top: 1px solid #c0c0c0;
550 border-top: 1px solid #c0c0c0;
548 border-bottom: 1px solid #c0c0c0;
551 border-bottom: 1px solid #c0c0c0;
549 border-right: 1px solid #c0c0c0;
552 border-right: 1px solid #c0c0c0;
550 text-align: center;
553 text-align: center;
551 overflow: hidden;
554 overflow: hidden;
552 }
555 }
553
556
554 .task {
557 .task {
555 position: absolute;
558 position: absolute;
556 height:8px;
559 height:8px;
557 font-size:0.8em;
560 font-size:0.8em;
558 color:#888;
561 color:#888;
559 padding:0;
562 padding:0;
560 margin:0;
563 margin:0;
561 line-height:0.8em;
564 line-height:0.8em;
562 }
565 }
563
566
564 .task_late { background:#f66 url(../images/task_late.png); border: 1px solid #f66; }
567 .task_late { background:#f66 url(../images/task_late.png); border: 1px solid #f66; }
565 .task_done { background:#66f url(../images/task_done.png); border: 1px solid #66f; }
568 .task_done { background:#66f url(../images/task_done.png); border: 1px solid #66f; }
566 .task_todo { background:#aaa url(../images/task_todo.png); border: 1px solid #aaa; }
569 .task_todo { background:#aaa url(../images/task_todo.png); border: 1px solid #aaa; }
567 .milestone { background-image:url(../images/milestone.png); background-repeat: no-repeat; border: 0; }
570 .milestone { background-image:url(../images/milestone.png); background-repeat: no-repeat; border: 0; }
568
571
569 /***** Icons *****/
572 /***** Icons *****/
570 .icon {
573 .icon {
571 background-position: 0% 40%;
574 background-position: 0% 40%;
572 background-repeat: no-repeat;
575 background-repeat: no-repeat;
573 padding-left: 20px;
576 padding-left: 20px;
574 padding-top: 2px;
577 padding-top: 2px;
575 padding-bottom: 3px;
578 padding-bottom: 3px;
576 }
579 }
577
580
578 .icon22 {
581 .icon22 {
579 background-position: 0% 40%;
582 background-position: 0% 40%;
580 background-repeat: no-repeat;
583 background-repeat: no-repeat;
581 padding-left: 26px;
584 padding-left: 26px;
582 line-height: 22px;
585 line-height: 22px;
583 vertical-align: middle;
586 vertical-align: middle;
584 }
587 }
585
588
586 .icon-add { background-image: url(../images/add.png); }
589 .icon-add { background-image: url(../images/add.png); }
587 .icon-edit { background-image: url(../images/edit.png); }
590 .icon-edit { background-image: url(../images/edit.png); }
588 .icon-copy { background-image: url(../images/copy.png); }
591 .icon-copy { background-image: url(../images/copy.png); }
589 .icon-del { background-image: url(../images/delete.png); }
592 .icon-del { background-image: url(../images/delete.png); }
590 .icon-move { background-image: url(../images/move.png); }
593 .icon-move { background-image: url(../images/move.png); }
591 .icon-save { background-image: url(../images/save.png); }
594 .icon-save { background-image: url(../images/save.png); }
592 .icon-cancel { background-image: url(../images/cancel.png); }
595 .icon-cancel { background-image: url(../images/cancel.png); }
593 .icon-file { background-image: url(../images/file.png); }
596 .icon-file { background-image: url(../images/file.png); }
594 .icon-folder { background-image: url(../images/folder.png); }
597 .icon-folder { background-image: url(../images/folder.png); }
595 .open .icon-folder { background-image: url(../images/folder_open.png); }
598 .open .icon-folder { background-image: url(../images/folder_open.png); }
596 .icon-package { background-image: url(../images/package.png); }
599 .icon-package { background-image: url(../images/package.png); }
597 .icon-home { background-image: url(../images/home.png); }
600 .icon-home { background-image: url(../images/home.png); }
598 .icon-user { background-image: url(../images/user.png); }
601 .icon-user { background-image: url(../images/user.png); }
599 .icon-mypage { background-image: url(../images/user_page.png); }
602 .icon-mypage { background-image: url(../images/user_page.png); }
600 .icon-admin { background-image: url(../images/admin.png); }
603 .icon-admin { background-image: url(../images/admin.png); }
601 .icon-projects { background-image: url(../images/projects.png); }
604 .icon-projects { background-image: url(../images/projects.png); }
602 .icon-help { background-image: url(../images/help.png); }
605 .icon-help { background-image: url(../images/help.png); }
603 .icon-attachment { background-image: url(../images/attachment.png); }
606 .icon-attachment { background-image: url(../images/attachment.png); }
604 .icon-index { background-image: url(../images/index.png); }
607 .icon-index { background-image: url(../images/index.png); }
605 .icon-history { background-image: url(../images/history.png); }
608 .icon-history { background-image: url(../images/history.png); }
606 .icon-time { background-image: url(../images/time.png); }
609 .icon-time { background-image: url(../images/time.png); }
607 .icon-stats { background-image: url(../images/stats.png); }
610 .icon-stats { background-image: url(../images/stats.png); }
608 .icon-warning { background-image: url(../images/warning.png); }
611 .icon-warning { background-image: url(../images/warning.png); }
609 .icon-fav { background-image: url(../images/fav.png); }
612 .icon-fav { background-image: url(../images/fav.png); }
610 .icon-fav-off { background-image: url(../images/fav_off.png); }
613 .icon-fav-off { background-image: url(../images/fav_off.png); }
611 .icon-reload { background-image: url(../images/reload.png); }
614 .icon-reload { background-image: url(../images/reload.png); }
612 .icon-lock { background-image: url(../images/locked.png); }
615 .icon-lock { background-image: url(../images/locked.png); }
613 .icon-unlock { background-image: url(../images/unlock.png); }
616 .icon-unlock { background-image: url(../images/unlock.png); }
614 .icon-checked { background-image: url(../images/true.png); }
617 .icon-checked { background-image: url(../images/true.png); }
615 .icon-details { background-image: url(../images/zoom_in.png); }
618 .icon-details { background-image: url(../images/zoom_in.png); }
616 .icon-report { background-image: url(../images/report.png); }
619 .icon-report { background-image: url(../images/report.png); }
617 .icon-comment { background-image: url(../images/comment.png); }
620 .icon-comment { background-image: url(../images/comment.png); }
618
621
619 .icon22-projects { background-image: url(../images/22x22/projects.png); }
622 .icon22-projects { background-image: url(../images/22x22/projects.png); }
620 .icon22-users { background-image: url(../images/22x22/users.png); }
623 .icon22-users { background-image: url(../images/22x22/users.png); }
621 .icon22-tracker { background-image: url(../images/22x22/tracker.png); }
624 .icon22-tracker { background-image: url(../images/22x22/tracker.png); }
622 .icon22-role { background-image: url(../images/22x22/role.png); }
625 .icon22-role { background-image: url(../images/22x22/role.png); }
623 .icon22-workflow { background-image: url(../images/22x22/workflow.png); }
626 .icon22-workflow { background-image: url(../images/22x22/workflow.png); }
624 .icon22-options { background-image: url(../images/22x22/options.png); }
627 .icon22-options { background-image: url(../images/22x22/options.png); }
625 .icon22-notifications { background-image: url(../images/22x22/notifications.png); }
628 .icon22-notifications { background-image: url(../images/22x22/notifications.png); }
626 .icon22-authent { background-image: url(../images/22x22/authent.png); }
629 .icon22-authent { background-image: url(../images/22x22/authent.png); }
627 .icon22-info { background-image: url(../images/22x22/info.png); }
630 .icon22-info { background-image: url(../images/22x22/info.png); }
628 .icon22-comment { background-image: url(../images/22x22/comment.png); }
631 .icon22-comment { background-image: url(../images/22x22/comment.png); }
629 .icon22-package { background-image: url(../images/22x22/package.png); }
632 .icon22-package { background-image: url(../images/22x22/package.png); }
630 .icon22-settings { background-image: url(../images/22x22/settings.png); }
633 .icon22-settings { background-image: url(../images/22x22/settings.png); }
631 .icon22-plugin { background-image: url(../images/22x22/plugin.png); }
634 .icon22-plugin { background-image: url(../images/22x22/plugin.png); }
632
635
633 img.gravatar {
636 img.gravatar {
634 padding: 2px;
637 padding: 2px;
635 border: solid 1px #d5d5d5;
638 border: solid 1px #d5d5d5;
636 background: #fff;
639 background: #fff;
637 }
640 }
638
641
639 div.issue img.gravatar {
642 div.issue img.gravatar {
640 float: right;
643 float: right;
641 margin: 0 0 0 1em;
644 margin: 0 0 0 1em;
642 padding: 5px;
645 padding: 5px;
643 }
646 }
644
647
645 div.issue table img.gravatar {
648 div.issue table img.gravatar {
646 height: 14px;
649 height: 14px;
647 width: 14px;
650 width: 14px;
648 padding: 2px;
651 padding: 2px;
649 float: left;
652 float: left;
650 margin: 0 0.5em 0 0;
653 margin: 0 0.5em 0 0;
651 }
654 }
652
655
653 #history img.gravatar {
656 #history img.gravatar {
654 padding: 3px;
657 padding: 3px;
655 margin: 0 1.5em 1em 0;
658 margin: 0 1.5em 1em 0;
656 float: left;
659 float: left;
657 }
660 }
658
661
659 td.username img.gravatar {
662 td.username img.gravatar {
660 float: left;
663 float: left;
661 margin: 0 1em 0 0;
664 margin: 0 1em 0 0;
662 }
665 }
663
666
664 #activity dt img.gravatar {
667 #activity dt img.gravatar {
665 float: left;
668 float: left;
666 margin: 0 1em 1em 0;
669 margin: 0 1em 1em 0;
667 }
670 }
668
671
669 #activity dt,
672 #activity dt,
670 .journal {
673 .journal {
671 clear: left;
674 clear: left;
672 }
675 }
673
676
674 h2 img { vertical-align:middle; }
677 h2 img { vertical-align:middle; }
675
678
676
679
677 /***** Media print specific styles *****/
680 /***** Media print specific styles *****/
678 @media print {
681 @media print {
679 #top-menu, #header, #main-menu, #sidebar, #footer, .contextual, .other-formats { display:none; }
682 #top-menu, #header, #main-menu, #sidebar, #footer, .contextual, .other-formats { display:none; }
680 #main { background: #fff; }
683 #main { background: #fff; }
681 #content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; overflow: visible !important;}
684 #content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; overflow: visible !important;}
682 }
685 }
@@ -1,111 +1,128
1 ---
1 ---
2 issues_001:
2 issues_001:
3 created_on: <%= 3.days.ago.to_date.to_s(:db) %>
3 created_on: <%= 3.days.ago.to_date.to_s(:db) %>
4 project_id: 1
4 project_id: 1
5 updated_on: <%= 1.day.ago.to_date.to_s(:db) %>
5 updated_on: <%= 1.day.ago.to_date.to_s(:db) %>
6 priority_id: 4
6 priority_id: 4
7 subject: Can't print recipes
7 subject: Can't print recipes
8 id: 1
8 id: 1
9 fixed_version_id:
9 fixed_version_id:
10 category_id: 1
10 category_id: 1
11 description: Unable to print recipes
11 description: Unable to print recipes
12 tracker_id: 1
12 tracker_id: 1
13 assigned_to_id:
13 assigned_to_id:
14 author_id: 2
14 author_id: 2
15 status_id: 1
15 status_id: 1
16 start_date: <%= 1.day.ago.to_date.to_s(:db) %>
16 start_date: <%= 1.day.ago.to_date.to_s(:db) %>
17 due_date: <%= 10.day.from_now.to_date.to_s(:db) %>
17 due_date: <%= 10.day.from_now.to_date.to_s(:db) %>
18 issues_002:
18 issues_002:
19 created_on: 2006-07-19 21:04:21 +02:00
19 created_on: 2006-07-19 21:04:21 +02:00
20 project_id: 1
20 project_id: 1
21 updated_on: 2006-07-19 21:09:50 +02:00
21 updated_on: 2006-07-19 21:09:50 +02:00
22 priority_id: 5
22 priority_id: 5
23 subject: Add ingredients categories
23 subject: Add ingredients categories
24 id: 2
24 id: 2
25 fixed_version_id: 2
25 fixed_version_id: 2
26 category_id:
26 category_id:
27 description: Ingredients of the recipe should be classified by categories
27 description: Ingredients of the recipe should be classified by categories
28 tracker_id: 2
28 tracker_id: 2
29 assigned_to_id: 3
29 assigned_to_id: 3
30 author_id: 2
30 author_id: 2
31 status_id: 2
31 status_id: 2
32 start_date: <%= 2.day.ago.to_date.to_s(:db) %>
32 start_date: <%= 2.day.ago.to_date.to_s(:db) %>
33 due_date:
33 due_date:
34 issues_003:
34 issues_003:
35 created_on: 2006-07-19 21:07:27 +02:00
35 created_on: 2006-07-19 21:07:27 +02:00
36 project_id: 1
36 project_id: 1
37 updated_on: 2006-07-19 21:07:27 +02:00
37 updated_on: 2006-07-19 21:07:27 +02:00
38 priority_id: 4
38 priority_id: 4
39 subject: Error 281 when updating a recipe
39 subject: Error 281 when updating a recipe
40 id: 3
40 id: 3
41 fixed_version_id:
41 fixed_version_id:
42 category_id:
42 category_id:
43 description: Error 281 is encountered when saving a recipe
43 description: Error 281 is encountered when saving a recipe
44 tracker_id: 1
44 tracker_id: 1
45 assigned_to_id: 3
45 assigned_to_id: 3
46 author_id: 2
46 author_id: 2
47 status_id: 1
47 status_id: 1
48 start_date: <%= 1.day.from_now.to_date.to_s(:db) %>
48 start_date: <%= 1.day.from_now.to_date.to_s(:db) %>
49 due_date: <%= 40.day.ago.to_date.to_s(:db) %>
49 due_date: <%= 40.day.ago.to_date.to_s(:db) %>
50 issues_004:
50 issues_004:
51 created_on: <%= 5.days.ago.to_date.to_s(:db) %>
51 created_on: <%= 5.days.ago.to_date.to_s(:db) %>
52 project_id: 2
52 project_id: 2
53 updated_on: <%= 2.days.ago.to_date.to_s(:db) %>
53 updated_on: <%= 2.days.ago.to_date.to_s(:db) %>
54 priority_id: 4
54 priority_id: 4
55 subject: Issue on project 2
55 subject: Issue on project 2
56 id: 4
56 id: 4
57 fixed_version_id:
57 fixed_version_id:
58 category_id:
58 category_id:
59 description: Issue on project 2
59 description: Issue on project 2
60 tracker_id: 1
60 tracker_id: 1
61 assigned_to_id:
61 assigned_to_id:
62 author_id: 2
62 author_id: 2
63 status_id: 1
63 status_id: 1
64 issues_005:
64 issues_005:
65 created_on: <%= 5.days.ago.to_date.to_s(:db) %>
65 created_on: <%= 5.days.ago.to_date.to_s(:db) %>
66 project_id: 3
66 project_id: 3
67 updated_on: <%= 2.days.ago.to_date.to_s(:db) %>
67 updated_on: <%= 2.days.ago.to_date.to_s(:db) %>
68 priority_id: 4
68 priority_id: 4
69 subject: Subproject issue
69 subject: Subproject issue
70 id: 5
70 id: 5
71 fixed_version_id:
71 fixed_version_id:
72 category_id:
72 category_id:
73 description: This is an issue on a cookbook subproject
73 description: This is an issue on a cookbook subproject
74 tracker_id: 1
74 tracker_id: 1
75 assigned_to_id:
75 assigned_to_id:
76 author_id: 2
76 author_id: 2
77 status_id: 1
77 status_id: 1
78 issues_006:
78 issues_006:
79 created_on: <%= 1.minute.ago.to_date.to_s(:db) %>
79 created_on: <%= 1.minute.ago.to_date.to_s(:db) %>
80 project_id: 5
80 project_id: 5
81 updated_on: <%= 1.minute.ago.to_date.to_s(:db) %>
81 updated_on: <%= 1.minute.ago.to_date.to_s(:db) %>
82 priority_id: 4
82 priority_id: 4
83 subject: Issue of a private subproject
83 subject: Issue of a private subproject
84 id: 6
84 id: 6
85 fixed_version_id:
85 fixed_version_id:
86 category_id:
86 category_id:
87 description: This is an issue of a private subproject of cookbook
87 description: This is an issue of a private subproject of cookbook
88 tracker_id: 1
88 tracker_id: 1
89 assigned_to_id:
89 assigned_to_id:
90 author_id: 2
90 author_id: 2
91 status_id: 1
91 status_id: 1
92 start_date: <%= Date.today.to_s(:db) %>
92 start_date: <%= Date.today.to_s(:db) %>
93 due_date: <%= 1.days.from_now.to_date.to_s(:db) %>
93 due_date: <%= 1.days.from_now.to_date.to_s(:db) %>
94 issues_007:
94 issues_007:
95 created_on: <%= 10.days.ago.to_date.to_s(:db) %>
95 created_on: <%= 10.days.ago.to_date.to_s(:db) %>
96 project_id: 1
96 project_id: 1
97 updated_on: <%= 10.days.ago.to_date.to_s(:db) %>
97 updated_on: <%= 10.days.ago.to_date.to_s(:db) %>
98 priority_id: 3
98 priority_id: 3
99 subject: Issue due today
99 subject: Issue due today
100 id: 7
100 id: 7
101 fixed_version_id:
101 fixed_version_id:
102 category_id:
102 category_id:
103 description: This is an issue that is due today
103 description: This is an issue that is due today
104 tracker_id: 1
104 tracker_id: 1
105 assigned_to_id:
105 assigned_to_id:
106 author_id: 2
106 author_id: 2
107 status_id: 1
107 status_id: 1
108 start_date: <%= 10.days.ago.to_s(:db) %>
108 start_date: <%= 10.days.ago.to_s(:db) %>
109 due_date: <%= Date.today.to_s(:db) %>
109 due_date: <%= Date.today.to_s(:db) %>
110 lock_version: 0
110 lock_version: 0
111 issues_008:
112 created_on: <%= 10.days.ago.to_date.to_s(:db) %>
113 project_id: 1
114 updated_on: <%= 10.days.ago.to_date.to_s(:db) %>
115 priority_id: 3
116 subject: Closed issue
117 id: 8
118 fixed_version_id:
119 category_id:
120 description: This is a closed issue.
121 tracker_id: 1
122 assigned_to_id:
123 author_id: 2
124 status_id: 5
125 start_date:
126 due_date:
127 lock_version: 0
111 No newline at end of file
128
@@ -1,130 +1,141
1 require File.dirname(__FILE__) + '/../test_helper'
1 require File.dirname(__FILE__) + '/../test_helper'
2 require 'search_controller'
2 require 'search_controller'
3
3
4 # Re-raise errors caught by the controller.
4 # Re-raise errors caught by the controller.
5 class SearchController; def rescue_action(e) raise e end; end
5 class SearchController; def rescue_action(e) raise e end; end
6
6
7 class SearchControllerTest < Test::Unit::TestCase
7 class SearchControllerTest < Test::Unit::TestCase
8 fixtures :projects, :enabled_modules, :roles, :users,
8 fixtures :projects, :enabled_modules, :roles, :users,
9 :issues, :trackers, :issue_statuses,
9 :issues, :trackers, :issue_statuses,
10 :custom_fields, :custom_values,
10 :custom_fields, :custom_values,
11 :repositories, :changesets
11 :repositories, :changesets
12
12
13 def setup
13 def setup
14 @controller = SearchController.new
14 @controller = SearchController.new
15 @request = ActionController::TestRequest.new
15 @request = ActionController::TestRequest.new
16 @response = ActionController::TestResponse.new
16 @response = ActionController::TestResponse.new
17 User.current = nil
17 User.current = nil
18 end
18 end
19
19
20 def test_search_for_projects
20 def test_search_for_projects
21 get :index
21 get :index
22 assert_response :success
22 assert_response :success
23 assert_template 'index'
23 assert_template 'index'
24
24
25 get :index, :q => "cook"
25 get :index, :q => "cook"
26 assert_response :success
26 assert_response :success
27 assert_template 'index'
27 assert_template 'index'
28 assert assigns(:results).include?(Project.find(1))
28 assert assigns(:results).include?(Project.find(1))
29 end
29 end
30
30
31 def test_search_all_projects
31 def test_search_all_projects
32 get :index, :q => 'recipe subproject commit', :submit => 'Search'
32 get :index, :q => 'recipe subproject commit', :submit => 'Search'
33 assert_response :success
33 assert_response :success
34 assert_template 'index'
34 assert_template 'index'
35
35
36 assert assigns(:results).include?(Issue.find(2))
36 assert assigns(:results).include?(Issue.find(2))
37 assert assigns(:results).include?(Issue.find(5))
37 assert assigns(:results).include?(Issue.find(5))
38 assert assigns(:results).include?(Changeset.find(101))
38 assert assigns(:results).include?(Changeset.find(101))
39 assert_tag :dt, :attributes => { :class => /issue/ },
39 assert_tag :dt, :attributes => { :class => /issue/ },
40 :child => { :tag => 'a', :content => /Add ingredients categories/ },
40 :child => { :tag => 'a', :content => /Add ingredients categories/ },
41 :sibling => { :tag => 'dd', :content => /should be classified by categories/ }
41 :sibling => { :tag => 'dd', :content => /should be classified by categories/ }
42
42
43 assert assigns(:results_by_type).is_a?(Hash)
43 assert assigns(:results_by_type).is_a?(Hash)
44 assert_equal 4, assigns(:results_by_type)['changesets']
44 assert_equal 4, assigns(:results_by_type)['changesets']
45 assert_tag :a, :content => 'Changesets (4)'
45 assert_tag :a, :content => 'Changesets (4)'
46 end
46 end
47
47
48 def test_search_issues
49 get :index, :q => 'issue', :issues => 1
50 assert_response :success
51 assert_template 'index'
52
53 assert assigns(:results).include?(Issue.find(8))
54 assert assigns(:results).include?(Issue.find(5))
55 assert_tag :dt, :attributes => { :class => /issue closed/ },
56 :child => { :tag => 'a', :content => /Closed/ }
57 end
58
48 def test_search_project_and_subprojects
59 def test_search_project_and_subprojects
49 get :index, :id => 1, :q => 'recipe subproject', :scope => 'subprojects', :submit => 'Search'
60 get :index, :id => 1, :q => 'recipe subproject', :scope => 'subprojects', :submit => 'Search'
50 assert_response :success
61 assert_response :success
51 assert_template 'index'
62 assert_template 'index'
52 assert assigns(:results).include?(Issue.find(1))
63 assert assigns(:results).include?(Issue.find(1))
53 assert assigns(:results).include?(Issue.find(5))
64 assert assigns(:results).include?(Issue.find(5))
54 end
65 end
55
66
56 def test_search_without_searchable_custom_fields
67 def test_search_without_searchable_custom_fields
57 CustomField.update_all "searchable = #{ActiveRecord::Base.connection.quoted_false}"
68 CustomField.update_all "searchable = #{ActiveRecord::Base.connection.quoted_false}"
58
69
59 get :index, :id => 1
70 get :index, :id => 1
60 assert_response :success
71 assert_response :success
61 assert_template 'index'
72 assert_template 'index'
62 assert_not_nil assigns(:project)
73 assert_not_nil assigns(:project)
63
74
64 get :index, :id => 1, :q => "can"
75 get :index, :id => 1, :q => "can"
65 assert_response :success
76 assert_response :success
66 assert_template 'index'
77 assert_template 'index'
67 end
78 end
68
79
69 def test_search_with_searchable_custom_fields
80 def test_search_with_searchable_custom_fields
70 get :index, :id => 1, :q => "stringforcustomfield"
81 get :index, :id => 1, :q => "stringforcustomfield"
71 assert_response :success
82 assert_response :success
72 results = assigns(:results)
83 results = assigns(:results)
73 assert_not_nil results
84 assert_not_nil results
74 assert_equal 1, results.size
85 assert_equal 1, results.size
75 assert results.include?(Issue.find(3))
86 assert results.include?(Issue.find(3))
76 end
87 end
77
88
78 def test_search_all_words
89 def test_search_all_words
79 # 'all words' is on by default
90 # 'all words' is on by default
80 get :index, :id => 1, :q => 'recipe updating saving'
91 get :index, :id => 1, :q => 'recipe updating saving'
81 results = assigns(:results)
92 results = assigns(:results)
82 assert_not_nil results
93 assert_not_nil results
83 assert_equal 1, results.size
94 assert_equal 1, results.size
84 assert results.include?(Issue.find(3))
95 assert results.include?(Issue.find(3))
85 end
96 end
86
97
87 def test_search_one_of_the_words
98 def test_search_one_of_the_words
88 get :index, :id => 1, :q => 'recipe updating saving', :submit => 'Search'
99 get :index, :id => 1, :q => 'recipe updating saving', :submit => 'Search'
89 results = assigns(:results)
100 results = assigns(:results)
90 assert_not_nil results
101 assert_not_nil results
91 assert_equal 3, results.size
102 assert_equal 3, results.size
92 assert results.include?(Issue.find(3))
103 assert results.include?(Issue.find(3))
93 end
104 end
94
105
95 def test_search_titles_only_without_result
106 def test_search_titles_only_without_result
96 get :index, :id => 1, :q => 'recipe updating saving', :all_words => '1', :titles_only => '1', :submit => 'Search'
107 get :index, :id => 1, :q => 'recipe updating saving', :all_words => '1', :titles_only => '1', :submit => 'Search'
97 results = assigns(:results)
108 results = assigns(:results)
98 assert_not_nil results
109 assert_not_nil results
99 assert_equal 0, results.size
110 assert_equal 0, results.size
100 end
111 end
101
112
102 def test_search_titles_only
113 def test_search_titles_only
103 get :index, :id => 1, :q => 'recipe', :titles_only => '1', :submit => 'Search'
114 get :index, :id => 1, :q => 'recipe', :titles_only => '1', :submit => 'Search'
104 results = assigns(:results)
115 results = assigns(:results)
105 assert_not_nil results
116 assert_not_nil results
106 assert_equal 2, results.size
117 assert_equal 2, results.size
107 end
118 end
108
119
109 def test_search_with_invalid_project_id
120 def test_search_with_invalid_project_id
110 get :index, :id => 195, :q => 'recipe'
121 get :index, :id => 195, :q => 'recipe'
111 assert_response 404
122 assert_response 404
112 assert_nil assigns(:results)
123 assert_nil assigns(:results)
113 end
124 end
114
125
115 def test_quick_jump_to_issue
126 def test_quick_jump_to_issue
116 # issue of a public project
127 # issue of a public project
117 get :index, :q => "3"
128 get :index, :q => "3"
118 assert_redirected_to 'issues/show/3'
129 assert_redirected_to 'issues/show/3'
119
130
120 # issue of a private project
131 # issue of a private project
121 get :index, :q => "4"
132 get :index, :q => "4"
122 assert_response :success
133 assert_response :success
123 assert_template 'index'
134 assert_template 'index'
124 end
135 end
125
136
126 def test_tokens_with_quotes
137 def test_tokens_with_quotes
127 get :index, :id => 1, :q => '"good bye" hello "bye bye"'
138 get :index, :id => 1, :q => '"good bye" hello "bye bye"'
128 assert_equal ["good bye", "hello", "bye bye"], assigns(:tokens)
139 assert_equal ["good bye", "hello", "bye bye"], assigns(:tokens)
129 end
140 end
130 end
141 end
General Comments 0
You need to be logged in to leave comments. Login now