##// END OF EJS Templates
Option for long text custom fields to be displayed under the description field (#21705)....
Jean-Philippe Lang -
r15869:b40d66f39fa8
parent child
Show More

The requested changes are too big and content was truncated. Show full diff

@@ -1,524 +1,544
1 1 # encoding: utf-8
2 2 #
3 3 # Redmine - project management software
4 4 # Copyright (C) 2006-2016 Jean-Philippe Lang
5 5 #
6 6 # This program is free software; you can redistribute it and/or
7 7 # modify it under the terms of the GNU General Public License
8 8 # as published by the Free Software Foundation; either version 2
9 9 # of the License, or (at your option) any later version.
10 10 #
11 11 # This program is distributed in the hope that it will be useful,
12 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 14 # GNU General Public License for more details.
15 15 #
16 16 # You should have received a copy of the GNU General Public License
17 17 # along with this program; if not, write to the Free Software
18 18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 19
20 20 module IssuesHelper
21 21 include ApplicationHelper
22 22 include Redmine::Export::PDF::IssuesPdfHelper
23 23
24 24 def issue_list(issues, &block)
25 25 ancestors = []
26 26 issues.each do |issue|
27 27 while (ancestors.any? && !issue.is_descendant_of?(ancestors.last))
28 28 ancestors.pop
29 29 end
30 30 yield issue, ancestors.size
31 31 ancestors << issue unless issue.leaf?
32 32 end
33 33 end
34 34
35 35 def grouped_issue_list(issues, query, issue_count_by_group, &block)
36 36 ancestors = []
37 37 grouped_query_results(issues, query, issue_count_by_group) do |issue, group_name, group_count, group_totals|
38 38 while (ancestors.any? && !issue.is_descendant_of?(ancestors.last))
39 39 ancestors.pop
40 40 end
41 41 yield issue, ancestors.size, group_name, group_count, group_totals
42 42 ancestors << issue unless issue.leaf?
43 43 end
44 44 end
45 45
46 46 # Renders a HTML/CSS tooltip
47 47 #
48 48 # To use, a trigger div is needed. This is a div with the class of "tooltip"
49 49 # that contains this method wrapped in a span with the class of "tip"
50 50 #
51 51 # <div class="tooltip"><%= link_to_issue(issue) %>
52 52 # <span class="tip"><%= render_issue_tooltip(issue) %></span>
53 53 # </div>
54 54 #
55 55 def render_issue_tooltip(issue)
56 56 @cached_label_status ||= l(:field_status)
57 57 @cached_label_start_date ||= l(:field_start_date)
58 58 @cached_label_due_date ||= l(:field_due_date)
59 59 @cached_label_assigned_to ||= l(:field_assigned_to)
60 60 @cached_label_priority ||= l(:field_priority)
61 61 @cached_label_project ||= l(:field_project)
62 62
63 63 link_to_issue(issue) + "<br /><br />".html_safe +
64 64 "<strong>#{@cached_label_project}</strong>: #{link_to_project(issue.project)}<br />".html_safe +
65 65 "<strong>#{@cached_label_status}</strong>: #{h(issue.status.name)}<br />".html_safe +
66 66 "<strong>#{@cached_label_start_date}</strong>: #{format_date(issue.start_date)}<br />".html_safe +
67 67 "<strong>#{@cached_label_due_date}</strong>: #{format_date(issue.due_date)}<br />".html_safe +
68 68 "<strong>#{@cached_label_assigned_to}</strong>: #{h(issue.assigned_to)}<br />".html_safe +
69 69 "<strong>#{@cached_label_priority}</strong>: #{h(issue.priority.name)}".html_safe
70 70 end
71 71
72 72 def issue_heading(issue)
73 73 h("#{issue.tracker} ##{issue.id}")
74 74 end
75 75
76 76 def render_issue_subject_with_tree(issue)
77 77 s = ''
78 78 ancestors = issue.root? ? [] : issue.ancestors.visible.to_a
79 79 ancestors.each do |ancestor|
80 80 s << '<div>' + content_tag('p', link_to_issue(ancestor, :project => (issue.project_id != ancestor.project_id)))
81 81 end
82 82 s << '<div>'
83 83 subject = h(issue.subject)
84 84 if issue.is_private?
85 85 subject = content_tag('span', l(:field_is_private), :class => 'private') + ' ' + subject
86 86 end
87 87 s << content_tag('h3', subject)
88 88 s << '</div>' * (ancestors.size + 1)
89 89 s.html_safe
90 90 end
91 91
92 92 def render_descendants_tree(issue)
93 93 s = '<table class="list issues">'
94 94 issue_list(issue.descendants.visible.preload(:status, :priority, :tracker, :assigned_to).sort_by(&:lft)) do |child, level|
95 95 css = "issue issue-#{child.id} hascontextmenu #{child.css_classes}"
96 96 css << " idnt idnt-#{level}" if level > 0
97 97 s << content_tag('tr',
98 98 content_tag('td', check_box_tag("ids[]", child.id, false, :id => nil), :class => 'checkbox') +
99 99 content_tag('td', link_to_issue(child, :project => (issue.project_id != child.project_id)), :class => 'subject', :style => 'width: 50%') +
100 100 content_tag('td', h(child.status), :class => 'status') +
101 101 content_tag('td', link_to_user(child.assigned_to), :class => 'assigned_to') +
102 102 content_tag('td', child.disabled_core_fields.include?('done_ratio') ? '' : progress_bar(child.done_ratio), :class=> 'done_ratio'),
103 103 :class => css)
104 104 end
105 105 s << '</table>'
106 106 s.html_safe
107 107 end
108 108
109 109 # Renders the list of related issues on the issue details view
110 110 def render_issue_relations(issue, relations)
111 111 manage_relations = User.current.allowed_to?(:manage_issue_relations, issue.project)
112 112
113 113 s = ''.html_safe
114 114 relations.each do |relation|
115 115 other_issue = relation.other_issue(issue)
116 116 css = "issue hascontextmenu #{other_issue.css_classes}"
117 117 link = manage_relations ? link_to(l(:label_relation_delete),
118 118 relation_path(relation),
119 119 :remote => true,
120 120 :method => :delete,
121 121 :data => {:confirm => l(:text_are_you_sure)},
122 122 :title => l(:label_relation_delete),
123 123 :class => 'icon-only icon-link-break'
124 124 ) : nil
125 125
126 126 s << content_tag('tr',
127 127 content_tag('td', check_box_tag("ids[]", other_issue.id, false, :id => nil), :class => 'checkbox') +
128 128 content_tag('td', relation.to_s(@issue) {|other| link_to_issue(other, :project => Setting.cross_project_issue_relations?)}.html_safe, :class => 'subject', :style => 'width: 50%') +
129 129 content_tag('td', other_issue.status, :class => 'status') +
130 130 content_tag('td', other_issue.start_date, :class => 'start_date') +
131 131 content_tag('td', other_issue.due_date, :class => 'due_date') +
132 132 content_tag('td', other_issue.disabled_core_fields.include?('done_ratio') ? '' : progress_bar(other_issue.done_ratio), :class=> 'done_ratio') +
133 133 content_tag('td', link, :class => 'buttons'),
134 134 :id => "relation-#{relation.id}",
135 135 :class => css)
136 136 end
137 137
138 138 content_tag('table', s, :class => 'list issues')
139 139 end
140 140
141 141 def issue_estimated_hours_details(issue)
142 142 if issue.total_estimated_hours.present?
143 143 if issue.total_estimated_hours == issue.estimated_hours
144 144 l_hours_short(issue.estimated_hours)
145 145 else
146 146 s = issue.estimated_hours.present? ? l_hours_short(issue.estimated_hours) : ""
147 147 s << " (#{l(:label_total)}: #{l_hours_short(issue.total_estimated_hours)})"
148 148 s.html_safe
149 149 end
150 150 end
151 151 end
152 152
153 153 def issue_spent_hours_details(issue)
154 154 if issue.total_spent_hours > 0
155 155 path = project_time_entries_path(issue.project, :issue_id => "~#{issue.id}")
156 156
157 157 if issue.total_spent_hours == issue.spent_hours
158 158 link_to(l_hours_short(issue.spent_hours), path)
159 159 else
160 160 s = issue.spent_hours > 0 ? l_hours_short(issue.spent_hours) : ""
161 161 s << " (#{l(:label_total)}: #{link_to l_hours_short(issue.total_spent_hours), path})"
162 162 s.html_safe
163 163 end
164 164 end
165 165 end
166 166
167 167 # Returns an array of error messages for bulk edited issues
168 168 def bulk_edit_error_messages(issues)
169 169 messages = {}
170 170 issues.each do |issue|
171 171 issue.errors.full_messages.each do |message|
172 172 messages[message] ||= []
173 173 messages[message] << issue
174 174 end
175 175 end
176 176 messages.map { |message, issues|
177 177 "#{message}: " + issues.map {|i| "##{i.id}"}.join(', ')
178 178 }
179 179 end
180 180
181 181 # Returns a link for adding a new subtask to the given issue
182 182 def link_to_new_subtask(issue)
183 183 attrs = {
184 184 :parent_issue_id => issue
185 185 }
186 186 attrs[:tracker_id] = issue.tracker unless issue.tracker.disabled_core_fields.include?('parent_issue_id')
187 187 link_to(l(:button_add), new_project_issue_path(issue.project, :issue => attrs))
188 188 end
189 189
190 190 def trackers_options_for_select(issue)
191 191 trackers = issue.allowed_target_trackers
192 192 if issue.new_record? && issue.parent_issue_id.present?
193 193 trackers = trackers.reject do |tracker|
194 194 issue.tracker_id != tracker.id && tracker.disabled_core_fields.include?('parent_issue_id')
195 195 end
196 196 end
197 197 trackers.collect {|t| [t.name, t.id]}
198 198 end
199 199
200 200 class IssueFieldsRows
201 201 include ActionView::Helpers::TagHelper
202 202
203 203 def initialize
204 204 @left = []
205 205 @right = []
206 206 end
207 207
208 208 def left(*args)
209 209 args.any? ? @left << cells(*args) : @left
210 210 end
211 211
212 212 def right(*args)
213 213 args.any? ? @right << cells(*args) : @right
214 214 end
215 215
216 216 def size
217 217 @left.size > @right.size ? @left.size : @right.size
218 218 end
219 219
220 220 def to_html
221 221 content =
222 222 content_tag('div', @left.reduce(&:+), :class => 'splitcontentleft') +
223 223 content_tag('div', @right.reduce(&:+), :class => 'splitcontentleft')
224 224
225 225 content_tag('div', content, :class => 'splitcontent')
226 226 end
227 227
228 228 def cells(label, text, options={})
229 229 options[:class] = [options[:class] || "", 'attribute'].join(' ')
230 230 content_tag 'div',
231 231 content_tag('div', label + ":", :class => 'label') + content_tag('div', text, :class => 'value'),
232 232 options
233 233 end
234 234 end
235 235
236 236 def issue_fields_rows
237 237 r = IssueFieldsRows.new
238 238 yield r
239 239 r.to_html
240 240 end
241 241
242 def render_custom_fields_rows(issue)
243 values = issue.visible_custom_field_values
242 def render_half_width_custom_fields_rows(issue)
243 values = issue.visible_custom_field_values.reject {|value| value.custom_field.full_width_layout?}
244 244 return if values.empty?
245 245 half = (values.size / 2.0).ceil
246 246 issue_fields_rows do |rows|
247 247 values.each_with_index do |value, i|
248 248 css = "cf_#{value.custom_field.id}"
249 249 m = (i < half ? :left : :right)
250 250 rows.send m, custom_field_name_tag(value.custom_field), show_value(value), :class => css
251 251 end
252 252 end
253 253 end
254 254
255 def render_full_width_custom_fields_rows(issue)
256 values = issue.visible_custom_field_values.select {|value| value.custom_field.full_width_layout?}
257 return if values.empty?
258
259 s = ''
260 values.each_with_index do |value, i|
261 if value.custom_field.text_formatting == 'full'
262 attr_value = content_tag('div', show_value(value), class: 'wiki')
263 else
264 attr_value = show_value(value)
265 end
266 content =
267 content_tag('hr') +
268 content_tag('p', content_tag('strong', custom_field_name_tag(value.custom_field) )) +
269 content_tag('div', attr_value, class: 'value')
270 s << content_tag('div', content, class: "cf_#{value.custom_field.id} attribute")
271 end
272 s.html_safe
273 end
274
255 275 # Returns the path for updating the issue form
256 276 # with project as the current project
257 277 def update_issue_form_path(project, issue)
258 278 options = {:format => 'js'}
259 279 if issue.new_record?
260 280 if project
261 281 new_project_issue_path(project, options)
262 282 else
263 283 new_issue_path(options)
264 284 end
265 285 else
266 286 edit_issue_path(issue, options)
267 287 end
268 288 end
269 289
270 290 # Returns the number of descendants for an array of issues
271 291 def issues_descendant_count(issues)
272 292 ids = issues.reject(&:leaf?).map {|issue| issue.descendants.ids}.flatten.uniq
273 293 ids -= issues.map(&:id)
274 294 ids.size
275 295 end
276 296
277 297 def issues_destroy_confirmation_message(issues)
278 298 issues = [issues] unless issues.is_a?(Array)
279 299 message = l(:text_issues_destroy_confirmation)
280 300
281 301 descendant_count = issues_descendant_count(issues)
282 302 if descendant_count > 0
283 303 message << "\n" + l(:text_issues_destroy_descendants_confirmation, :count => descendant_count)
284 304 end
285 305 message
286 306 end
287 307
288 308 # Returns an array of users that are proposed as watchers
289 309 # on the new issue form
290 310 def users_for_new_issue_watchers(issue)
291 311 users = issue.watcher_users
292 312 if issue.project.users.count <= 20
293 313 users = (users + issue.project.users.sort).uniq
294 314 end
295 315 users
296 316 end
297 317
298 318 def email_issue_attributes(issue, user, html)
299 319 items = []
300 320 %w(author status priority assigned_to category fixed_version).each do |attribute|
301 321 unless issue.disabled_core_fields.include?(attribute+"_id")
302 322 if html
303 323 items << content_tag('strong', "#{l("field_#{attribute}")}: ") + (issue.send attribute)
304 324 else
305 325 items << "#{l("field_#{attribute}")}: #{issue.send attribute}"
306 326 end
307 327 end
308 328 end
309 329 issue.visible_custom_field_values(user).each do |value|
310 330 if html
311 331 items << content_tag('strong', "#{value.custom_field.name}: ") + show_value(value, false)
312 332 else
313 333 items << "#{value.custom_field.name}: #{show_value(value, false)}"
314 334 end
315 335 end
316 336 items
317 337 end
318 338
319 339 def render_email_issue_attributes(issue, user, html=false)
320 340 items = email_issue_attributes(issue, user, html)
321 341 if html
322 342 content_tag('ul', items.map{|s| content_tag('li', s)}.join("\n").html_safe, :class => "details")
323 343 else
324 344 items.map{|s| "* #{s}"}.join("\n")
325 345 end
326 346 end
327 347
328 348 # Returns the textual representation of a journal details
329 349 # as an array of strings
330 350 def details_to_strings(details, no_html=false, options={})
331 351 options[:only_path] = (options[:only_path] == false ? false : true)
332 352 strings = []
333 353 values_by_field = {}
334 354 details.each do |detail|
335 355 if detail.property == 'cf'
336 356 field = detail.custom_field
337 357 if field && field.multiple?
338 358 values_by_field[field] ||= {:added => [], :deleted => []}
339 359 if detail.old_value
340 360 values_by_field[field][:deleted] << detail.old_value
341 361 end
342 362 if detail.value
343 363 values_by_field[field][:added] << detail.value
344 364 end
345 365 next
346 366 end
347 367 end
348 368 strings << show_detail(detail, no_html, options)
349 369 end
350 370 if values_by_field.present?
351 371 multiple_values_detail = Struct.new(:property, :prop_key, :custom_field, :old_value, :value)
352 372 values_by_field.each do |field, changes|
353 373 if changes[:added].any?
354 374 detail = multiple_values_detail.new('cf', field.id.to_s, field)
355 375 detail.value = changes[:added]
356 376 strings << show_detail(detail, no_html, options)
357 377 end
358 378 if changes[:deleted].any?
359 379 detail = multiple_values_detail.new('cf', field.id.to_s, field)
360 380 detail.old_value = changes[:deleted]
361 381 strings << show_detail(detail, no_html, options)
362 382 end
363 383 end
364 384 end
365 385 strings
366 386 end
367 387
368 388 # Returns the textual representation of a single journal detail
369 389 def show_detail(detail, no_html=false, options={})
370 390 multiple = false
371 391 show_diff = false
372 392 no_details = false
373 393
374 394 case detail.property
375 395 when 'attr'
376 396 field = detail.prop_key.to_s.gsub(/\_id$/, "")
377 397 label = l(("field_" + field).to_sym)
378 398 case detail.prop_key
379 399 when 'due_date', 'start_date'
380 400 value = format_date(detail.value.to_date) if detail.value
381 401 old_value = format_date(detail.old_value.to_date) if detail.old_value
382 402
383 403 when 'project_id', 'status_id', 'tracker_id', 'assigned_to_id',
384 404 'priority_id', 'category_id', 'fixed_version_id'
385 405 value = find_name_by_reflection(field, detail.value)
386 406 old_value = find_name_by_reflection(field, detail.old_value)
387 407
388 408 when 'estimated_hours'
389 409 value = l_hours_short(detail.value.to_f) unless detail.value.blank?
390 410 old_value = l_hours_short(detail.old_value.to_f) unless detail.old_value.blank?
391 411
392 412 when 'parent_id'
393 413 label = l(:field_parent_issue)
394 414 value = "##{detail.value}" unless detail.value.blank?
395 415 old_value = "##{detail.old_value}" unless detail.old_value.blank?
396 416
397 417 when 'is_private'
398 418 value = l(detail.value == "0" ? :general_text_No : :general_text_Yes) unless detail.value.blank?
399 419 old_value = l(detail.old_value == "0" ? :general_text_No : :general_text_Yes) unless detail.old_value.blank?
400 420
401 421 when 'description'
402 422 show_diff = true
403 423 end
404 424 when 'cf'
405 425 custom_field = detail.custom_field
406 426 if custom_field
407 427 label = custom_field.name
408 428 if custom_field.format.class.change_no_details
409 429 no_details = true
410 430 elsif custom_field.format.class.change_as_diff
411 431 show_diff = true
412 432 else
413 433 multiple = custom_field.multiple?
414 434 value = format_value(detail.value, custom_field) if detail.value
415 435 old_value = format_value(detail.old_value, custom_field) if detail.old_value
416 436 end
417 437 end
418 438 when 'attachment'
419 439 label = l(:label_attachment)
420 440 when 'relation'
421 441 if detail.value && !detail.old_value
422 442 rel_issue = Issue.visible.find_by_id(detail.value)
423 443 value = rel_issue.nil? ? "#{l(:label_issue)} ##{detail.value}" :
424 444 (no_html ? rel_issue : link_to_issue(rel_issue, :only_path => options[:only_path]))
425 445 elsif detail.old_value && !detail.value
426 446 rel_issue = Issue.visible.find_by_id(detail.old_value)
427 447 old_value = rel_issue.nil? ? "#{l(:label_issue)} ##{detail.old_value}" :
428 448 (no_html ? rel_issue : link_to_issue(rel_issue, :only_path => options[:only_path]))
429 449 end
430 450 relation_type = IssueRelation::TYPES[detail.prop_key]
431 451 label = l(relation_type[:name]) if relation_type
432 452 end
433 453 call_hook(:helper_issues_show_detail_after_setting,
434 454 {:detail => detail, :label => label, :value => value, :old_value => old_value })
435 455
436 456 label ||= detail.prop_key
437 457 value ||= detail.value
438 458 old_value ||= detail.old_value
439 459
440 460 unless no_html
441 461 label = content_tag('strong', label)
442 462 old_value = content_tag("i", h(old_value)) if detail.old_value
443 463 if detail.old_value && detail.value.blank? && detail.property != 'relation'
444 464 old_value = content_tag("del", old_value)
445 465 end
446 466 if detail.property == 'attachment' && value.present? &&
447 467 atta = detail.journal.journalized.attachments.detect {|a| a.id == detail.prop_key.to_i}
448 468 # Link to the attachment if it has not been removed
449 469 value = link_to_attachment(atta, :download => true, :only_path => options[:only_path])
450 470 if options[:only_path] != false && (atta.is_text? || atta.is_image?)
451 471 value += ' '
452 472 value += link_to(l(:button_view),
453 473 { :controller => 'attachments', :action => 'show',
454 474 :id => atta, :filename => atta.filename },
455 475 :class => 'icon-only icon-magnifier',
456 476 :title => l(:button_view))
457 477 end
458 478 else
459 479 value = content_tag("i", h(value)) if value
460 480 end
461 481 end
462 482
463 483 if no_details
464 484 s = l(:text_journal_changed_no_detail, :label => label).html_safe
465 485 elsif show_diff
466 486 s = l(:text_journal_changed_no_detail, :label => label)
467 487 unless no_html
468 488 diff_link = link_to 'diff',
469 489 diff_journal_url(detail.journal_id, :detail_id => detail.id, :only_path => options[:only_path]),
470 490 :title => l(:label_view_diff)
471 491 s << " (#{ diff_link })"
472 492 end
473 493 s.html_safe
474 494 elsif detail.value.present?
475 495 case detail.property
476 496 when 'attr', 'cf'
477 497 if detail.old_value.present?
478 498 l(:text_journal_changed, :label => label, :old => old_value, :new => value).html_safe
479 499 elsif multiple
480 500 l(:text_journal_added, :label => label, :value => value).html_safe
481 501 else
482 502 l(:text_journal_set_to, :label => label, :value => value).html_safe
483 503 end
484 504 when 'attachment', 'relation'
485 505 l(:text_journal_added, :label => label, :value => value).html_safe
486 506 end
487 507 else
488 508 l(:text_journal_deleted, :label => label, :old => old_value).html_safe
489 509 end
490 510 end
491 511
492 512 # Find the name of an associated record stored in the field attribute
493 513 def find_name_by_reflection(field, id)
494 514 unless id.present?
495 515 return nil
496 516 end
497 517 @detail_value_name_by_reflection ||= Hash.new do |hash, key|
498 518 association = Issue.reflect_on_association(key.first.to_sym)
499 519 name = nil
500 520 if association
501 521 record = association.klass.find_by_id(key.last)
502 522 if record
503 523 name = record.name.force_encoding('UTF-8')
504 524 end
505 525 end
506 526 hash[key] = name
507 527 end
508 528 @detail_value_name_by_reflection[[field, id]]
509 529 end
510 530
511 531 # Renders issue children recursively
512 532 def render_api_issue_children(issue, api)
513 533 return if issue.leaf?
514 534 api.array :children do
515 535 issue.children.each do |child|
516 536 api.issue(:id => child.id) do
517 537 api.tracker(:id => child.tracker_id, :name => child.tracker.name) unless child.tracker.nil?
518 538 api.subject child.subject
519 539 render_api_issue_children(child, api)
520 540 end
521 541 end
522 542 end
523 543 end
524 544 end
@@ -1,328 +1,333
1 1 # Redmine - project management software
2 2 # Copyright (C) 2006-2016 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 class CustomField < ActiveRecord::Base
19 19 include Redmine::SafeAttributes
20 20 include Redmine::SubclassFactory
21 21
22 22 has_many :enumerations,
23 23 lambda { order(:position) },
24 24 :class_name => 'CustomFieldEnumeration',
25 25 :dependent => :delete_all
26 26 has_many :custom_values, :dependent => :delete_all
27 27 has_and_belongs_to_many :roles, :join_table => "#{table_name_prefix}custom_fields_roles#{table_name_suffix}", :foreign_key => "custom_field_id"
28 28 acts_as_positioned
29 29 serialize :possible_values
30 30 store :format_store
31 31
32 32 validates_presence_of :name, :field_format
33 33 validates_uniqueness_of :name, :scope => :type
34 34 validates_length_of :name, :maximum => 30
35 35 validates_length_of :regexp, maximum: 255
36 36 validates_inclusion_of :field_format, :in => Proc.new { Redmine::FieldFormat.available_formats }
37 37 validate :validate_custom_field
38 38 attr_protected :id
39 39
40 40 before_validation :set_searchable
41 41 before_save do |field|
42 42 field.format.before_custom_field_save(field)
43 43 end
44 44 after_save :handle_multiplicity_change
45 45 after_save do |field|
46 46 if field.visible_changed? && field.visible
47 47 field.roles.clear
48 48 end
49 49 end
50 50
51 51 scope :sorted, lambda { order(:position) }
52 52 scope :visible, lambda {|*args|
53 53 user = args.shift || User.current
54 54 if user.admin?
55 55 # nop
56 56 elsif user.memberships.any?
57 57 where("#{table_name}.visible = ? OR #{table_name}.id IN (SELECT DISTINCT cfr.custom_field_id FROM #{Member.table_name} m" +
58 58 " INNER JOIN #{MemberRole.table_name} mr ON mr.member_id = m.id" +
59 59 " INNER JOIN #{table_name_prefix}custom_fields_roles#{table_name_suffix} cfr ON cfr.role_id = mr.role_id" +
60 60 " WHERE m.user_id = ?)",
61 61 true, user.id)
62 62 else
63 63 where(:visible => true)
64 64 end
65 65 }
66 66 def visible_by?(project, user=User.current)
67 67 visible? || user.admin?
68 68 end
69 69
70 70 safe_attributes 'name',
71 71 'field_format',
72 72 'possible_values',
73 73 'regexp',
74 74 'min_lnegth',
75 75 'max_length',
76 76 'is_required',
77 77 'is_for_all',
78 78 'is_filter',
79 79 'position',
80 80 'searchable',
81 81 'default_value',
82 82 'editable',
83 83 'visible',
84 84 'multiple',
85 85 'description',
86 86 'role_ids',
87 87 'url_pattern',
88 88 'text_formatting',
89 89 'edit_tag_style',
90 90 'user_role',
91 91 'version_status',
92 'extensions_allowed'
92 'extensions_allowed',
93 'full_width_layout'
93 94
94 95 def format
95 96 @format ||= Redmine::FieldFormat.find(field_format)
96 97 end
97 98
98 99 def field_format=(arg)
99 100 # cannot change format of a saved custom field
100 101 if new_record?
101 102 @format = nil
102 103 super
103 104 end
104 105 end
105 106
106 107 def set_searchable
107 108 # make sure these fields are not searchable
108 109 self.searchable = false unless format.class.searchable_supported
109 110 # make sure only these fields can have multiple values
110 111 self.multiple = false unless format.class.multiple_supported
111 112 true
112 113 end
113 114
114 115 def validate_custom_field
115 116 format.validate_custom_field(self).each do |attribute, message|
116 117 errors.add attribute, message
117 118 end
118 119
119 120 if regexp.present?
120 121 begin
121 122 Regexp.new(regexp)
122 123 rescue
123 124 errors.add(:regexp, :invalid)
124 125 end
125 126 end
126 127
127 128 if default_value.present?
128 129 validate_field_value(default_value).each do |message|
129 130 errors.add :default_value, message
130 131 end
131 132 end
132 133 end
133 134
134 135 def possible_custom_value_options(custom_value)
135 136 format.possible_custom_value_options(custom_value)
136 137 end
137 138
138 139 def possible_values_options(object=nil)
139 140 if object.is_a?(Array)
140 141 object.map {|o| format.possible_values_options(self, o)}.reduce(:&) || []
141 142 else
142 143 format.possible_values_options(self, object) || []
143 144 end
144 145 end
145 146
146 147 def possible_values
147 148 values = read_attribute(:possible_values)
148 149 if values.is_a?(Array)
149 150 values.each do |value|
150 151 value.to_s.force_encoding('UTF-8')
151 152 end
152 153 values
153 154 else
154 155 []
155 156 end
156 157 end
157 158
158 159 # Makes possible_values accept a multiline string
159 160 def possible_values=(arg)
160 161 if arg.is_a?(Array)
161 162 values = arg.compact.map {|a| a.to_s.strip}.reject(&:blank?)
162 163 write_attribute(:possible_values, values)
163 164 else
164 165 self.possible_values = arg.to_s.split(/[\n\r]+/)
165 166 end
166 167 end
167 168
168 169 def set_custom_field_value(custom_field_value, value)
169 170 format.set_custom_field_value(self, custom_field_value, value)
170 171 end
171 172
172 173 def cast_value(value)
173 174 format.cast_value(self, value)
174 175 end
175 176
176 177 def value_from_keyword(keyword, customized)
177 178 format.value_from_keyword(self, keyword, customized)
178 179 end
179 180
180 181 # Returns the options hash used to build a query filter for the field
181 182 def query_filter_options(query)
182 183 format.query_filter_options(self, query)
183 184 end
184 185
185 186 def totalable?
186 187 format.totalable_supported
187 188 end
188 189
190 def full_width_layout?
191 full_width_layout == '1'
192 end
193
189 194 # Returns a ORDER BY clause that can used to sort customized
190 195 # objects by their value of the custom field.
191 196 # Returns nil if the custom field can not be used for sorting.
192 197 def order_statement
193 198 return nil if multiple?
194 199 format.order_statement(self)
195 200 end
196 201
197 202 # Returns a GROUP BY clause that can used to group by custom value
198 203 # Returns nil if the custom field can not be used for grouping.
199 204 def group_statement
200 205 return nil if multiple?
201 206 format.group_statement(self)
202 207 end
203 208
204 209 def join_for_order_statement
205 210 format.join_for_order_statement(self)
206 211 end
207 212
208 213 def visibility_by_project_condition(project_key=nil, user=User.current, id_column=nil)
209 214 if visible? || user.admin?
210 215 "1=1"
211 216 elsif user.anonymous?
212 217 "1=0"
213 218 else
214 219 project_key ||= "#{self.class.customized_class.table_name}.project_id"
215 220 id_column ||= id
216 221 "#{project_key} IN (SELECT DISTINCT m.project_id FROM #{Member.table_name} m" +
217 222 " INNER JOIN #{MemberRole.table_name} mr ON mr.member_id = m.id" +
218 223 " INNER JOIN #{table_name_prefix}custom_fields_roles#{table_name_suffix} cfr ON cfr.role_id = mr.role_id" +
219 224 " WHERE m.user_id = #{user.id} AND cfr.custom_field_id = #{id_column})"
220 225 end
221 226 end
222 227
223 228 def self.visibility_condition
224 229 if user.admin?
225 230 "1=1"
226 231 elsif user.anonymous?
227 232 "#{table_name}.visible"
228 233 else
229 234 "#{project_key} IN (SELECT DISTINCT m.project_id FROM #{Member.table_name} m" +
230 235 " INNER JOIN #{MemberRole.table_name} mr ON mr.member_id = m.id" +
231 236 " INNER JOIN #{table_name_prefix}custom_fields_roles#{table_name_suffix} cfr ON cfr.role_id = mr.role_id" +
232 237 " WHERE m.user_id = #{user.id} AND cfr.custom_field_id = #{id})"
233 238 end
234 239 end
235 240
236 241 def <=>(field)
237 242 position <=> field.position
238 243 end
239 244
240 245 # Returns the class that values represent
241 246 def value_class
242 247 format.target_class if format.respond_to?(:target_class)
243 248 end
244 249
245 250 def self.customized_class
246 251 self.name =~ /^(.+)CustomField$/
247 252 $1.constantize rescue nil
248 253 end
249 254
250 255 # to move in project_custom_field
251 256 def self.for_all
252 257 where(:is_for_all => true).order(:position).to_a
253 258 end
254 259
255 260 def type_name
256 261 nil
257 262 end
258 263
259 264 # Returns the error messages for the given value
260 265 # or an empty array if value is a valid value for the custom field
261 266 def validate_custom_value(custom_value)
262 267 value = custom_value.value
263 268 errs = format.validate_custom_value(custom_value)
264 269
265 270 unless errs.any?
266 271 if value.is_a?(Array)
267 272 if !multiple?
268 273 errs << ::I18n.t('activerecord.errors.messages.invalid')
269 274 end
270 275 if is_required? && value.detect(&:present?).nil?
271 276 errs << ::I18n.t('activerecord.errors.messages.blank')
272 277 end
273 278 else
274 279 if is_required? && value.blank?
275 280 errs << ::I18n.t('activerecord.errors.messages.blank')
276 281 end
277 282 end
278 283 end
279 284
280 285 errs
281 286 end
282 287
283 288 # Returns the error messages for the default custom field value
284 289 def validate_field_value(value)
285 290 validate_custom_value(CustomFieldValue.new(:custom_field => self, :value => value))
286 291 end
287 292
288 293 # Returns true if value is a valid value for the custom field
289 294 def valid_field_value?(value)
290 295 validate_field_value(value).empty?
291 296 end
292 297
293 298 def after_save_custom_value(custom_value)
294 299 format.after_save_custom_value(self, custom_value)
295 300 end
296 301
297 302 def format_in?(*args)
298 303 args.include?(field_format)
299 304 end
300 305
301 306 def self.human_attribute_name(attribute_key_name, *args)
302 307 attr_name = attribute_key_name.to_s
303 308 if attr_name == 'url_pattern'
304 309 attr_name = "url"
305 310 end
306 311 super(attr_name, *args)
307 312 end
308 313
309 314 protected
310 315
311 316 # Removes multiple values for the custom field after setting the multiple attribute to false
312 317 # We kepp the value with the highest id for each customized object
313 318 def handle_multiplicity_change
314 319 if !new_record? && multiple_was && !multiple
315 320 ids = custom_values.
316 321 where("EXISTS(SELECT 1 FROM #{CustomValue.table_name} cve WHERE cve.custom_field_id = #{CustomValue.table_name}.custom_field_id" +
317 322 " AND cve.customized_type = #{CustomValue.table_name}.customized_type AND cve.customized_id = #{CustomValue.table_name}.customized_id" +
318 323 " AND cve.id > #{CustomValue.table_name}.id)").
319 324 pluck(:id)
320 325
321 326 if ids.any?
322 327 custom_values.where(:id => ids).delete_all
323 328 end
324 329 end
325 330 end
326 331 end
327 332
328 333 require_dependency 'redmine/field_format'
@@ -1,3 +1,6
1 1 <%= render :partial => 'custom_fields/formats/regexp', :locals => {:f => f, :custom_field => custom_field} %>
2 2 <p><%= f.check_box :text_formatting, {:label => :setting_text_formatting}, 'full', '' %></p>
3 <% if @custom_field.class.name == "IssueCustomField" %>
4 <p><%= f.check_box :full_width_layout %></p>
5 <% end %>
3 6 <p><%= f.text_area(:default_value, :rows => 5) %></p>
@@ -1,16 +1,23
1 1 <% custom_field_values = @issue.editable_custom_field_values %>
2 <% custom_field_values_full_width = custom_field_values.select { |value| value.custom_field.full_width_layout? } %>
3 <% custom_field_values -= custom_field_values_full_width %>
4
2 5 <% if custom_field_values.present? %>
3 6 <div class="splitcontent">
4 7 <div class="splitcontentleft">
5 8 <% i = 0 %>
6 9 <% split_on = (custom_field_values.size / 2.0).ceil - 1 %>
7 10 <% custom_field_values.each do |value| %>
8 11 <p><%= custom_field_tag_with_label :issue, value, :required => @issue.required_attribute?(value.custom_field_id) %></p>
9 12 <% if i == split_on -%>
10 13 </div><div class="splitcontentright">
11 14 <% end -%>
12 15 <% i += 1 -%>
13 16 <% end -%>
14 17 </div>
15 18 </div>
16 19 <% end %>
20
21 <% custom_field_values_full_width.each do |value| %>
22 <p><%= custom_field_tag_with_label :issue, value, :required => @issue.required_attribute?(value.custom_field_id) %></p>
23 <% end %>
@@ -1,162 +1,164
1 1 <%= render :partial => 'action_menu' %>
2 2
3 3 <h2><%= issue_heading(@issue) %></h2>
4 4
5 5 <div class="<%= @issue.css_classes %> details">
6 6 <% if @prev_issue_id || @next_issue_id %>
7 7 <div class="next-prev-links contextual">
8 8 <%= link_to_if @prev_issue_id,
9 9 "\xc2\xab #{l(:label_previous)}",
10 10 (@prev_issue_id ? issue_path(@prev_issue_id) : nil),
11 11 :title => "##{@prev_issue_id}",
12 12 :accesskey => accesskey(:previous) %> |
13 13 <% if @issue_position && @issue_count %>
14 14 <span class="position"><%= l(:label_item_position, :position => @issue_position, :count => @issue_count) %></span> |
15 15 <% end %>
16 16 <%= link_to_if @next_issue_id,
17 17 "#{l(:label_next)} \xc2\xbb",
18 18 (@next_issue_id ? issue_path(@next_issue_id) : nil),
19 19 :title => "##{@next_issue_id}",
20 20 :accesskey => accesskey(:next) %>
21 21 </div>
22 22 <% end %>
23 23
24 24 <%= avatar(@issue.author, :size => "50") %>
25 25
26 26 <div class="subject">
27 27 <%= render_issue_subject_with_tree(@issue) %>
28 28 </div>
29 29 <p class="author">
30 30 <%= authoring @issue.created_on, @issue.author %>.
31 31 <% if @issue.created_on != @issue.updated_on %>
32 32 <%= l(:label_updated_time, time_tag(@issue.updated_on)).html_safe %>.
33 33 <% end %>
34 34 </p>
35 35
36 36 <div class="attributes">
37 37 <%= issue_fields_rows do |rows|
38 38 rows.left l(:field_status), @issue.status.name, :class => 'status'
39 39 rows.left l(:field_priority), @issue.priority.name, :class => 'priority'
40 40
41 41 unless @issue.disabled_core_fields.include?('assigned_to_id')
42 42 rows.left l(:field_assigned_to), avatar(@issue.assigned_to, :size => "14").to_s.html_safe + (@issue.assigned_to ? link_to_user(@issue.assigned_to) : "-"), :class => 'assigned-to'
43 43 end
44 44 unless @issue.disabled_core_fields.include?('category_id') || (@issue.category.nil? && @issue.project.issue_categories.none?)
45 45 rows.left l(:field_category), (@issue.category ? @issue.category.name : "-"), :class => 'category'
46 46 end
47 47 unless @issue.disabled_core_fields.include?('fixed_version_id') || (@issue.fixed_version.nil? && @issue.assignable_versions.none?)
48 48 rows.left l(:field_fixed_version), (@issue.fixed_version ? link_to_version(@issue.fixed_version) : "-"), :class => 'fixed-version'
49 49 end
50 50
51 51 unless @issue.disabled_core_fields.include?('start_date')
52 52 rows.right l(:field_start_date), format_date(@issue.start_date), :class => 'start-date'
53 53 end
54 54 unless @issue.disabled_core_fields.include?('due_date')
55 55 rows.right l(:field_due_date), format_date(@issue.due_date), :class => 'due-date'
56 56 end
57 57 unless @issue.disabled_core_fields.include?('done_ratio')
58 58 rows.right l(:field_done_ratio), progress_bar(@issue.done_ratio, :legend => "#{@issue.done_ratio}%"), :class => 'progress'
59 59 end
60 60 unless @issue.disabled_core_fields.include?('estimated_hours')
61 61 rows.right l(:field_estimated_hours), issue_estimated_hours_details(@issue), :class => 'estimated-hours'
62 62 end
63 63 if User.current.allowed_to_view_all_time_entries?(@project)
64 64 if @issue.total_spent_hours > 0
65 65 rows.right l(:label_spent_time), issue_spent_hours_details(@issue), :class => 'spent-time'
66 66 end
67 67 end
68 68 end %>
69 <%= render_custom_fields_rows(@issue) %>
69 <%= render_half_width_custom_fields_rows(@issue) %>
70 70 <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
71 71 </div>
72 72
73 73 <% if @issue.description? || @issue.attachments.any? -%>
74 74 <hr />
75 75 <% if @issue.description? %>
76 76 <div class="description">
77 77 <div class="contextual">
78 78 <%= link_to l(:button_quote), quoted_issue_path(@issue), :remote => true, :method => 'post', :class => 'icon icon-comment' if @issue.notes_addable? %>
79 79 </div>
80 80
81 81 <p><strong><%=l(:field_description)%></strong></p>
82 82 <div class="wiki">
83 83 <%= textilizable @issue, :description, :attachments => @issue.attachments %>
84 84 </div>
85 85 </div>
86 86 <% end %>
87 87 <%= link_to_attachments @issue, :thumbnails => true %>
88 88 <% end -%>
89 89
90 <%= render_full_width_custom_fields_rows(@issue) %>
91
90 92 <%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %>
91 93
92 94 <% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %>
93 95 <hr />
94 96 <div id="issue_tree">
95 97 <div class="contextual">
96 98 <%= link_to_new_subtask(@issue) if User.current.allowed_to?(:manage_subtasks, @project) %>
97 99 </div>
98 100 <p><strong><%=l(:label_subtask_plural)%></strong></p>
99 101 <%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do %>
100 102 <%= render_descendants_tree(@issue) unless @issue.leaf? %>
101 103 <% end %>
102 104 </div>
103 105 <% end %>
104 106
105 107 <% if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %>
106 108 <hr />
107 109 <div id="relations">
108 110 <%= render :partial => 'relations' %>
109 111 </div>
110 112 <% end %>
111 113
112 114 </div>
113 115
114 116 <% if @changesets.present? %>
115 117 <div id="issue-changesets">
116 118 <h3><%=l(:label_associated_revisions)%></h3>
117 119 <%= render :partial => 'changesets', :locals => { :changesets => @changesets} %>
118 120 </div>
119 121 <% end %>
120 122
121 123 <% if @journals.present? %>
122 124 <div id="history">
123 125 <h3><%=l(:label_history)%></h3>
124 126 <%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %>
125 127 </div>
126 128 <% end %>
127 129
128 130
129 131 <div style="clear: both;"></div>
130 132 <%= render :partial => 'action_menu' %>
131 133
132 134 <div style="clear: both;"></div>
133 135 <% if @issue.editable? %>
134 136 <div id="update" style="display:none;">
135 137 <h3><%= l(:button_edit) %></h3>
136 138 <%= render :partial => 'edit' %>
137 139 </div>
138 140 <% end %>
139 141
140 142 <% other_formats_links do |f| %>
141 143 <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
142 144 <%= f.link_to 'PDF' %>
143 145 <% end %>
144 146
145 147 <% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>
146 148
147 149 <% content_for :sidebar do %>
148 150 <%= render :partial => 'issues/sidebar' %>
149 151
150 152 <% if User.current.allowed_to?(:add_issue_watchers, @project) ||
151 153 (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %>
152 154 <div id="watchers">
153 155 <%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %>
154 156 </div>
155 157 <% end %>
156 158 <% end %>
157 159
158 160 <% content_for :header_tags do %>
159 161 <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %>
160 162 <% end %>
161 163
162 164 <%= context_menu %>
@@ -1,1211 +1,1212
1 1 en:
2 2 # Text direction: Left-to-Right (ltr) or Right-to-Left (rtl)
3 3 direction: ltr
4 4 date:
5 5 formats:
6 6 # Use the strftime parameters for formats.
7 7 # When no format has been given, it uses default.
8 8 # You can provide other formats here if you like!
9 9 default: "%m/%d/%Y"
10 10 short: "%b %d"
11 11 long: "%B %d, %Y"
12 12
13 13 day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
14 14 abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
15 15
16 16 # Don't forget the nil at the beginning; there's no such thing as a 0th month
17 17 month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December]
18 18 abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
19 19 # Used in date_select and datime_select.
20 20 order:
21 21 - :year
22 22 - :month
23 23 - :day
24 24
25 25 time:
26 26 formats:
27 27 default: "%m/%d/%Y %I:%M %p"
28 28 time: "%I:%M %p"
29 29 short: "%d %b %H:%M"
30 30 long: "%B %d, %Y %H:%M"
31 31 am: "am"
32 32 pm: "pm"
33 33
34 34 datetime:
35 35 distance_in_words:
36 36 half_a_minute: "half a minute"
37 37 less_than_x_seconds:
38 38 one: "less than 1 second"
39 39 other: "less than %{count} seconds"
40 40 x_seconds:
41 41 one: "1 second"
42 42 other: "%{count} seconds"
43 43 less_than_x_minutes:
44 44 one: "less than a minute"
45 45 other: "less than %{count} minutes"
46 46 x_minutes:
47 47 one: "1 minute"
48 48 other: "%{count} minutes"
49 49 about_x_hours:
50 50 one: "about 1 hour"
51 51 other: "about %{count} hours"
52 52 x_hours:
53 53 one: "1 hour"
54 54 other: "%{count} hours"
55 55 x_days:
56 56 one: "1 day"
57 57 other: "%{count} days"
58 58 about_x_months:
59 59 one: "about 1 month"
60 60 other: "about %{count} months"
61 61 x_months:
62 62 one: "1 month"
63 63 other: "%{count} months"
64 64 about_x_years:
65 65 one: "about 1 year"
66 66 other: "about %{count} years"
67 67 over_x_years:
68 68 one: "over 1 year"
69 69 other: "over %{count} years"
70 70 almost_x_years:
71 71 one: "almost 1 year"
72 72 other: "almost %{count} years"
73 73
74 74 number:
75 75 format:
76 76 separator: "."
77 77 delimiter: ""
78 78 precision: 3
79 79
80 80 human:
81 81 format:
82 82 delimiter: ""
83 83 precision: 3
84 84 storage_units:
85 85 format: "%n %u"
86 86 units:
87 87 byte:
88 88 one: "Byte"
89 89 other: "Bytes"
90 90 kb: "KB"
91 91 mb: "MB"
92 92 gb: "GB"
93 93 tb: "TB"
94 94
95 95 # Used in array.to_sentence.
96 96 support:
97 97 array:
98 98 sentence_connector: "and"
99 99 skip_last_comma: false
100 100
101 101 activerecord:
102 102 errors:
103 103 template:
104 104 header:
105 105 one: "1 error prohibited this %{model} from being saved"
106 106 other: "%{count} errors prohibited this %{model} from being saved"
107 107 messages:
108 108 inclusion: "is not included in the list"
109 109 exclusion: "is reserved"
110 110 invalid: "is invalid"
111 111 confirmation: "doesn't match confirmation"
112 112 accepted: "must be accepted"
113 113 empty: "cannot be empty"
114 114 blank: "cannot be blank"
115 115 too_long: "is too long (maximum is %{count} characters)"
116 116 too_short: "is too short (minimum is %{count} characters)"
117 117 wrong_length: "is the wrong length (should be %{count} characters)"
118 118 taken: "has already been taken"
119 119 not_a_number: "is not a number"
120 120 not_a_date: "is not a valid date"
121 121 greater_than: "must be greater than %{count}"
122 122 greater_than_or_equal_to: "must be greater than or equal to %{count}"
123 123 equal_to: "must be equal to %{count}"
124 124 less_than: "must be less than %{count}"
125 125 less_than_or_equal_to: "must be less than or equal to %{count}"
126 126 odd: "must be odd"
127 127 even: "must be even"
128 128 greater_than_start_date: "must be greater than start date"
129 129 not_same_project: "doesn't belong to the same project"
130 130 circular_dependency: "This relation would create a circular dependency"
131 131 cant_link_an_issue_with_a_descendant: "An issue cannot be linked to one of its subtasks"
132 132 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
133 133 not_a_regexp: "is not a valid regular expression"
134 134 open_issue_with_closed_parent: "An open issue cannot be attached to a closed parent task"
135 135
136 136 actionview_instancetag_blank_option: Please select
137 137
138 138 general_text_No: 'No'
139 139 general_text_Yes: 'Yes'
140 140 general_text_no: 'no'
141 141 general_text_yes: 'yes'
142 142 general_lang_name: 'English'
143 143 general_csv_separator: ','
144 144 general_csv_decimal_separator: '.'
145 145 general_csv_encoding: ISO-8859-1
146 146 general_pdf_fontname: freesans
147 147 general_pdf_monospaced_fontname: freemono
148 148 general_first_day_of_week: '7'
149 149
150 150 notice_account_updated: Account was successfully updated.
151 151 notice_account_invalid_credentials: Invalid user or password
152 152 notice_account_password_updated: Password was successfully updated.
153 153 notice_account_wrong_password: Wrong password
154 154 notice_account_register_done: Account was successfully created. An email containing the instructions to activate your account was sent to %{email}.
155 155 notice_account_unknown_email: Unknown user.
156 156 notice_account_not_activated_yet: You haven't activated your account yet. If you want to receive a new activation email, please <a href="%{url}">click this link</a>.
157 157 notice_account_locked: Your account is locked.
158 158 notice_can_t_change_password: This account uses an external authentication source. Impossible to change the password.
159 159 notice_account_lost_email_sent: An email with instructions to choose a new password has been sent to you.
160 160 notice_account_activated: Your account has been activated. You can now log in.
161 161 notice_successful_create: Successful creation.
162 162 notice_successful_update: Successful update.
163 163 notice_successful_delete: Successful deletion.
164 164 notice_successful_connection: Successful connection.
165 165 notice_file_not_found: The page you were trying to access doesn't exist or has been removed.
166 166 notice_locking_conflict: Data has been updated by another user.
167 167 notice_not_authorized: You are not authorized to access this page.
168 168 notice_not_authorized_archived_project: The project you're trying to access has been archived.
169 169 notice_email_sent: "An email was sent to %{value}"
170 170 notice_email_error: "An error occurred while sending mail (%{value})"
171 171 notice_feeds_access_key_reseted: Your Atom access key was reset.
172 172 notice_api_access_key_reseted: Your API access key was reset.
173 173 notice_failed_to_save_issues: "Failed to save %{count} issue(s) on %{total} selected: %{ids}."
174 174 notice_failed_to_save_time_entries: "Failed to save %{count} time entrie(s) on %{total} selected: %{ids}."
175 175 notice_failed_to_save_members: "Failed to save member(s): %{errors}."
176 176 notice_no_issue_selected: "No issue is selected! Please, check the issues you want to edit."
177 177 notice_account_pending: "Your account was created and is now pending administrator approval."
178 178 notice_default_data_loaded: Default configuration successfully loaded.
179 179 notice_unable_delete_version: Unable to delete version.
180 180 notice_unable_delete_time_entry: Unable to delete time log entry.
181 181 notice_issue_done_ratios_updated: Issue done ratios updated.
182 182 notice_gantt_chart_truncated: "The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max})"
183 183 notice_issue_successful_create: "Issue %{id} created."
184 184 notice_issue_update_conflict: "The issue has been updated by an other user while you were editing it."
185 185 notice_account_deleted: "Your account has been permanently deleted."
186 186 notice_user_successful_create: "User %{id} created."
187 187 notice_new_password_must_be_different: The new password must be different from the current password
188 188 notice_import_finished: "%{count} items have been imported"
189 189 notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
190 190
191 191 error_can_t_load_default_data: "Default configuration could not be loaded: %{value}"
192 192 error_scm_not_found: "The entry or revision was not found in the repository."
193 193 error_scm_command_failed: "An error occurred when trying to access the repository: %{value}"
194 194 error_scm_annotate: "The entry does not exist or cannot be annotated."
195 195 error_scm_annotate_big_text_file: "The entry cannot be annotated, as it exceeds the maximum text file size."
196 196 error_issue_not_found_in_project: 'The issue was not found or does not belong to this project'
197 197 error_no_tracker_in_project: 'No tracker is associated to this project. Please check the Project settings.'
198 198 error_no_default_issue_status: 'No default issue status is defined. Please check your configuration (Go to "Administration -> Issue statuses").'
199 199 error_can_not_delete_custom_field: Unable to delete custom field
200 200 error_can_not_delete_tracker: "This tracker contains issues and cannot be deleted."
201 201 error_can_not_remove_role: "This role is in use and cannot be deleted."
202 202 error_can_not_reopen_issue_on_closed_version: 'An issue assigned to a closed version cannot be reopened'
203 203 error_can_not_archive_project: This project cannot be archived
204 204 error_issue_done_ratios_not_updated: "Issue done ratios not updated."
205 205 error_workflow_copy_source: 'Please select a source tracker or role'
206 206 error_workflow_copy_target: 'Please select target tracker(s) and role(s)'
207 207 error_unable_delete_issue_status: 'Unable to delete issue status'
208 208 error_unable_to_connect: "Unable to connect (%{value})"
209 209 error_attachment_too_big: "This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})"
210 210 error_session_expired: "Your session has expired. Please login again."
211 211 warning_attachments_not_saved: "%{count} file(s) could not be saved."
212 212 error_password_expired: "Your password has expired or the administrator requires you to change it."
213 213 error_invalid_file_encoding: "The file is not a valid %{encoding} encoded file"
214 214 error_invalid_csv_file_or_settings: "The file is not a CSV file or does not match the settings below"
215 215 error_can_not_read_import_file: "An error occurred while reading the file to import"
216 216 error_attachment_extension_not_allowed: "Attachment extension %{extension} is not allowed"
217 217 error_ldap_bind_credentials: "Invalid LDAP Account/Password"
218 218 error_no_tracker_allowed_for_new_issue_in_project: "The project doesn't have any trackers for which you can create an issue"
219 219 error_no_projects_with_tracker_allowed_for_new_issue: "There are no projects with trackers for which you can create an issue"
220 220 error_move_of_child_not_possible: "Subtask %{child} could not be moved to the new project: %{errors}"
221 221 error_cannot_reassign_time_entries_to_an_issue_about_to_be_deleted: "Spent time cannot be reassigned to an issue that is about to be deleted"
222 222 warning_fields_cleared_on_bulk_edit: "Changes will result in the automatic deletion of values from one or more fields on the selected objects"
223 223
224 224 mail_subject_lost_password: "Your %{value} password"
225 225 mail_body_lost_password: 'To change your password, click on the following link:'
226 226 mail_subject_register: "Your %{value} account activation"
227 227 mail_body_register: 'To activate your account, click on the following link:'
228 228 mail_body_account_information_external: "You can use your %{value} account to log in."
229 229 mail_body_account_information: Your account information
230 230 mail_subject_account_activation_request: "%{value} account activation request"
231 231 mail_body_account_activation_request: "A new user (%{value}) has registered. The account is pending your approval:"
232 232 mail_subject_reminder: "%{count} issue(s) due in the next %{days} days"
233 233 mail_body_reminder: "%{count} issue(s) that are assigned to you are due in the next %{days} days:"
234 234 mail_subject_wiki_content_added: "'%{id}' wiki page has been added"
235 235 mail_body_wiki_content_added: "The '%{id}' wiki page has been added by %{author}."
236 236 mail_subject_wiki_content_updated: "'%{id}' wiki page has been updated"
237 237 mail_body_wiki_content_updated: "The '%{id}' wiki page has been updated by %{author}."
238 238 mail_subject_security_notification: "Security notification"
239 239 mail_body_security_notification_change: "%{field} was changed."
240 240 mail_body_security_notification_change_to: "%{field} was changed to %{value}."
241 241 mail_body_security_notification_add: "%{field} %{value} was added."
242 242 mail_body_security_notification_remove: "%{field} %{value} was removed."
243 243 mail_body_security_notification_notify_enabled: "Email address %{value} now receives notifications."
244 244 mail_body_security_notification_notify_disabled: "Email address %{value} no longer receives notifications."
245 245 mail_body_settings_updated: "The following settings were changed:"
246 246 mail_body_password_updated: "Your password has been changed."
247 247
248 248 field_name: Name
249 249 field_description: Description
250 250 field_summary: Summary
251 251 field_is_required: Required
252 252 field_firstname: First name
253 253 field_lastname: Last name
254 254 field_mail: Email
255 255 field_address: Email
256 256 field_filename: File
257 257 field_filesize: Size
258 258 field_downloads: Downloads
259 259 field_author: Author
260 260 field_created_on: Created
261 261 field_updated_on: Updated
262 262 field_closed_on: Closed
263 263 field_field_format: Format
264 264 field_is_for_all: For all projects
265 265 field_possible_values: Possible values
266 266 field_regexp: Regular expression
267 267 field_min_length: Minimum length
268 268 field_max_length: Maximum length
269 269 field_value: Value
270 270 field_category: Category
271 271 field_title: Title
272 272 field_project: Project
273 273 field_issue: Issue
274 274 field_status: Status
275 275 field_notes: Notes
276 276 field_is_closed: Issue closed
277 277 field_is_default: Default value
278 278 field_tracker: Tracker
279 279 field_subject: Subject
280 280 field_due_date: Due date
281 281 field_assigned_to: Assignee
282 282 field_priority: Priority
283 283 field_fixed_version: Target version
284 284 field_user: User
285 285 field_principal: Principal
286 286 field_role: Role
287 287 field_homepage: Homepage
288 288 field_is_public: Public
289 289 field_parent: Subproject of
290 290 field_is_in_roadmap: Issues displayed in roadmap
291 291 field_login: Login
292 292 field_mail_notification: Email notifications
293 293 field_admin: Administrator
294 294 field_last_login_on: Last connection
295 295 field_language: Language
296 296 field_effective_date: Due date
297 297 field_password: Password
298 298 field_new_password: New password
299 299 field_password_confirmation: Confirmation
300 300 field_version: Version
301 301 field_type: Type
302 302 field_host: Host
303 303 field_port: Port
304 304 field_account: Account
305 305 field_base_dn: Base DN
306 306 field_attr_login: Login attribute
307 307 field_attr_firstname: Firstname attribute
308 308 field_attr_lastname: Lastname attribute
309 309 field_attr_mail: Email attribute
310 310 field_onthefly: On-the-fly user creation
311 311 field_start_date: Start date
312 312 field_done_ratio: "% Done"
313 313 field_auth_source: Authentication mode
314 314 field_hide_mail: Hide my email address
315 315 field_comments: Comment
316 316 field_url: URL
317 317 field_start_page: Start page
318 318 field_subproject: Subproject
319 319 field_hours: Hours
320 320 field_activity: Activity
321 321 field_spent_on: Date
322 322 field_identifier: Identifier
323 323 field_is_filter: Used as a filter
324 324 field_issue_to: Related issue
325 325 field_delay: Delay
326 326 field_assignable: Issues can be assigned to this role
327 327 field_redirect_existing_links: Redirect existing links
328 328 field_estimated_hours: Estimated time
329 329 field_column_names: Columns
330 330 field_time_entries: Log time
331 331 field_time_zone: Time zone
332 332 field_searchable: Searchable
333 333 field_default_value: Default value
334 334 field_comments_sorting: Display comments
335 335 field_parent_title: Parent page
336 336 field_editable: Editable
337 337 field_watcher: Watcher
338 338 field_identity_url: OpenID URL
339 339 field_content: Content
340 340 field_group_by: Group results by
341 341 field_sharing: Sharing
342 342 field_parent_issue: Parent task
343 343 field_member_of_group: "Assignee's group"
344 344 field_assigned_to_role: "Assignee's role"
345 345 field_text: Text field
346 346 field_visible: Visible
347 347 field_warn_on_leaving_unsaved: "Warn me when leaving a page with unsaved text"
348 348 field_issues_visibility: Issues visibility
349 349 field_is_private: Private
350 350 field_commit_logs_encoding: Commit messages encoding
351 351 field_scm_path_encoding: Path encoding
352 352 field_path_to_repository: Path to repository
353 353 field_root_directory: Root directory
354 354 field_cvsroot: CVSROOT
355 355 field_cvs_module: Module
356 356 field_repository_is_default: Main repository
357 357 field_multiple: Multiple values
358 358 field_auth_source_ldap_filter: LDAP filter
359 359 field_core_fields: Standard fields
360 360 field_timeout: "Timeout (in seconds)"
361 361 field_board_parent: Parent forum
362 362 field_private_notes: Private notes
363 363 field_inherit_members: Inherit members
364 364 field_generate_password: Generate password
365 365 field_must_change_passwd: Must change password at next logon
366 366 field_default_status: Default status
367 367 field_users_visibility: Users visibility
368 368 field_time_entries_visibility: Time logs visibility
369 369 field_total_estimated_hours: Total estimated time
370 370 field_default_version: Default version
371 371 field_remote_ip: IP address
372 372 field_textarea_font: Font used for text areas
373 373 field_updated_by: Updated by
374 374 field_last_updated_by: Last updated by
375 field_full_width_layout: Full width layout
375 376
376 377 setting_app_title: Application title
377 378 setting_app_subtitle: Application subtitle
378 379 setting_welcome_text: Welcome text
379 380 setting_default_language: Default language
380 381 setting_login_required: Authentication required
381 382 setting_self_registration: Self-registration
382 383 setting_attachment_max_size: Maximum attachment size
383 384 setting_issues_export_limit: Issues export limit
384 385 setting_mail_from: Emission email address
385 386 setting_bcc_recipients: Blind carbon copy recipients (bcc)
386 387 setting_plain_text_mail: Plain text mail (no HTML)
387 388 setting_host_name: Host name and path
388 389 setting_text_formatting: Text formatting
389 390 setting_wiki_compression: Wiki history compression
390 391 setting_feeds_limit: Maximum number of items in Atom feeds
391 392 setting_default_projects_public: New projects are public by default
392 393 setting_autofetch_changesets: Fetch commits automatically
393 394 setting_sys_api_enabled: Enable WS for repository management
394 395 setting_commit_ref_keywords: Referencing keywords
395 396 setting_commit_fix_keywords: Fixing keywords
396 397 setting_autologin: Autologin
397 398 setting_date_format: Date format
398 399 setting_time_format: Time format
399 400 setting_timespan_format: Time span format
400 401 setting_cross_project_issue_relations: Allow cross-project issue relations
401 402 setting_cross_project_subtasks: Allow cross-project subtasks
402 403 setting_issue_list_default_columns: Default columns displayed on the issue list
403 404 setting_repositories_encodings: Attachments and repositories encodings
404 405 setting_emails_header: Email header
405 406 setting_emails_footer: Email footer
406 407 setting_protocol: Protocol
407 408 setting_per_page_options: Objects per page options
408 409 setting_user_format: Users display format
409 410 setting_activity_days_default: Days displayed on project activity
410 411 setting_display_subprojects_issues: Display subprojects issues on main projects by default
411 412 setting_enabled_scm: Enabled SCM
412 413 setting_mail_handler_body_delimiters: "Truncate emails after one of these lines"
413 414 setting_mail_handler_enable_regex_delimiters: "Enable regular expressions"
414 415 setting_mail_handler_api_enabled: Enable WS for incoming emails
415 416 setting_mail_handler_api_key: Incoming email WS API key
416 417 setting_sys_api_key: Repository management WS API key
417 418 setting_sequential_project_identifiers: Generate sequential project identifiers
418 419 setting_gravatar_enabled: Use Gravatar user icons
419 420 setting_gravatar_default: Default Gravatar image
420 421 setting_diff_max_lines_displayed: Maximum number of diff lines displayed
421 422 setting_file_max_size_displayed: Maximum size of text files displayed inline
422 423 setting_repository_log_display_limit: Maximum number of revisions displayed on file log
423 424 setting_openid: Allow OpenID login and registration
424 425 setting_password_max_age: Require password change after
425 426 setting_password_min_length: Minimum password length
426 427 setting_lost_password: Allow password reset via email
427 428 setting_new_project_user_role_id: Role given to a non-admin user who creates a project
428 429 setting_default_projects_modules: Default enabled modules for new projects
429 430 setting_issue_done_ratio: Calculate the issue done ratio with
430 431 setting_issue_done_ratio_issue_field: Use the issue field
431 432 setting_issue_done_ratio_issue_status: Use the issue status
432 433 setting_start_of_week: Start calendars on
433 434 setting_rest_api_enabled: Enable REST web service
434 435 setting_cache_formatted_text: Cache formatted text
435 436 setting_default_notification_option: Default notification option
436 437 setting_commit_logtime_enabled: Enable time logging
437 438 setting_commit_logtime_activity_id: Activity for logged time
438 439 setting_gantt_items_limit: Maximum number of items displayed on the gantt chart
439 440 setting_issue_group_assignment: Allow issue assignment to groups
440 441 setting_default_issue_start_date_to_creation_date: Use current date as start date for new issues
441 442 setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
442 443 setting_unsubscribe: Allow users to delete their own account
443 444 setting_session_lifetime: Session maximum lifetime
444 445 setting_session_timeout: Session inactivity timeout
445 446 setting_thumbnails_enabled: Display attachment thumbnails
446 447 setting_thumbnails_size: Thumbnails size (in pixels)
447 448 setting_non_working_week_days: Non-working days
448 449 setting_jsonp_enabled: Enable JSONP support
449 450 setting_default_projects_tracker_ids: Default trackers for new projects
450 451 setting_mail_handler_excluded_filenames: Exclude attachments by name
451 452 setting_force_default_language_for_anonymous: Force default language for anonymous users
452 453 setting_force_default_language_for_loggedin: Force default language for logged-in users
453 454 setting_link_copied_issue: Link issues on copy
454 455 setting_max_additional_emails: Maximum number of additional email addresses
455 456 setting_search_results_per_page: Search results per page
456 457 setting_attachment_extensions_allowed: Allowed extensions
457 458 setting_attachment_extensions_denied: Disallowed extensions
458 459 setting_new_item_menu_tab: Project menu tab for creating new objects
459 460 setting_commit_logs_formatting: Apply text formatting to commit messages
460 461 setting_timelog_required_fields: Required fields for time logs
461 462
462 463 permission_add_project: Create project
463 464 permission_add_subprojects: Create subprojects
464 465 permission_edit_project: Edit project
465 466 permission_close_project: Close / reopen the project
466 467 permission_select_project_modules: Select project modules
467 468 permission_manage_members: Manage members
468 469 permission_manage_project_activities: Manage project activities
469 470 permission_manage_versions: Manage versions
470 471 permission_manage_categories: Manage issue categories
471 472 permission_view_issues: View Issues
472 473 permission_add_issues: Add issues
473 474 permission_edit_issues: Edit issues
474 475 permission_copy_issues: Copy issues
475 476 permission_manage_issue_relations: Manage issue relations
476 477 permission_set_issues_private: Set issues public or private
477 478 permission_set_own_issues_private: Set own issues public or private
478 479 permission_add_issue_notes: Add notes
479 480 permission_edit_issue_notes: Edit notes
480 481 permission_edit_own_issue_notes: Edit own notes
481 482 permission_view_private_notes: View private notes
482 483 permission_set_notes_private: Set notes as private
483 484 permission_move_issues: Move issues
484 485 permission_delete_issues: Delete issues
485 486 permission_manage_public_queries: Manage public queries
486 487 permission_save_queries: Save queries
487 488 permission_view_gantt: View gantt chart
488 489 permission_view_calendar: View calendar
489 490 permission_view_issue_watchers: View watchers list
490 491 permission_add_issue_watchers: Add watchers
491 492 permission_delete_issue_watchers: Delete watchers
492 493 permission_log_time: Log spent time
493 494 permission_view_time_entries: View spent time
494 495 permission_edit_time_entries: Edit time logs
495 496 permission_edit_own_time_entries: Edit own time logs
496 497 permission_manage_news: Manage news
497 498 permission_comment_news: Comment news
498 499 permission_view_documents: View documents
499 500 permission_add_documents: Add documents
500 501 permission_edit_documents: Edit documents
501 502 permission_delete_documents: Delete documents
502 503 permission_manage_files: Manage files
503 504 permission_view_files: View files
504 505 permission_manage_wiki: Manage wiki
505 506 permission_rename_wiki_pages: Rename wiki pages
506 507 permission_delete_wiki_pages: Delete wiki pages
507 508 permission_view_wiki_pages: View wiki
508 509 permission_view_wiki_edits: View wiki history
509 510 permission_edit_wiki_pages: Edit wiki pages
510 511 permission_delete_wiki_pages_attachments: Delete attachments
511 512 permission_protect_wiki_pages: Protect wiki pages
512 513 permission_manage_repository: Manage repository
513 514 permission_browse_repository: Browse repository
514 515 permission_view_changesets: View changesets
515 516 permission_commit_access: Commit access
516 517 permission_manage_boards: Manage forums
517 518 permission_view_messages: View messages
518 519 permission_add_messages: Post messages
519 520 permission_edit_messages: Edit messages
520 521 permission_edit_own_messages: Edit own messages
521 522 permission_delete_messages: Delete messages
522 523 permission_delete_own_messages: Delete own messages
523 524 permission_export_wiki_pages: Export wiki pages
524 525 permission_manage_subtasks: Manage subtasks
525 526 permission_manage_related_issues: Manage related issues
526 527 permission_import_issues: Import issues
527 528
528 529 project_module_issue_tracking: Issue tracking
529 530 project_module_time_tracking: Time tracking
530 531 project_module_news: News
531 532 project_module_documents: Documents
532 533 project_module_files: Files
533 534 project_module_wiki: Wiki
534 535 project_module_repository: Repository
535 536 project_module_boards: Forums
536 537 project_module_calendar: Calendar
537 538 project_module_gantt: Gantt
538 539
539 540 label_user: User
540 541 label_user_plural: Users
541 542 label_user_new: New user
542 543 label_user_anonymous: Anonymous
543 544 label_project: Project
544 545 label_project_new: New project
545 546 label_project_plural: Projects
546 547 label_x_projects:
547 548 zero: no projects
548 549 one: 1 project
549 550 other: "%{count} projects"
550 551 label_project_all: All Projects
551 552 label_project_latest: Latest projects
552 553 label_issue: Issue
553 554 label_issue_new: New issue
554 555 label_issue_plural: Issues
555 556 label_issue_view_all: View all issues
556 557 label_issues_by: "Issues by %{value}"
557 558 label_issue_added: Issue added
558 559 label_issue_updated: Issue updated
559 560 label_issue_note_added: Note added
560 561 label_issue_status_updated: Status updated
561 562 label_issue_assigned_to_updated: Assignee updated
562 563 label_issue_priority_updated: Priority updated
563 564 label_document: Document
564 565 label_document_new: New document
565 566 label_document_plural: Documents
566 567 label_document_added: Document added
567 568 label_role: Role
568 569 label_role_plural: Roles
569 570 label_role_new: New role
570 571 label_role_and_permissions: Roles and permissions
571 572 label_role_anonymous: Anonymous
572 573 label_role_non_member: Non member
573 574 label_member: Member
574 575 label_member_new: New member
575 576 label_member_plural: Members
576 577 label_tracker: Tracker
577 578 label_tracker_plural: Trackers
578 579 label_tracker_all: All trackers
579 580 label_tracker_new: New tracker
580 581 label_workflow: Workflow
581 582 label_issue_status: Issue status
582 583 label_issue_status_plural: Issue statuses
583 584 label_issue_status_new: New status
584 585 label_issue_category: Issue category
585 586 label_issue_category_plural: Issue categories
586 587 label_issue_category_new: New category
587 588 label_custom_field: Custom field
588 589 label_custom_field_plural: Custom fields
589 590 label_custom_field_new: New custom field
590 591 label_enumerations: Enumerations
591 592 label_enumeration_new: New value
592 593 label_information: Information
593 594 label_information_plural: Information
594 595 label_please_login: Please log in
595 596 label_register: Register
596 597 label_login_with_open_id_option: or login with OpenID
597 598 label_password_lost: Lost password
598 599 label_password_required: Confirm your password to continue
599 600 label_home: Home
600 601 label_my_page: My page
601 602 label_my_account: My account
602 603 label_my_projects: My projects
603 604 label_my_page_block: My page block
604 605 label_administration: Administration
605 606 label_login: Sign in
606 607 label_logout: Sign out
607 608 label_help: Help
608 609 label_reported_issues: Reported issues
609 610 label_assigned_issues: Assigned issues
610 611 label_assigned_to_me_issues: Issues assigned to me
611 612 label_last_login: Last connection
612 613 label_registered_on: Registered on
613 614 label_activity: Activity
614 615 label_overall_activity: Overall activity
615 616 label_user_activity: "%{value}'s activity"
616 617 label_new: New
617 618 label_logged_as: Logged in as
618 619 label_environment: Environment
619 620 label_authentication: Authentication
620 621 label_auth_source: Authentication mode
621 622 label_auth_source_new: New authentication mode
622 623 label_auth_source_plural: Authentication modes
623 624 label_subproject_plural: Subprojects
624 625 label_subproject_new: New subproject
625 626 label_and_its_subprojects: "%{value} and its subprojects"
626 627 label_min_max_length: Min - Max length
627 628 label_list: List
628 629 label_date: Date
629 630 label_integer: Integer
630 631 label_float: Float
631 632 label_boolean: Boolean
632 633 label_string: Text
633 634 label_text: Long text
634 635 label_attribute: Attribute
635 636 label_attribute_plural: Attributes
636 637 label_no_data: No data to display
637 638 label_no_preview: No preview available
638 639 label_change_status: Change status
639 640 label_history: History
640 641 label_attachment: File
641 642 label_attachment_new: New file
642 643 label_attachment_delete: Delete file
643 644 label_attachment_plural: Files
644 645 label_file_added: File added
645 646 label_report: Report
646 647 label_report_plural: Reports
647 648 label_news: News
648 649 label_news_new: Add news
649 650 label_news_plural: News
650 651 label_news_latest: Latest news
651 652 label_news_view_all: View all news
652 653 label_news_added: News added
653 654 label_news_comment_added: Comment added to a news
654 655 label_settings: Settings
655 656 label_overview: Overview
656 657 label_version: Version
657 658 label_version_new: New version
658 659 label_version_plural: Versions
659 660 label_close_versions: Close completed versions
660 661 label_confirmation: Confirmation
661 662 label_export_to: 'Also available in:'
662 663 label_read: Read...
663 664 label_public_projects: Public projects
664 665 label_open_issues: open
665 666 label_open_issues_plural: open
666 667 label_closed_issues: closed
667 668 label_closed_issues_plural: closed
668 669 label_x_open_issues_abbr:
669 670 zero: 0 open
670 671 one: 1 open
671 672 other: "%{count} open"
672 673 label_x_closed_issues_abbr:
673 674 zero: 0 closed
674 675 one: 1 closed
675 676 other: "%{count} closed"
676 677 label_x_issues:
677 678 zero: 0 issues
678 679 one: 1 issue
679 680 other: "%{count} issues"
680 681 label_total: Total
681 682 label_total_plural: Totals
682 683 label_total_time: Total time
683 684 label_permissions: Permissions
684 685 label_current_status: Current status
685 686 label_new_statuses_allowed: New statuses allowed
686 687 label_all: all
687 688 label_any: any
688 689 label_none: none
689 690 label_nobody: nobody
690 691 label_next: Next
691 692 label_previous: Previous
692 693 label_used_by: Used by
693 694 label_details: Details
694 695 label_add_note: Add a note
695 696 label_calendar: Calendar
696 697 label_months_from: months from
697 698 label_gantt: Gantt
698 699 label_internal: Internal
699 700 label_last_changes: "last %{count} changes"
700 701 label_change_view_all: View all changes
701 702 label_personalize_page: Personalize this page
702 703 label_comment: Comment
703 704 label_comment_plural: Comments
704 705 label_x_comments:
705 706 zero: no comments
706 707 one: 1 comment
707 708 other: "%{count} comments"
708 709 label_comment_add: Add a comment
709 710 label_comment_added: Comment added
710 711 label_comment_delete: Delete comments
711 712 label_query: Custom query
712 713 label_query_plural: Custom queries
713 714 label_query_new: New query
714 715 label_my_queries: My custom queries
715 716 label_filter_add: Add filter
716 717 label_filter_plural: Filters
717 718 label_equals: is
718 719 label_not_equals: is not
719 720 label_in_less_than: in less than
720 721 label_in_more_than: in more than
721 722 label_in_the_next_days: in the next
722 723 label_in_the_past_days: in the past
723 724 label_greater_or_equal: '>='
724 725 label_less_or_equal: '<='
725 726 label_between: between
726 727 label_in: in
727 728 label_today: today
728 729 label_all_time: all time
729 730 label_yesterday: yesterday
730 731 label_this_week: this week
731 732 label_last_week: last week
732 733 label_last_n_weeks: "last %{count} weeks"
733 734 label_last_n_days: "last %{count} days"
734 735 label_this_month: this month
735 736 label_last_month: last month
736 737 label_this_year: this year
737 738 label_date_range: Date range
738 739 label_less_than_ago: less than days ago
739 740 label_more_than_ago: more than days ago
740 741 label_ago: days ago
741 742 label_contains: contains
742 743 label_not_contains: doesn't contain
743 744 label_any_issues_in_project: any issues in project
744 745 label_any_issues_not_in_project: any issues not in project
745 746 label_no_issues_in_project: no issues in project
746 747 label_any_open_issues: any open issues
747 748 label_no_open_issues: no open issues
748 749 label_day_plural: days
749 750 label_repository: Repository
750 751 label_repository_new: New repository
751 752 label_repository_plural: Repositories
752 753 label_browse: Browse
753 754 label_branch: Branch
754 755 label_tag: Tag
755 756 label_revision: Revision
756 757 label_revision_plural: Revisions
757 758 label_revision_id: "Revision %{value}"
758 759 label_associated_revisions: Associated revisions
759 760 label_added: added
760 761 label_modified: modified
761 762 label_copied: copied
762 763 label_renamed: renamed
763 764 label_deleted: deleted
764 765 label_latest_revision: Latest revision
765 766 label_latest_revision_plural: Latest revisions
766 767 label_view_revisions: View revisions
767 768 label_view_all_revisions: View all revisions
768 769 label_max_size: Maximum size
769 770 label_sort_highest: Move to top
770 771 label_sort_higher: Move up
771 772 label_sort_lower: Move down
772 773 label_sort_lowest: Move to bottom
773 774 label_roadmap: Roadmap
774 775 label_roadmap_due_in: "Due in %{value}"
775 776 label_roadmap_overdue: "%{value} late"
776 777 label_roadmap_no_issues: No issues for this version
777 778 label_search: Search
778 779 label_result_plural: Results
779 780 label_all_words: All words
780 781 label_wiki: Wiki
781 782 label_wiki_edit: Wiki edit
782 783 label_wiki_edit_plural: Wiki edits
783 784 label_wiki_page: Wiki page
784 785 label_wiki_page_plural: Wiki pages
785 786 label_wiki_page_new: New wiki page
786 787 label_index_by_title: Index by title
787 788 label_index_by_date: Index by date
788 789 label_current_version: Current version
789 790 label_preview: Preview
790 791 label_feed_plural: Feeds
791 792 label_changes_details: Details of all changes
792 793 label_issue_tracking: Issue tracking
793 794 label_spent_time: Spent time
794 795 label_total_spent_time: Total spent time
795 796 label_overall_spent_time: Overall spent time
796 797 label_f_hour: "%{value} hour"
797 798 label_f_hour_plural: "%{value} hours"
798 799 label_f_hour_short: "%{value} h"
799 800 label_time_tracking: Time tracking
800 801 label_change_plural: Changes
801 802 label_statistics: Statistics
802 803 label_commits_per_month: Commits per month
803 804 label_commits_per_author: Commits per author
804 805 label_diff: diff
805 806 label_view_diff: View differences
806 807 label_diff_inline: inline
807 808 label_diff_side_by_side: side by side
808 809 label_options: Options
809 810 label_copy_workflow_from: Copy workflow from
810 811 label_permissions_report: Permissions report
811 812 label_watched_issues: Watched issues
812 813 label_related_issues: Related issues
813 814 label_applied_status: Applied status
814 815 label_loading: Loading...
815 816 label_relation_new: New relation
816 817 label_relation_delete: Delete relation
817 818 label_relates_to: Related to
818 819 label_duplicates: Duplicates
819 820 label_duplicated_by: Duplicated by
820 821 label_blocks: Blocks
821 822 label_blocked_by: Blocked by
822 823 label_precedes: Precedes
823 824 label_follows: Follows
824 825 label_copied_to: Copied to
825 826 label_copied_from: Copied from
826 827 label_stay_logged_in: Stay logged in
827 828 label_disabled: disabled
828 829 label_show_completed_versions: Show completed versions
829 830 label_me: me
830 831 label_board: Forum
831 832 label_board_new: New forum
832 833 label_board_plural: Forums
833 834 label_board_locked: Locked
834 835 label_board_sticky: Sticky
835 836 label_topic_plural: Topics
836 837 label_message_plural: Messages
837 838 label_message_last: Last message
838 839 label_message_new: New message
839 840 label_message_posted: Message added
840 841 label_reply_plural: Replies
841 842 label_send_information: Send account information to the user
842 843 label_year: Year
843 844 label_month: Month
844 845 label_week: Week
845 846 label_date_from: From
846 847 label_date_to: To
847 848 label_language_based: Based on user's language
848 849 label_sort_by: "Sort by %{value}"
849 850 label_send_test_email: Send a test email
850 851 label_feeds_access_key: Atom access key
851 852 label_missing_feeds_access_key: Missing a Atom access key
852 853 label_feeds_access_key_created_on: "Atom access key created %{value} ago"
853 854 label_module_plural: Modules
854 855 label_added_time_by: "Added by %{author} %{age} ago"
855 856 label_updated_time_by: "Updated by %{author} %{age} ago"
856 857 label_updated_time: "Updated %{value} ago"
857 858 label_jump_to_a_project: Jump to a project...
858 859 label_file_plural: Files
859 860 label_changeset_plural: Changesets
860 861 label_default_columns: Default columns
861 862 label_no_change_option: (No change)
862 863 label_bulk_edit_selected_issues: Bulk edit selected issues
863 864 label_bulk_edit_selected_time_entries: Bulk edit selected time entries
864 865 label_theme: Theme
865 866 label_default: Default
866 867 label_search_titles_only: Search titles only
867 868 label_user_mail_option_all: "For any event on all my projects"
868 869 label_user_mail_option_selected: "For any event on the selected projects only..."
869 870 label_user_mail_option_none: "No events"
870 871 label_user_mail_option_only_my_events: "Only for things I watch or I'm involved in"
871 872 label_user_mail_option_only_assigned: "Only for things I watch or I am assigned to"
872 873 label_user_mail_option_only_owner: "Only for things I watch or I am the owner of"
873 874 label_user_mail_no_self_notified: "I don't want to be notified of changes that I make myself"
874 875 label_registration_activation_by_email: account activation by email
875 876 label_registration_manual_activation: manual account activation
876 877 label_registration_automatic_activation: automatic account activation
877 878 label_display_per_page: "Per page: %{value}"
878 879 label_age: Age
879 880 label_change_properties: Change properties
880 881 label_general: General
881 882 label_more: More
882 883 label_scm: SCM
883 884 label_plugins: Plugins
884 885 label_ldap_authentication: LDAP authentication
885 886 label_downloads_abbr: D/L
886 887 label_optional_description: Optional description
887 888 label_add_another_file: Add another file
888 889 label_preferences: Preferences
889 890 label_chronological_order: In chronological order
890 891 label_reverse_chronological_order: In reverse chronological order
891 892 label_planning: Planning
892 893 label_incoming_emails: Incoming emails
893 894 label_generate_key: Generate a key
894 895 label_issue_watchers: Watchers
895 896 label_example: Example
896 897 label_display: Display
897 898 label_sort: Sort
898 899 label_ascending: Ascending
899 900 label_descending: Descending
900 901 label_date_from_to: From %{start} to %{end}
901 902 label_wiki_content_added: Wiki page added
902 903 label_wiki_content_updated: Wiki page updated
903 904 label_group: Group
904 905 label_group_plural: Groups
905 906 label_group_new: New group
906 907 label_group_anonymous: Anonymous users
907 908 label_group_non_member: Non member users
908 909 label_time_entry_plural: Spent time
909 910 label_version_sharing_none: Not shared
910 911 label_version_sharing_descendants: With subprojects
911 912 label_version_sharing_hierarchy: With project hierarchy
912 913 label_version_sharing_tree: With project tree
913 914 label_version_sharing_system: With all projects
914 915 label_update_issue_done_ratios: Update issue done ratios
915 916 label_copy_source: Source
916 917 label_copy_target: Target
917 918 label_copy_same_as_target: Same as target
918 919 label_display_used_statuses_only: Only display statuses that are used by this tracker
919 920 label_api_access_key: API access key
920 921 label_missing_api_access_key: Missing an API access key
921 922 label_api_access_key_created_on: "API access key created %{value} ago"
922 923 label_profile: Profile
923 924 label_subtask_plural: Subtasks
924 925 label_project_copy_notifications: Send email notifications during the project copy
925 926 label_principal_search: "Search for user or group:"
926 927 label_user_search: "Search for user:"
927 928 label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
928 929 label_additional_workflow_transitions_for_assignee: Additional transitions allowed when the user is the assignee
929 930 label_issues_visibility_all: All issues
930 931 label_issues_visibility_public: All non private issues
931 932 label_issues_visibility_own: Issues created by or assigned to the user
932 933 label_git_report_last_commit: Report last commit for files and directories
933 934 label_parent_revision: Parent
934 935 label_child_revision: Child
935 936 label_export_options: "%{export_format} export options"
936 937 label_copy_attachments: Copy attachments
937 938 label_copy_subtasks: Copy subtasks
938 939 label_item_position: "%{position} of %{count}"
939 940 label_completed_versions: Completed versions
940 941 label_search_for_watchers: Search for watchers to add
941 942 label_session_expiration: Session expiration
942 943 label_show_closed_projects: View closed projects
943 944 label_status_transitions: Status transitions
944 945 label_fields_permissions: Fields permissions
945 946 label_readonly: Read-only
946 947 label_required: Required
947 948 label_hidden: Hidden
948 949 label_attribute_of_project: "Project's %{name}"
949 950 label_attribute_of_issue: "Issue's %{name}"
950 951 label_attribute_of_author: "Author's %{name}"
951 952 label_attribute_of_assigned_to: "Assignee's %{name}"
952 953 label_attribute_of_user: "User's %{name}"
953 954 label_attribute_of_fixed_version: "Target version's %{name}"
954 955 label_attribute_of_object: "%{object_name}'s %{name}"
955 956 label_cross_project_descendants: With subprojects
956 957 label_cross_project_tree: With project tree
957 958 label_cross_project_hierarchy: With project hierarchy
958 959 label_cross_project_system: With all projects
959 960 label_gantt_progress_line: Progress line
960 961 label_visibility_private: to me only
961 962 label_visibility_roles: to these roles only
962 963 label_visibility_public: to any users
963 964 label_link: Link
964 965 label_only: only
965 966 label_drop_down_list: drop-down list
966 967 label_checkboxes: checkboxes
967 968 label_radio_buttons: radio buttons
968 969 label_link_values_to: Link values to URL
969 970 label_custom_field_select_type: Select the type of object to which the custom field is to be attached
970 971 label_check_for_updates: Check for updates
971 972 label_latest_compatible_version: Latest compatible version
972 973 label_unknown_plugin: Unknown plugin
973 974 label_add_projects: Add projects
974 975 label_users_visibility_all: All active users
975 976 label_users_visibility_members_of_visible_projects: Members of visible projects
976 977 label_edit_attachments: Edit attached files
977 978 label_link_copied_issue: Link copied issue
978 979 label_ask: Ask
979 980 label_search_attachments_yes: Search attachment filenames and descriptions
980 981 label_search_attachments_no: Do not search attachments
981 982 label_search_attachments_only: Search attachments only
982 983 label_search_open_issues_only: Open issues only
983 984 label_email_address_plural: Emails
984 985 label_email_address_add: Add email address
985 986 label_enable_notifications: Enable notifications
986 987 label_disable_notifications: Disable notifications
987 988 label_blank_value: blank
988 989 label_parent_task_attributes: Parent tasks attributes
989 990 label_parent_task_attributes_derived: Calculated from subtasks
990 991 label_parent_task_attributes_independent: Independent of subtasks
991 992 label_time_entries_visibility_all: All time entries
992 993 label_time_entries_visibility_own: Time entries created by the user
993 994 label_member_management: Member management
994 995 label_member_management_all_roles: All roles
995 996 label_member_management_selected_roles_only: Only these roles
996 997 label_import_issues: Import issues
997 998 label_select_file_to_import: Select the file to import
998 999 label_fields_separator: Field separator
999 1000 label_fields_wrapper: Field wrapper
1000 1001 label_encoding: Encoding
1001 1002 label_comma_char: Comma
1002 1003 label_semi_colon_char: Semicolon
1003 1004 label_quote_char: Quote
1004 1005 label_double_quote_char: Double quote
1005 1006 label_fields_mapping: Fields mapping
1006 1007 label_file_content_preview: File content preview
1007 1008 label_create_missing_values: Create missing values
1008 1009 label_api: API
1009 1010 label_field_format_enumeration: Key/value list
1010 1011 label_default_values_for_new_users: Default values for new users
1011 1012 label_relations: Relations
1012 1013 label_new_project_issue_tab_enabled: Display the "New issue" tab
1013 1014 label_new_object_tab_enabled: Display the "+" drop-down
1014 1015 label_table_of_contents: Table of contents
1015 1016 label_font_default: Default font
1016 1017 label_font_monospace: Monospaced font
1017 1018 label_font_proportional: Proportional font
1018 1019
1019 1020 button_login: Login
1020 1021 button_submit: Submit
1021 1022 button_save: Save
1022 1023 button_check_all: Check all
1023 1024 button_uncheck_all: Uncheck all
1024 1025 button_collapse_all: Collapse all
1025 1026 button_expand_all: Expand all
1026 1027 button_delete: Delete
1027 1028 button_create: Create
1028 1029 button_create_and_continue: Create and continue
1029 1030 button_test: Test
1030 1031 button_edit: Edit
1031 1032 button_edit_associated_wikipage: "Edit associated Wiki page: %{page_title}"
1032 1033 button_add: Add
1033 1034 button_change: Change
1034 1035 button_apply: Apply
1035 1036 button_clear: Clear
1036 1037 button_lock: Lock
1037 1038 button_unlock: Unlock
1038 1039 button_download: Download
1039 1040 button_list: List
1040 1041 button_view: View
1041 1042 button_move: Move
1042 1043 button_move_and_follow: Move and follow
1043 1044 button_back: Back
1044 1045 button_cancel: Cancel
1045 1046 button_activate: Activate
1046 1047 button_sort: Sort
1047 1048 button_log_time: Log time
1048 1049 button_rollback: Rollback to this version
1049 1050 button_watch: Watch
1050 1051 button_unwatch: Unwatch
1051 1052 button_reply: Reply
1052 1053 button_archive: Archive
1053 1054 button_unarchive: Unarchive
1054 1055 button_reset: Reset
1055 1056 button_rename: Rename
1056 1057 button_change_password: Change password
1057 1058 button_copy: Copy
1058 1059 button_copy_and_follow: Copy and follow
1059 1060 button_annotate: Annotate
1060 1061 button_update: Update
1061 1062 button_configure: Configure
1062 1063 button_quote: Quote
1063 1064 button_duplicate: Duplicate
1064 1065 button_show: Show
1065 1066 button_hide: Hide
1066 1067 button_edit_section: Edit this section
1067 1068 button_export: Export
1068 1069 button_delete_my_account: Delete my account
1069 1070 button_close: Close
1070 1071 button_reopen: Reopen
1071 1072 button_import: Import
1072 1073 button_filter: Filter
1073 1074
1074 1075 status_active: active
1075 1076 status_registered: registered
1076 1077 status_locked: locked
1077 1078
1078 1079 project_status_active: active
1079 1080 project_status_closed: closed
1080 1081 project_status_archived: archived
1081 1082
1082 1083 version_status_open: open
1083 1084 version_status_locked: locked
1084 1085 version_status_closed: closed
1085 1086
1086 1087 field_active: Active
1087 1088
1088 1089 text_select_mail_notifications: Select actions for which email notifications should be sent.
1089 1090 text_regexp_info: eg. ^[A-Z0-9]+$
1090 1091 text_min_max_length_info: 0 means no restriction
1091 1092 text_project_destroy_confirmation: Are you sure you want to delete this project and related data?
1092 1093 text_subprojects_destroy_warning: "Its subproject(s): %{value} will be also deleted."
1093 1094 text_workflow_edit: Select a role and a tracker to edit the workflow
1094 1095 text_are_you_sure: Are you sure?
1095 1096 text_journal_changed: "%{label} changed from %{old} to %{new}"
1096 1097 text_journal_changed_no_detail: "%{label} updated"
1097 1098 text_journal_set_to: "%{label} set to %{value}"
1098 1099 text_journal_deleted: "%{label} deleted (%{old})"
1099 1100 text_journal_added: "%{label} %{value} added"
1100 1101 text_tip_issue_begin_day: issue beginning this day
1101 1102 text_tip_issue_end_day: issue ending this day
1102 1103 text_tip_issue_begin_end_day: issue beginning and ending this day
1103 1104 text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed, must start with a lower case letter.<br />Once saved, the identifier cannot be changed.'
1104 1105 text_caracters_maximum: "%{count} characters maximum."
1105 1106 text_caracters_minimum: "Must be at least %{count} characters long."
1106 1107 text_length_between: "Length between %{min} and %{max} characters."
1107 1108 text_tracker_no_workflow: No workflow defined for this tracker
1108 1109 text_unallowed_characters: Unallowed characters
1109 1110 text_comma_separated: Multiple values allowed (comma separated).
1110 1111 text_line_separated: Multiple values allowed (one line for each value).
1111 1112 text_issues_ref_in_commit_messages: Referencing and fixing issues in commit messages
1112 1113 text_issue_added: "Issue %{id} has been reported by %{author}."
1113 1114 text_issue_updated: "Issue %{id} has been updated by %{author}."
1114 1115 text_wiki_destroy_confirmation: Are you sure you want to delete this wiki and all its content?
1115 1116 text_issue_category_destroy_question: "Some issues (%{count}) are assigned to this category. What do you want to do?"
1116 1117 text_issue_category_destroy_assignments: Remove category assignments
1117 1118 text_issue_category_reassign_to: Reassign issues to this category
1118 1119 text_user_mail_option: "For unselected projects, you will only receive notifications about things you watch or you're involved in (eg. issues you're the author or assignee)."
1119 1120 text_no_configuration_data: "Roles, trackers, issue statuses and workflow have not been configured yet.\nIt is highly recommended to load the default configuration. You will be able to modify it once loaded."
1120 1121 text_load_default_configuration: Load the default configuration
1121 1122 text_status_changed_by_changeset: "Applied in changeset %{value}."
1122 1123 text_time_logged_by_changeset: "Applied in changeset %{value}."
1123 1124 text_issues_destroy_confirmation: 'Are you sure you want to delete the selected issue(s)?'
1124 1125 text_issues_destroy_descendants_confirmation: "This will also delete %{count} subtask(s)."
1125 1126 text_time_entries_destroy_confirmation: 'Are you sure you want to delete the selected time entr(y/ies)?'
1126 1127 text_select_project_modules: 'Select modules to enable for this project:'
1127 1128 text_default_administrator_account_changed: Default administrator account changed
1128 1129 text_file_repository_writable: Attachments directory writable
1129 1130 text_plugin_assets_writable: Plugin assets directory writable
1130 1131 text_rmagick_available: RMagick available (optional)
1131 1132 text_convert_available: ImageMagick convert available (optional)
1132 1133 text_destroy_time_entries_question: "%{hours} hours were reported on the issues you are about to delete. What do you want to do?"
1133 1134 text_destroy_time_entries: Delete reported hours
1134 1135 text_assign_time_entries_to_project: Assign reported hours to the project
1135 1136 text_reassign_time_entries: 'Reassign reported hours to this issue:'
1136 1137 text_user_wrote: "%{value} wrote:"
1137 1138 text_enumeration_destroy_question: "%{count} objects are assigned to the value “%{name}”."
1138 1139 text_enumeration_category_reassign_to: 'Reassign them to this value:'
1139 1140 text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/configuration.yml and restart the application to enable them."
1140 1141 text_repository_usernames_mapping: "Select or update the Redmine user mapped to each username found in the repository log.\nUsers with the same Redmine and repository username or email are automatically mapped."
1141 1142 text_diff_truncated: '... This diff was truncated because it exceeds the maximum size that can be displayed.'
1142 1143 text_custom_field_possible_values_info: 'One line for each value'
1143 1144 text_wiki_page_destroy_question: "This page has %{descendants} child page(s) and descendant(s). What do you want to do?"
1144 1145 text_wiki_page_nullify_children: "Keep child pages as root pages"
1145 1146 text_wiki_page_destroy_children: "Delete child pages and all their descendants"
1146 1147 text_wiki_page_reassign_children: "Reassign child pages to this parent page"
1147 1148 text_own_membership_delete_confirmation: "You are about to remove some or all of your permissions and may no longer be able to edit this project after that.\nAre you sure you want to continue?"
1148 1149 text_zoom_in: Zoom in
1149 1150 text_zoom_out: Zoom out
1150 1151 text_warn_on_leaving_unsaved: "The current page contains unsaved text that will be lost if you leave this page."
1151 1152 text_scm_path_encoding_note: "Default: UTF-8"
1152 1153 text_subversion_repository_note: "Examples: file:///, http://, https://, svn://, svn+[tunnelscheme]://"
1153 1154 text_git_repository_note: Repository is bare and local (e.g. /gitrepo, c:\gitrepo)
1154 1155 text_mercurial_repository_note: Local repository (e.g. /hgrepo, c:\hgrepo)
1155 1156 text_scm_command: Command
1156 1157 text_scm_command_version: Version
1157 1158 text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
1158 1159 text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
1159 1160 text_issue_conflict_resolution_overwrite: "Apply my changes anyway (previous notes will be kept but some changes may be overwritten)"
1160 1161 text_issue_conflict_resolution_add_notes: "Add my notes and discard my other changes"
1161 1162 text_issue_conflict_resolution_cancel: "Discard all my changes and redisplay %{link}"
1162 1163 text_account_destroy_confirmation: "Are you sure you want to proceed?\nYour account will be permanently deleted, with no way to reactivate it."
1163 1164 text_session_expiration_settings: "Warning: changing these settings may expire the current sessions including yours."
1164 1165 text_project_closed: This project is closed and read-only.
1165 1166 text_turning_multiple_off: "If you disable multiple values, multiple values will be removed in order to preserve only one value per item."
1166 1167
1167 1168 default_role_manager: Manager
1168 1169 default_role_developer: Developer
1169 1170 default_role_reporter: Reporter
1170 1171 default_tracker_bug: Bug
1171 1172 default_tracker_feature: Feature
1172 1173 default_tracker_support: Support
1173 1174 default_issue_status_new: New
1174 1175 default_issue_status_in_progress: In Progress
1175 1176 default_issue_status_resolved: Resolved
1176 1177 default_issue_status_feedback: Feedback
1177 1178 default_issue_status_closed: Closed
1178 1179 default_issue_status_rejected: Rejected
1179 1180 default_doc_category_user: User documentation
1180 1181 default_doc_category_tech: Technical documentation
1181 1182 default_priority_low: Low
1182 1183 default_priority_normal: Normal
1183 1184 default_priority_high: High
1184 1185 default_priority_urgent: Urgent
1185 1186 default_priority_immediate: Immediate
1186 1187 default_activity_design: Design
1187 1188 default_activity_development: Development
1188 1189
1189 1190 enumeration_issue_priorities: Issue priorities
1190 1191 enumeration_doc_categories: Document categories
1191 1192 enumeration_activities: Activities (time tracking)
1192 1193 enumeration_system_activity: System Activity
1193 1194 description_filter: Filter
1194 1195 description_search: Searchfield
1195 1196 description_choose_project: Projects
1196 1197 description_project_scope: Search scope
1197 1198 description_notes: Notes
1198 1199 description_message_content: Message content
1199 1200 description_query_sort_criteria_attribute: Sort attribute
1200 1201 description_query_sort_criteria_direction: Sort direction
1201 1202 description_user_mail_notification: Mail notification settings
1202 1203 description_available_columns: Available Columns
1203 1204 description_selected_columns: Selected Columns
1204 1205 description_all_columns: All Columns
1205 1206 description_issue_category_reassign: Choose issue category
1206 1207 description_wiki_subpages_reassign: Choose new parent page
1207 1208 description_date_range_list: Choose range from list
1208 1209 description_date_range_interval: Choose range by selecting start and end date
1209 1210 description_date_from: Enter start date
1210 1211 description_date_to: Enter end date
1211 1212 text_repository_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.'
@@ -1,1231 +1,1232
1 1 # French translations for Ruby on Rails
2 2 # by Christian Lescuyer (christian@flyingcoders.com)
3 3 # contributor: Sebastien Grosjean - ZenCocoon.com
4 4 # contributor: Thibaut Cuvelier - Developpez.com
5 5
6 6 fr:
7 7 direction: ltr
8 8 date:
9 9 formats:
10 10 default: "%d/%m/%Y"
11 11 short: "%e %b"
12 12 long: "%e %B %Y"
13 13 long_ordinal: "%e %B %Y"
14 14 only_day: "%e"
15 15
16 16 day_names: [dimanche, lundi, mardi, mercredi, jeudi, vendredi, samedi]
17 17 abbr_day_names: [dim, lun, mar, mer, jeu, ven, sam]
18 18
19 19 # Don't forget the nil at the beginning; there's no such thing as a 0th month
20 20 month_names: [~, janvier, février, mars, avril, mai, juin, juillet, août, septembre, octobre, novembre, décembre]
21 21 abbr_month_names: [~, jan., fév., mar., avr., mai, juin, juil., août, sept., oct., nov., déc.]
22 22 # Used in date_select and datime_select.
23 23 order:
24 24 - :day
25 25 - :month
26 26 - :year
27 27
28 28 time:
29 29 formats:
30 30 default: "%d/%m/%Y %H:%M"
31 31 time: "%H:%M"
32 32 short: "%d %b %H:%M"
33 33 long: "%A %d %B %Y %H:%M:%S %Z"
34 34 long_ordinal: "%A %d %B %Y %H:%M:%S %Z"
35 35 only_second: "%S"
36 36 am: 'am'
37 37 pm: 'pm'
38 38
39 39 datetime:
40 40 distance_in_words:
41 41 half_a_minute: "30 secondes"
42 42 less_than_x_seconds:
43 43 zero: "moins d'une seconde"
44 44 one: "moins d'une seconde"
45 45 other: "moins de %{count} secondes"
46 46 x_seconds:
47 47 one: "1 seconde"
48 48 other: "%{count} secondes"
49 49 less_than_x_minutes:
50 50 zero: "moins d'une minute"
51 51 one: "moins d'une minute"
52 52 other: "moins de %{count} minutes"
53 53 x_minutes:
54 54 one: "1 minute"
55 55 other: "%{count} minutes"
56 56 about_x_hours:
57 57 one: "environ une heure"
58 58 other: "environ %{count} heures"
59 59 x_hours:
60 60 one: "une heure"
61 61 other: "%{count} heures"
62 62 x_days:
63 63 one: "un jour"
64 64 other: "%{count} jours"
65 65 about_x_months:
66 66 one: "environ un mois"
67 67 other: "environ %{count} mois"
68 68 x_months:
69 69 one: "un mois"
70 70 other: "%{count} mois"
71 71 about_x_years:
72 72 one: "environ un an"
73 73 other: "environ %{count} ans"
74 74 over_x_years:
75 75 one: "plus d'un an"
76 76 other: "plus de %{count} ans"
77 77 almost_x_years:
78 78 one: "presqu'un an"
79 79 other: "presque %{count} ans"
80 80 prompts:
81 81 year: "Année"
82 82 month: "Mois"
83 83 day: "Jour"
84 84 hour: "Heure"
85 85 minute: "Minute"
86 86 second: "Seconde"
87 87
88 88 number:
89 89 format:
90 90 precision: 3
91 91 separator: ','
92 92 delimiter: ' '
93 93 currency:
94 94 format:
95 95 unit: '€'
96 96 precision: 2
97 97 format: '%n %u'
98 98 human:
99 99 format:
100 100 precision: 3
101 101 storage_units:
102 102 format: "%n %u"
103 103 units:
104 104 byte:
105 105 one: "octet"
106 106 other: "octets"
107 107 kb: "ko"
108 108 mb: "Mo"
109 109 gb: "Go"
110 110 tb: "To"
111 111
112 112 support:
113 113 array:
114 114 sentence_connector: 'et'
115 115 skip_last_comma: true
116 116 word_connector: ", "
117 117 two_words_connector: " et "
118 118 last_word_connector: " et "
119 119
120 120 activerecord:
121 121 errors:
122 122 template:
123 123 header:
124 124 one: "Impossible d'enregistrer %{model} : une erreur"
125 125 other: "Impossible d'enregistrer %{model} : %{count} erreurs."
126 126 body: "Veuillez vérifier les champs suivants :"
127 127 messages:
128 128 inclusion: "n'est pas inclus(e) dans la liste"
129 129 exclusion: "n'est pas disponible"
130 130 invalid: "n'est pas valide"
131 131 confirmation: "ne concorde pas avec la confirmation"
132 132 accepted: "doit être accepté(e)"
133 133 empty: "doit être renseigné(e)"
134 134 blank: "doit être renseigné(e)"
135 135 too_long: "est trop long (pas plus de %{count} caractères)"
136 136 too_short: "est trop court (au moins %{count} caractères)"
137 137 wrong_length: "ne fait pas la bonne longueur (doit comporter %{count} caractères)"
138 138 taken: "est déjà utilisé"
139 139 not_a_number: "n'est pas un nombre"
140 140 not_a_date: "n'est pas une date valide"
141 141 greater_than: "doit être supérieur à %{count}"
142 142 greater_than_or_equal_to: "doit être supérieur ou égal à %{count}"
143 143 equal_to: "doit être égal à %{count}"
144 144 less_than: "doit être inférieur à %{count}"
145 145 less_than_or_equal_to: "doit être inférieur ou égal à %{count}"
146 146 odd: "doit être impair"
147 147 even: "doit être pair"
148 148 greater_than_start_date: "doit être postérieure à la date de début"
149 149 not_same_project: "n'appartient pas au même projet"
150 150 circular_dependency: "Cette relation créerait une dépendance circulaire"
151 151 cant_link_an_issue_with_a_descendant: "Une demande ne peut pas être liée à l'une de ses sous-tâches"
152 152 earlier_than_minimum_start_date: "ne peut pas être antérieure au %{date} à cause des demandes qui précèdent"
153 153 not_a_regexp: "n'est pas une expression regulière valide"
154 154 open_issue_with_closed_parent: "Une demande ouverte ne peut pas être rattachée à une demande fermée"
155 155
156 156 actionview_instancetag_blank_option: Choisir
157 157
158 158 general_text_No: 'Non'
159 159 general_text_Yes: 'Oui'
160 160 general_text_no: 'non'
161 161 general_text_yes: 'oui'
162 162 general_lang_name: 'French (Français)'
163 163 general_csv_separator: ';'
164 164 general_csv_decimal_separator: ','
165 165 general_csv_encoding: ISO-8859-1
166 166 general_pdf_fontname: freesans
167 167 general_pdf_monospaced_fontname: freemono
168 168 general_first_day_of_week: '1'
169 169
170 170 notice_account_updated: Le compte a été mis à jour avec succès.
171 171 notice_account_invalid_credentials: Identifiant ou mot de passe invalide.
172 172 notice_account_password_updated: Mot de passe mis à jour avec succès.
173 173 notice_account_wrong_password: Mot de passe incorrect
174 174 notice_account_register_done: Un message contenant les instructions pour activer votre compte vous a été envoyé à l'adresse %{email}.
175 175 notice_account_unknown_email: Aucun compte ne correspond à cette adresse.
176 176 notice_account_not_activated_yet: Vous n'avez pas encore activé votre compte. Si vous voulez recevoir un nouveau message d'activation, veuillez <a href="%{url}">cliquer sur ce lien</a>.
177 177 notice_account_locked: Votre compte est verrouillé.
178 178 notice_can_t_change_password: Ce compte utilise une authentification externe. Impossible de changer le mot de passe.
179 179 notice_account_lost_email_sent: Un message contenant les instructions pour choisir un nouveau mot de passe vous a été envoyé.
180 180 notice_account_activated: Votre compte a été activé. Vous pouvez à présent vous connecter.
181 181 notice_successful_create: Création effectuée avec succès.
182 182 notice_successful_update: Mise à jour effectuée avec succès.
183 183 notice_successful_delete: Suppression effectuée avec succès.
184 184 notice_successful_connection: Connexion réussie.
185 185 notice_file_not_found: "La page à laquelle vous souhaitez accéder n'existe pas ou a été supprimée."
186 186 notice_locking_conflict: Les données ont été mises à jour par un autre utilisateur. Mise à jour impossible.
187 187 notice_not_authorized: "Vous n'êtes pas autorisé à accéder à cette page."
188 188 notice_not_authorized_archived_project: Le projet auquel vous tentez d'accéder a été archivé.
189 189 notice_email_sent: "Un email a été envoyé à %{value}"
190 190 notice_email_error: "Erreur lors de l'envoi de l'email (%{value})"
191 191 notice_feeds_access_key_reseted: "Votre clé d'accès aux flux Atom a été réinitialisée."
192 192 notice_api_access_key_reseted: Votre clé d'accès API a été réinitialisée.
193 193 notice_failed_to_save_issues: "%{count} demande(s) sur les %{total} sélectionnées n'ont pas pu être mise(s) à jour : %{ids}."
194 194 notice_failed_to_save_time_entries: "%{count} temps passé(s) sur les %{total} sélectionnés n'ont pas pu être mis à jour: %{ids}."
195 195 notice_failed_to_save_members: "Erreur lors de la sauvegarde des membres: %{errors}."
196 196 notice_no_issue_selected: "Aucune demande sélectionnée ! Cochez les demandes que vous voulez mettre à jour."
197 197 notice_account_pending: "Votre compte a été créé et attend l'approbation de l'administrateur."
198 198 notice_default_data_loaded: Paramétrage par défaut chargé avec succès.
199 199 notice_unable_delete_version: Impossible de supprimer cette version.
200 200 notice_unable_delete_time_entry: Impossible de supprimer le temps passé.
201 201 notice_issue_done_ratios_updated: L'avancement des demandes a été mis à jour.
202 202 notice_gantt_chart_truncated: "Le diagramme a été tronqué car il excède le nombre maximal d'éléments pouvant être affichés (%{max})"
203 203 notice_issue_successful_create: "Demande %{id} créée."
204 204 notice_issue_update_conflict: "La demande a été mise à jour par un autre utilisateur pendant que vous la modifiez."
205 205 notice_account_deleted: "Votre compte a été définitivement supprimé."
206 206 notice_user_successful_create: "Utilisateur %{id} créé."
207 207 notice_new_password_must_be_different: Votre nouveau mot de passe doit être différent de votre mot de passe actuel
208 208 notice_import_finished: "%{count} éléments ont été importé(s)"
209 209 notice_import_finished_with_errors: "%{count} élément(s) sur %{total} n'ont pas pu être importé(s)"
210 210
211 211 error_can_t_load_default_data: "Une erreur s'est produite lors du chargement du paramétrage : %{value}"
212 212 error_scm_not_found: "L'entrée et/ou la révision demandée n'existe pas dans le dépôt."
213 213 error_scm_command_failed: "Une erreur s'est produite lors de l'accès au dépôt : %{value}"
214 214 error_scm_annotate: "L'entrée n'existe pas ou ne peut pas être annotée."
215 215 error_scm_annotate_big_text_file: Cette entrée ne peut pas être annotée car elle excède la taille maximale.
216 216 error_issue_not_found_in_project: "La demande n'existe pas ou n'appartient pas à ce projet"
217 217 error_no_tracker_in_project: "Aucun tracker n'est associé à ce projet. Vérifier la configuration du projet."
218 218 error_no_default_issue_status: "Aucun statut de demande n'est défini par défaut. Vérifier votre configuration (Administration -> Statuts de demandes)."
219 219 error_can_not_delete_custom_field: Impossible de supprimer le champ personnalisé
220 220 error_can_not_delete_tracker: Ce tracker contient des demandes et ne peut pas être supprimé.
221 221 error_can_not_remove_role: Ce rôle est utilisé et ne peut pas être supprimé.
222 222 error_can_not_reopen_issue_on_closed_version: 'Une demande assignée à une version fermée ne peut pas être réouverte'
223 223 error_can_not_archive_project: "Ce projet ne peut pas être archivé"
224 224 error_issue_done_ratios_not_updated: L'avancement des demandes n'a pas pu être mis à jour.
225 225 error_workflow_copy_source: 'Veuillez sélectionner un tracker et/ou un rôle source'
226 226 error_workflow_copy_target: 'Veuillez sélectionner les trackers et rôles cibles'
227 227 error_unable_delete_issue_status: Impossible de supprimer le statut de demande
228 228 error_unable_to_connect: Connexion impossible (%{value})
229 229 error_attachment_too_big: Ce fichier ne peut pas être attaché car il excède la taille maximale autorisée (%{max_size})
230 230 error_session_expired: "Votre session a expiré. Veuillez vous reconnecter."
231 231 warning_attachments_not_saved: "%{count} fichier(s) n'ont pas pu être sauvegardés."
232 232 error_password_expired: "Votre mot de passe a expiré ou nécessite d'être changé."
233 233 error_invalid_file_encoding: "Le fichier n'est pas un fichier %{encoding} valide"
234 234 error_invalid_csv_file_or_settings: "Le fichier n'est pas un fichier CSV ou n'est pas conforme aux paramètres sélectionnés"
235 235 error_can_not_read_import_file: "Une erreur est survenue lors de la lecture du fichier à importer"
236 236 error_attachment_extension_not_allowed: "L'extension %{extension} n'est pas autorisée"
237 237 error_ldap_bind_credentials: "Identifiant ou mot de passe LDAP incorrect"
238 238 error_no_tracker_allowed_for_new_issue_in_project: "Le projet ne dispose d'aucun tracker sur lequel vous pouvez créer une demande"
239 239 error_no_projects_with_tracker_allowed_for_new_issue: "Aucun projet ne dispose d'un tracker sur lequel vous pouvez créer une demande"
240 240 error_move_of_child_not_possible: "La sous-tâche %{child} n'a pas pu être déplacée dans le nouveau projet : %{errors}"
241 241 error_cannot_reassign_time_entries_to_an_issue_about_to_be_deleted: "Le temps passé ne peut pas être réaffecté à une demande qui va être supprimée"
242 242 warning_fields_cleared_on_bulk_edit: "Les changements apportés entraîneront la suppression automatique des valeurs d'un ou plusieurs champs sur les objets sélectionnés"
243 243
244 244 mail_subject_lost_password: "Votre mot de passe %{value}"
245 245 mail_body_lost_password: 'Pour changer votre mot de passe, cliquez sur le lien suivant :'
246 246 mail_subject_register: "Activation de votre compte %{value}"
247 247 mail_body_register: 'Pour activer votre compte, cliquez sur le lien suivant :'
248 248 mail_body_account_information_external: "Vous pouvez utiliser votre compte %{value} pour vous connecter."
249 249 mail_body_account_information: Paramètres de connexion de votre compte
250 250 mail_subject_account_activation_request: "Demande d'activation d'un compte %{value}"
251 251 mail_body_account_activation_request: "Un nouvel utilisateur (%{value}) s'est inscrit. Son compte nécessite votre approbation :"
252 252 mail_subject_reminder: "%{count} demande(s) arrivent à échéance (%{days})"
253 253 mail_body_reminder: "%{count} demande(s) qui vous sont assignées arrivent à échéance dans les %{days} prochains jours :"
254 254 mail_subject_wiki_content_added: "Page wiki '%{id}' ajoutée"
255 255 mail_body_wiki_content_added: "La page wiki '%{id}' a été ajoutée par %{author}."
256 256 mail_subject_wiki_content_updated: "Page wiki '%{id}' mise à jour"
257 257 mail_body_wiki_content_updated: "La page wiki '%{id}' a été mise à jour par %{author}."
258 258 mail_body_settings_updated: "Les paramètres suivants ont été modifiés :"
259 259 mail_body_password_updated: "Votre mot de passe a été changé."
260 260
261 261 field_name: Nom
262 262 field_description: Description
263 263 field_summary: Résumé
264 264 field_is_required: Obligatoire
265 265 field_firstname: Prénom
266 266 field_lastname: Nom
267 267 field_mail: Email
268 268 field_address: Email
269 269 field_filename: Fichier
270 270 field_filesize: Taille
271 271 field_downloads: Téléchargements
272 272 field_author: Auteur
273 273 field_created_on: Créé
274 274 field_updated_on: Mis-à-jour
275 275 field_closed_on: Fermé
276 276 field_field_format: Format
277 277 field_is_for_all: Pour tous les projets
278 278 field_possible_values: Valeurs possibles
279 279 field_regexp: Expression régulière
280 280 field_min_length: Longueur minimum
281 281 field_max_length: Longueur maximum
282 282 field_value: Valeur
283 283 field_category: Catégorie
284 284 field_title: Titre
285 285 field_project: Projet
286 286 field_issue: Demande
287 287 field_status: Statut
288 288 field_notes: Notes
289 289 field_is_closed: Demande fermée
290 290 field_is_default: Valeur par défaut
291 291 field_tracker: Tracker
292 292 field_subject: Sujet
293 293 field_due_date: Echéance
294 294 field_assigned_to: Assigné à
295 295 field_priority: Priorité
296 296 field_fixed_version: Version cible
297 297 field_user: Utilisateur
298 298 field_principal: Principal
299 299 field_role: Rôle
300 300 field_homepage: Site web
301 301 field_is_public: Public
302 302 field_parent: Sous-projet de
303 303 field_is_in_roadmap: Demandes affichées dans la roadmap
304 304 field_login: Identifiant
305 305 field_mail_notification: Notifications par mail
306 306 field_admin: Administrateur
307 307 field_last_login_on: Dernière connexion
308 308 field_language: Langue
309 309 field_effective_date: Date
310 310 field_password: Mot de passe
311 311 field_new_password: Nouveau mot de passe
312 312 field_password_confirmation: Confirmation
313 313 field_version: Version
314 314 field_type: Type
315 315 field_host: Hôte
316 316 field_port: Port
317 317 field_account: Compte
318 318 field_base_dn: Base DN
319 319 field_attr_login: Attribut Identifiant
320 320 field_attr_firstname: Attribut Prénom
321 321 field_attr_lastname: Attribut Nom
322 322 field_attr_mail: Attribut Email
323 323 field_onthefly: Création des utilisateurs à la volée
324 324 field_start_date: Début
325 325 field_done_ratio: "% réalisé"
326 326 field_auth_source: Mode d'authentification
327 327 field_hide_mail: Cacher mon adresse mail
328 328 field_comments: Commentaire
329 329 field_url: URL
330 330 field_start_page: Page de démarrage
331 331 field_subproject: Sous-projet
332 332 field_hours: Heures
333 333 field_activity: Activité
334 334 field_spent_on: Date
335 335 field_identifier: Identifiant
336 336 field_is_filter: Utilisé comme filtre
337 337 field_issue_to: Demande liée
338 338 field_delay: Retard
339 339 field_assignable: Demandes assignables à ce rôle
340 340 field_redirect_existing_links: Rediriger les liens existants
341 341 field_estimated_hours: Temps estimé
342 342 field_column_names: Colonnes
343 343 field_time_entries: Temps passé
344 344 field_time_zone: Fuseau horaire
345 345 field_searchable: Utilisé pour les recherches
346 346 field_default_value: Valeur par défaut
347 347 field_comments_sorting: Afficher les commentaires
348 348 field_parent_title: Page parent
349 349 field_editable: Modifiable
350 350 field_watcher: Observateur
351 351 field_identity_url: URL OpenID
352 352 field_content: Contenu
353 353 field_group_by: Grouper par
354 354 field_sharing: Partage
355 355 field_parent_issue: Tâche parente
356 356 field_member_of_group: Groupe de l'assigné
357 357 field_assigned_to_role: Rôle de l'assigné
358 358 field_text: Champ texte
359 359 field_visible: Visible
360 360 field_warn_on_leaving_unsaved: "M'avertir lorsque je quitte une page contenant du texte non sauvegardé"
361 361 field_issues_visibility: Visibilité des demandes
362 362 field_is_private: Privée
363 363 field_commit_logs_encoding: Encodage des messages de commit
364 364 field_scm_path_encoding: Encodage des chemins
365 365 field_path_to_repository: Chemin du dépôt
366 366 field_root_directory: Répertoire racine
367 367 field_cvsroot: CVSROOT
368 368 field_cvs_module: Module
369 369 field_repository_is_default: Dépôt principal
370 370 field_multiple: Valeurs multiples
371 371 field_auth_source_ldap_filter: Filtre LDAP
372 372 field_core_fields: Champs standards
373 373 field_timeout: "Timeout (en secondes)"
374 374 field_board_parent: Forum parent
375 375 field_private_notes: Notes privées
376 376 field_inherit_members: Hériter les membres
377 377 field_generate_password: Générer un mot de passe
378 378 field_must_change_passwd: Doit changer de mot de passe à la prochaine connexion
379 379 field_default_status: Statut par défaut
380 380 field_users_visibility: Visibilité des utilisateurs
381 381 field_time_entries_visibility: Visibilité du temps passé
382 382 field_total_estimated_hours: Temps estimé total
383 383 field_default_version: Version par défaut
384 384 field_textarea_font: Police utilisée pour les champs texte
385 385 field_updated_by: Mise à jour par
386 386 field_last_updated_by: Dernière mise à jour par
387 field_full_width_layout: Afficher sur toute la largeur
387 388
388 389 setting_app_title: Titre de l'application
389 390 setting_app_subtitle: Sous-titre de l'application
390 391 setting_welcome_text: Texte d'accueil
391 392 setting_default_language: Langue par défaut
392 393 setting_login_required: Authentification obligatoire
393 394 setting_self_registration: Inscription des nouveaux utilisateurs
394 395 setting_attachment_max_size: Taille maximale des fichiers
395 396 setting_issues_export_limit: Limite d'exportation des demandes
396 397 setting_mail_from: Adresse d'émission
397 398 setting_bcc_recipients: Destinataires en copie cachée (cci)
398 399 setting_plain_text_mail: Mail en texte brut (non HTML)
399 400 setting_host_name: Nom d'hôte et chemin
400 401 setting_text_formatting: Formatage du texte
401 402 setting_wiki_compression: Compression de l'historique des pages wiki
402 403 setting_feeds_limit: Nombre maximal d'éléments dans les flux Atom
403 404 setting_default_projects_public: Définir les nouveaux projets comme publics par défaut
404 405 setting_autofetch_changesets: Récupération automatique des commits
405 406 setting_sys_api_enabled: Activer les WS pour la gestion des dépôts
406 407 setting_commit_ref_keywords: Mots-clés de référencement
407 408 setting_commit_fix_keywords: Mots-clés de résolution
408 409 setting_autologin: Durée maximale de connexion automatique
409 410 setting_date_format: Format de date
410 411 setting_time_format: Format d'heure
411 412 setting_timespan_format: Format des temps en heures
412 413 setting_cross_project_issue_relations: Autoriser les relations entre demandes de différents projets
413 414 setting_cross_project_subtasks: Autoriser les sous-tâches dans des projets différents
414 415 setting_issue_list_default_columns: Colonnes affichées par défaut sur la liste des demandes
415 416 setting_repositories_encodings: Encodages des fichiers et des dépôts
416 417 setting_emails_header: En-tête des emails
417 418 setting_emails_footer: Pied-de-page des emails
418 419 setting_protocol: Protocole
419 420 setting_per_page_options: Options d'objets affichés par page
420 421 setting_user_format: Format d'affichage des utilisateurs
421 422 setting_activity_days_default: Nombre de jours affichés sur l'activité des projets
422 423 setting_display_subprojects_issues: Afficher par défaut les demandes des sous-projets sur les projets principaux
423 424 setting_enabled_scm: SCM activés
424 425 setting_mail_handler_body_delimiters: "Tronquer les emails après l'une de ces lignes"
425 426 setting_mail_handler_enable_regex_delimiters: "Utiliser les expressions regulières"
426 427 setting_mail_handler_api_enabled: "Activer le WS pour la réception d'emails"
427 428 setting_mail_handler_api_key: Clé de protection de l'API
428 429 setting_sequential_project_identifiers: Générer des identifiants de projet séquentiels
429 430 setting_gravatar_enabled: Afficher les Gravatar des utilisateurs
430 431 setting_gravatar_default: Image Gravatar par défaut
431 432 setting_diff_max_lines_displayed: Nombre maximum de lignes de diff affichées
432 433 setting_file_max_size_displayed: Taille maximum des fichiers texte affichés en ligne
433 434 setting_repository_log_display_limit: "Nombre maximum de révisions affichées sur l'historique d'un fichier"
434 435 setting_openid: "Autoriser l'authentification et l'enregistrement OpenID"
435 436 setting_password_max_age: Expiration des mots de passe après
436 437 setting_password_min_length: Longueur minimum des mots de passe
437 438 setting_new_project_user_role_id: Rôle donné à un utilisateur non-administrateur qui crée un projet
438 439 setting_default_projects_modules: Modules activés par défaut pour les nouveaux projets
439 440 setting_issue_done_ratio: Calcul de l'avancement des demandes
440 441 setting_issue_done_ratio_issue_field: 'Utiliser le champ % effectué'
441 442 setting_issue_done_ratio_issue_status: Utiliser le statut
442 443 setting_start_of_week: Jour de début des calendriers
443 444 setting_rest_api_enabled: Activer l'API REST
444 445 setting_cache_formatted_text: Mettre en cache le texte formaté
445 446 setting_default_notification_option: Option de notification par défaut
446 447 setting_commit_logtime_enabled: Permettre la saisie de temps
447 448 setting_commit_logtime_activity_id: Activité pour le temps saisi
448 449 setting_gantt_items_limit: Nombre maximum d'éléments affichés sur le gantt
449 450 setting_issue_group_assignment: Permettre l'assignation des demandes aux groupes
450 451 setting_default_issue_start_date_to_creation_date: Donner à la date de début d'une nouvelle demande la valeur de la date du jour
451 452 setting_commit_cross_project_ref: Permettre le référencement et la résolution des demandes de tous les autres projets
452 453 setting_unsubscribe: Permettre aux utilisateurs de supprimer leur propre compte
453 454 setting_session_lifetime: Durée de vie maximale des sessions
454 455 setting_session_timeout: Durée maximale d'inactivité
455 456 setting_thumbnails_enabled: Afficher les vignettes des images
456 457 setting_thumbnails_size: Taille des vignettes (en pixels)
457 458 setting_non_working_week_days: Jours non travaillés
458 459 setting_jsonp_enabled: Activer le support JSONP
459 460 setting_default_projects_tracker_ids: Trackers par défaut pour les nouveaux projets
460 461 setting_mail_handler_excluded_filenames: Exclure les fichiers attachés par leur nom
461 462 setting_force_default_language_for_anonymous: Forcer la langue par défault pour les utilisateurs anonymes
462 463 setting_force_default_language_for_loggedin: Forcer la langue par défault pour les utilisateurs identifiés
463 464 setting_link_copied_issue: Lier les demandes lors de la copie
464 465 setting_max_additional_emails: Nombre maximal d'adresses email additionnelles
465 466 setting_search_results_per_page: Résultats de recherche affichés par page
466 467 setting_attachment_extensions_allowed: Extensions autorisées
467 468 setting_attachment_extensions_denied: Extensions non autorisées
468 469 setting_sys_api_key: Clé de protection de l'API
469 470 setting_lost_password: Autoriser la réinitialisation par email de mot de passe perdu
470 471 setting_new_item_menu_tab: Onglet de création d'objets dans le menu du project
471 472 setting_commit_logs_formatting: Appliquer le formattage de texte aux messages de commit
472 473 setting_timelog_required_fields: Champs obligatoire pour les temps passés
473 474
474 475 permission_add_project: Créer un projet
475 476 permission_add_subprojects: Créer des sous-projets
476 477 permission_edit_project: Modifier le projet
477 478 permission_close_project: Fermer / réouvrir le projet
478 479 permission_select_project_modules: Choisir les modules
479 480 permission_manage_members: Gérer les membres
480 481 permission_manage_project_activities: Gérer les activités
481 482 permission_manage_versions: Gérer les versions
482 483 permission_manage_categories: Gérer les catégories de demandes
483 484 permission_view_issues: Voir les demandes
484 485 permission_add_issues: Créer des demandes
485 486 permission_edit_issues: Modifier les demandes
486 487 permission_copy_issues: Copier les demandes
487 488 permission_manage_issue_relations: Gérer les relations
488 489 permission_set_issues_private: Rendre les demandes publiques ou privées
489 490 permission_set_own_issues_private: Rendre ses propres demandes publiques ou privées
490 491 permission_add_issue_notes: Ajouter des notes
491 492 permission_edit_issue_notes: Modifier les notes
492 493 permission_edit_own_issue_notes: Modifier ses propres notes
493 494 permission_view_private_notes: Voir les notes privées
494 495 permission_set_notes_private: Rendre les notes privées
495 496 permission_move_issues: Déplacer les demandes
496 497 permission_delete_issues: Supprimer les demandes
497 498 permission_manage_public_queries: Gérer les requêtes publiques
498 499 permission_save_queries: Sauvegarder les requêtes
499 500 permission_view_gantt: Voir le gantt
500 501 permission_view_calendar: Voir le calendrier
501 502 permission_view_issue_watchers: Voir la liste des observateurs
502 503 permission_add_issue_watchers: Ajouter des observateurs
503 504 permission_delete_issue_watchers: Supprimer des observateurs
504 505 permission_log_time: Saisir le temps passé
505 506 permission_view_time_entries: Voir le temps passé
506 507 permission_edit_time_entries: Modifier les temps passés
507 508 permission_edit_own_time_entries: Modifier son propre temps passé
508 509 permission_manage_news: Gérer les annonces
509 510 permission_comment_news: Commenter les annonces
510 511 permission_view_documents: Voir les documents
511 512 permission_add_documents: Ajouter des documents
512 513 permission_edit_documents: Modifier les documents
513 514 permission_delete_documents: Supprimer les documents
514 515 permission_manage_files: Gérer les fichiers
515 516 permission_view_files: Voir les fichiers
516 517 permission_manage_wiki: Gérer le wiki
517 518 permission_rename_wiki_pages: Renommer les pages
518 519 permission_delete_wiki_pages: Supprimer les pages
519 520 permission_view_wiki_pages: Voir le wiki
520 521 permission_view_wiki_edits: "Voir l'historique des modifications"
521 522 permission_edit_wiki_pages: Modifier les pages
522 523 permission_delete_wiki_pages_attachments: Supprimer les fichiers joints
523 524 permission_protect_wiki_pages: Protéger les pages
524 525 permission_manage_repository: Gérer le dépôt de sources
525 526 permission_browse_repository: Parcourir les sources
526 527 permission_view_changesets: Voir les révisions
527 528 permission_commit_access: Droit de commit
528 529 permission_manage_boards: Gérer les forums
529 530 permission_view_messages: Voir les messages
530 531 permission_add_messages: Poster un message
531 532 permission_edit_messages: Modifier les messages
532 533 permission_edit_own_messages: Modifier ses propres messages
533 534 permission_delete_messages: Supprimer les messages
534 535 permission_delete_own_messages: Supprimer ses propres messages
535 536 permission_export_wiki_pages: Exporter les pages
536 537 permission_manage_subtasks: Gérer les sous-tâches
537 538 permission_manage_related_issues: Gérer les demandes associées
538 539 permission_import_issues: Importer des demandes
539 540
540 541 project_module_issue_tracking: Suivi des demandes
541 542 project_module_time_tracking: Suivi du temps passé
542 543 project_module_news: Publication d'annonces
543 544 project_module_documents: Publication de documents
544 545 project_module_files: Publication de fichiers
545 546 project_module_wiki: Wiki
546 547 project_module_repository: Dépôt de sources
547 548 project_module_boards: Forums de discussion
548 549 project_module_calendar: Calendrier
549 550 project_module_gantt: Gantt
550 551
551 552 label_user: Utilisateur
552 553 label_user_plural: Utilisateurs
553 554 label_user_new: Nouvel utilisateur
554 555 label_user_anonymous: Anonyme
555 556 label_project: Projet
556 557 label_project_new: Nouveau projet
557 558 label_project_plural: Projets
558 559 label_x_projects:
559 560 zero: aucun projet
560 561 one: un projet
561 562 other: "%{count} projets"
562 563 label_project_all: Tous les projets
563 564 label_project_latest: Derniers projets
564 565 label_issue: Demande
565 566 label_issue_new: Nouvelle demande
566 567 label_issue_plural: Demandes
567 568 label_issue_view_all: Voir toutes les demandes
568 569 label_issues_by: "Demandes par %{value}"
569 570 label_issue_added: Demande ajoutée
570 571 label_issue_updated: Demande mise à jour
571 572 label_issue_note_added: Note ajoutée
572 573 label_issue_status_updated: Statut changé
573 574 label_issue_assigned_to_updated: Assigné changé
574 575 label_issue_priority_updated: Priorité changée
575 576 label_document: Document
576 577 label_document_new: Nouveau document
577 578 label_document_plural: Documents
578 579 label_document_added: Document ajouté
579 580 label_role: Rôle
580 581 label_role_plural: Rôles
581 582 label_role_new: Nouveau rôle
582 583 label_role_and_permissions: Rôles et permissions
583 584 label_role_anonymous: Anonyme
584 585 label_role_non_member: Non membre
585 586 label_member: Membre
586 587 label_member_new: Nouveau membre
587 588 label_member_plural: Membres
588 589 label_tracker: Tracker
589 590 label_tracker_plural: Trackers
590 591 label_tracker_all: Tous les trackers
591 592 label_tracker_new: Nouveau tracker
592 593 label_workflow: Workflow
593 594 label_issue_status: Statut de demandes
594 595 label_issue_status_plural: Statuts de demandes
595 596 label_issue_status_new: Nouveau statut
596 597 label_issue_category: Catégorie de demandes
597 598 label_issue_category_plural: Catégories de demandes
598 599 label_issue_category_new: Nouvelle catégorie
599 600 label_custom_field: Champ personnalisé
600 601 label_custom_field_plural: Champs personnalisés
601 602 label_custom_field_new: Nouveau champ personnalisé
602 603 label_enumerations: Listes de valeurs
603 604 label_enumeration_new: Nouvelle valeur
604 605 label_information: Information
605 606 label_information_plural: Informations
606 607 label_please_login: Identification
607 608 label_register: S'enregistrer
608 609 label_login_with_open_id_option: S'authentifier avec OpenID
609 610 label_password_lost: Mot de passe perdu
610 611 label_password_required: Confirmez votre mot de passe pour continuer
611 612 label_home: Accueil
612 613 label_my_page: Ma page
613 614 label_my_account: Mon compte
614 615 label_my_projects: Mes projets
615 616 label_my_page_block: Blocs disponibles
616 617 label_administration: Administration
617 618 label_login: Connexion
618 619 label_logout: Déconnexion
619 620 label_help: Aide
620 621 label_reported_issues: Demandes soumises
621 622 label_assigned_issues: Demandes assignées
622 623 label_assigned_to_me_issues: Demandes qui me sont assignées
623 624 label_last_login: Dernière connexion
624 625 label_registered_on: Inscrit le
625 626 label_activity: Activité
626 627 label_overall_activity: Activité globale
627 628 label_user_activity: "Activité de %{value}"
628 629 label_new: Nouveau
629 630 label_logged_as: Connecté en tant que
630 631 label_environment: Environnement
631 632 label_authentication: Authentification
632 633 label_auth_source: Mode d'authentification
633 634 label_auth_source_new: Nouveau mode d'authentification
634 635 label_auth_source_plural: Modes d'authentification
635 636 label_subproject_plural: Sous-projets
636 637 label_subproject_new: Nouveau sous-projet
637 638 label_and_its_subprojects: "%{value} et ses sous-projets"
638 639 label_min_max_length: Longueurs mini - maxi
639 640 label_list: Liste
640 641 label_date: Date
641 642 label_integer: Entier
642 643 label_float: Nombre décimal
643 644 label_boolean: Booléen
644 645 label_string: Texte
645 646 label_text: Texte long
646 647 label_attribute: Attribut
647 648 label_attribute_plural: Attributs
648 649 label_no_data: Aucune donnée à afficher
649 650 label_change_status: Changer le statut
650 651 label_history: Historique
651 652 label_attachment: Fichier
652 653 label_attachment_new: Nouveau fichier
653 654 label_attachment_delete: Supprimer le fichier
654 655 label_attachment_plural: Fichiers
655 656 label_file_added: Fichier ajouté
656 657 label_report: Rapport
657 658 label_report_plural: Rapports
658 659 label_news: Annonce
659 660 label_news_new: Nouvelle annonce
660 661 label_news_plural: Annonces
661 662 label_news_latest: Dernières annonces
662 663 label_news_view_all: Voir toutes les annonces
663 664 label_news_added: Annonce ajoutée
664 665 label_news_comment_added: Commentaire ajouté à une annonce
665 666 label_settings: Configuration
666 667 label_overview: Aperçu
667 668 label_version: Version
668 669 label_version_new: Nouvelle version
669 670 label_version_plural: Versions
670 671 label_close_versions: Fermer les versions terminées
671 672 label_confirmation: Confirmation
672 673 label_export_to: 'Formats disponibles :'
673 674 label_read: Lire...
674 675 label_public_projects: Projets publics
675 676 label_open_issues: ouvert
676 677 label_open_issues_plural: ouverts
677 678 label_closed_issues: fermé
678 679 label_closed_issues_plural: fermés
679 680 label_x_open_issues_abbr:
680 681 zero: 0 ouverte
681 682 one: 1 ouverte
682 683 other: "%{count} ouvertes"
683 684 label_x_closed_issues_abbr:
684 685 zero: 0 fermée
685 686 one: 1 fermée
686 687 other: "%{count} fermées"
687 688 label_x_issues:
688 689 zero: 0 demande
689 690 one: 1 demande
690 691 other: "%{count} demandes"
691 692 label_total: Total
692 693 label_total_plural: Totaux
693 694 label_total_time: Temps total
694 695 label_permissions: Permissions
695 696 label_current_status: Statut actuel
696 697 label_new_statuses_allowed: Nouveaux statuts autorisés
697 698 label_all: tous
698 699 label_any: tous
699 700 label_none: aucun
700 701 label_nobody: personne
701 702 label_next: Suivant
702 703 label_previous: Précédent
703 704 label_used_by: Utilisé par
704 705 label_details: Détails
705 706 label_add_note: Ajouter une note
706 707 label_calendar: Calendrier
707 708 label_months_from: mois depuis
708 709 label_gantt: Gantt
709 710 label_internal: Interne
710 711 label_last_changes: "%{count} derniers changements"
711 712 label_change_view_all: Voir tous les changements
712 713 label_personalize_page: Personnaliser cette page
713 714 label_comment: Commentaire
714 715 label_comment_plural: Commentaires
715 716 label_x_comments:
716 717 zero: aucun commentaire
717 718 one: un commentaire
718 719 other: "%{count} commentaires"
719 720 label_comment_add: Ajouter un commentaire
720 721 label_comment_added: Commentaire ajouté
721 722 label_comment_delete: Supprimer les commentaires
722 723 label_query: Rapport personnalisé
723 724 label_query_plural: Rapports personnalisés
724 725 label_query_new: Nouveau rapport
725 726 label_my_queries: Mes rapports personnalisés
726 727 label_filter_add: Ajouter le filtre
727 728 label_filter_plural: Filtres
728 729 label_equals: égal
729 730 label_not_equals: différent
730 731 label_in_less_than: dans moins de
731 732 label_in_more_than: dans plus de
732 733 label_in_the_next_days: dans les prochains jours
733 734 label_in_the_past_days: dans les derniers jours
734 735 label_greater_or_equal: '>='
735 736 label_less_or_equal: '<='
736 737 label_between: entre
737 738 label_in: dans
738 739 label_today: aujourd'hui
739 740 label_all_time: toute la période
740 741 label_yesterday: hier
741 742 label_this_week: cette semaine
742 743 label_last_week: la semaine dernière
743 744 label_last_n_weeks: "les %{count} dernières semaines"
744 745 label_last_n_days: "les %{count} derniers jours"
745 746 label_this_month: ce mois-ci
746 747 label_last_month: le mois dernier
747 748 label_this_year: cette année
748 749 label_date_range: Période
749 750 label_less_than_ago: il y a moins de
750 751 label_more_than_ago: il y a plus de
751 752 label_ago: il y a
752 753 label_contains: contient
753 754 label_not_contains: ne contient pas
754 755 label_any_issues_in_project: une demande du projet
755 756 label_any_issues_not_in_project: une demande hors du projet
756 757 label_no_issues_in_project: aucune demande du projet
757 758 label_any_open_issues: une demande ouverte
758 759 label_no_open_issues: aucune demande ouverte
759 760 label_day_plural: jours
760 761 label_repository: Dépôt
761 762 label_repository_new: Nouveau dépôt
762 763 label_repository_plural: Dépôts
763 764 label_browse: Parcourir
764 765 label_branch: Branche
765 766 label_tag: Tag
766 767 label_revision: Révision
767 768 label_revision_plural: Révisions
768 769 label_revision_id: "Révision %{value}"
769 770 label_associated_revisions: Révisions associées
770 771 label_added: ajouté
771 772 label_modified: modifié
772 773 label_copied: copié
773 774 label_renamed: renommé
774 775 label_deleted: supprimé
775 776 label_latest_revision: Dernière révision
776 777 label_latest_revision_plural: Dernières révisions
777 778 label_view_revisions: Voir les révisions
778 779 label_view_all_revisions: Voir toutes les révisions
779 780 label_max_size: Taille maximale
780 781 label_sort_highest: Remonter en premier
781 782 label_sort_higher: Remonter
782 783 label_sort_lower: Descendre
783 784 label_sort_lowest: Descendre en dernier
784 785 label_roadmap: Roadmap
785 786 label_roadmap_due_in: "Échéance dans %{value}"
786 787 label_roadmap_overdue: "En retard de %{value}"
787 788 label_roadmap_no_issues: Aucune demande pour cette version
788 789 label_search: Recherche
789 790 label_result_plural: Résultats
790 791 label_all_words: Tous les mots
791 792 label_wiki: Wiki
792 793 label_wiki_edit: Révision wiki
793 794 label_wiki_edit_plural: Révisions wiki
794 795 label_wiki_page: Page wiki
795 796 label_wiki_page_plural: Pages wiki
796 797 label_wiki_page_new: Nouvelle page wiki
797 798 label_index_by_title: Index par titre
798 799 label_index_by_date: Index par date
799 800 label_current_version: Version actuelle
800 801 label_preview: Prévisualisation
801 802 label_feed_plural: Flux Atom
802 803 label_changes_details: Détails de tous les changements
803 804 label_issue_tracking: Suivi des demandes
804 805 label_spent_time: Temps passé
805 806 label_total_spent_time: Temps passé total
806 807 label_overall_spent_time: Temps passé global
807 808 label_f_hour: "%{value} heure"
808 809 label_f_hour_plural: "%{value} heures"
809 810 label_f_hour_short: "%{value} h"
810 811 label_time_tracking: Suivi du temps
811 812 label_change_plural: Changements
812 813 label_statistics: Statistiques
813 814 label_commits_per_month: Commits par mois
814 815 label_commits_per_author: Commits par auteur
815 816 label_diff: diff
816 817 label_view_diff: Voir les différences
817 818 label_diff_inline: en ligne
818 819 label_diff_side_by_side: côte à côte
819 820 label_options: Options
820 821 label_copy_workflow_from: Copier le workflow de
821 822 label_permissions_report: Synthèse des permissions
822 823 label_watched_issues: Demandes surveillées
823 824 label_related_issues: Demandes liées
824 825 label_applied_status: Statut appliqué
825 826 label_loading: Chargement...
826 827 label_relation_new: Nouvelle relation
827 828 label_relation_delete: Supprimer la relation
828 829 label_relates_to: Lié à
829 830 label_duplicates: Duplique
830 831 label_duplicated_by: Dupliqué par
831 832 label_blocks: Bloque
832 833 label_blocked_by: Bloqué par
833 834 label_precedes: Précède
834 835 label_follows: Suit
835 836 label_copied_to: Copié vers
836 837 label_copied_from: Copié depuis
837 838 label_stay_logged_in: Rester connecté
838 839 label_disabled: désactivé
839 840 label_show_completed_versions: Voir les versions passées
840 841 label_me: moi
841 842 label_board: Forum
842 843 label_board_new: Nouveau forum
843 844 label_board_plural: Forums
844 845 label_board_locked: Verrouillé
845 846 label_board_sticky: Sticky
846 847 label_topic_plural: Discussions
847 848 label_message_plural: Messages
848 849 label_message_last: Dernier message
849 850 label_message_new: Nouveau message
850 851 label_message_posted: Message ajouté
851 852 label_reply_plural: Réponses
852 853 label_send_information: Envoyer les informations à l'utilisateur
853 854 label_year: Année
854 855 label_month: Mois
855 856 label_week: Semaine
856 857 label_date_from: Du
857 858 label_date_to: Au
858 859 label_language_based: Basé sur la langue de l'utilisateur
859 860 label_sort_by: "Trier par %{value}"
860 861 label_send_test_email: Envoyer un email de test
861 862 label_feeds_access_key: Clé d'accès Atom
862 863 label_missing_feeds_access_key: Clé d'accès Atom manquante
863 864 label_feeds_access_key_created_on: "Clé d'accès Atom créée il y a %{value}"
864 865 label_module_plural: Modules
865 866 label_added_time_by: "Ajouté par %{author} il y a %{age}"
866 867 label_updated_time_by: "Mis à jour par %{author} il y a %{age}"
867 868 label_updated_time: "Mis à jour il y a %{value}"
868 869 label_jump_to_a_project: Aller à un projet...
869 870 label_file_plural: Fichiers
870 871 label_changeset_plural: Révisions
871 872 label_default_columns: Colonnes par défaut
872 873 label_no_change_option: (Pas de changement)
873 874 label_bulk_edit_selected_issues: Modifier les demandes sélectionnées
874 875 label_bulk_edit_selected_time_entries: Modifier les temps passés sélectionnés
875 876 label_theme: Thème
876 877 label_default: Défaut
877 878 label_search_titles_only: Uniquement dans les titres
878 879 label_user_mail_option_all: "Pour tous les événements de tous mes projets"
879 880 label_user_mail_option_selected: "Pour tous les événements des projets sélectionnés..."
880 881 label_user_mail_option_none: Aucune notification
881 882 label_user_mail_option_only_my_events: Seulement pour ce que je surveille
882 883 label_user_mail_no_self_notified: "Je ne veux pas être notifié des changements que j'effectue"
883 884 label_registration_activation_by_email: activation du compte par email
884 885 label_registration_manual_activation: activation manuelle du compte
885 886 label_registration_automatic_activation: activation automatique du compte
886 887 label_display_per_page: "Par page : %{value}"
887 888 label_age: Âge
888 889 label_change_properties: Changer les propriétés
889 890 label_general: Général
890 891 label_more: Plus
891 892 label_scm: SCM
892 893 label_plugins: Plugins
893 894 label_ldap_authentication: Authentification LDAP
894 895 label_downloads_abbr: D/L
895 896 label_optional_description: Description facultative
896 897 label_add_another_file: Ajouter un autre fichier
897 898 label_preferences: Préférences
898 899 label_chronological_order: Dans l'ordre chronologique
899 900 label_reverse_chronological_order: Dans l'ordre chronologique inverse
900 901 label_planning: Planning
901 902 label_incoming_emails: Emails entrants
902 903 label_generate_key: Générer une clé
903 904 label_issue_watchers: Observateurs
904 905 label_example: Exemple
905 906 label_display: Affichage
906 907 label_sort: Tri
907 908 label_ascending: Croissant
908 909 label_descending: Décroissant
909 910 label_date_from_to: Du %{start} au %{end}
910 911 label_wiki_content_added: Page wiki ajoutée
911 912 label_wiki_content_updated: Page wiki mise à jour
912 913 label_group: Groupe
913 914 label_group_plural: Groupes
914 915 label_group_new: Nouveau groupe
915 916 label_group_anonymous: Utilisateurs anonymes
916 917 label_group_non_member: Utilisateurs non membres
917 918 label_time_entry_plural: Temps passé
918 919 label_version_sharing_none: Non partagé
919 920 label_version_sharing_descendants: Avec les sous-projets
920 921 label_version_sharing_hierarchy: Avec toute la hiérarchie
921 922 label_version_sharing_tree: Avec tout l'arbre
922 923 label_version_sharing_system: Avec tous les projets
923 924 label_update_issue_done_ratios: Mettre à jour l'avancement des demandes
924 925 label_copy_source: Source
925 926 label_copy_target: Cible
926 927 label_copy_same_as_target: Comme la cible
927 928 label_display_used_statuses_only: N'afficher que les statuts utilisés dans ce tracker
928 929 label_api_access_key: Clé d'accès API
929 930 label_missing_api_access_key: Clé d'accès API manquante
930 931 label_api_access_key_created_on: Clé d'accès API créée il y a %{value}
931 932 label_profile: Profil
932 933 label_subtask_plural: Sous-tâches
933 934 label_project_copy_notifications: Envoyer les notifications durant la copie du projet
934 935 label_principal_search: "Rechercher un utilisateur ou un groupe :"
935 936 label_user_search: "Rechercher un utilisateur :"
936 937 label_additional_workflow_transitions_for_author: Autorisations supplémentaires lorsque l'utilisateur a créé la demande
937 938 label_additional_workflow_transitions_for_assignee: Autorisations supplémentaires lorsque la demande est assignée à l'utilisateur
938 939 label_issues_visibility_all: Toutes les demandes
939 940 label_issues_visibility_public: Toutes les demandes non privées
940 941 label_issues_visibility_own: Demandes créées par ou assignées à l'utilisateur
941 942 label_git_report_last_commit: Afficher le dernier commit des fichiers et répertoires
942 943 label_parent_revision: Parent
943 944 label_child_revision: Enfant
944 945 label_export_options: Options d'exportation %{export_format}
945 946 label_copy_attachments: Copier les fichiers
946 947 label_copy_subtasks: Copier les sous-tâches
947 948 label_item_position: "%{position} sur %{count}"
948 949 label_completed_versions: Versions passées
949 950 label_search_for_watchers: Rechercher des observateurs
950 951 label_session_expiration: Expiration des sessions
951 952 label_show_closed_projects: Voir les projets fermés
952 953 label_status_transitions: Changements de statut
953 954 label_fields_permissions: Permissions sur les champs
954 955 label_readonly: Lecture
955 956 label_required: Obligatoire
956 957 label_hidden: Caché
957 958 label_attribute_of_project: "%{name} du projet"
958 959 label_attribute_of_issue: "%{name} de la demande"
959 960 label_attribute_of_author: "%{name} de l'auteur"
960 961 label_attribute_of_assigned_to: "%{name} de l'assigné"
961 962 label_attribute_of_user: "%{name} de l'utilisateur"
962 963 label_attribute_of_fixed_version: "%{name} de la version cible"
963 964 label_attribute_of_object: "%{name} de \"%{object_name}\""
964 965 label_cross_project_descendants: Avec les sous-projets
965 966 label_cross_project_tree: Avec tout l'arbre
966 967 label_cross_project_hierarchy: Avec toute la hiérarchie
967 968 label_cross_project_system: Avec tous les projets
968 969 label_gantt_progress_line: Ligne de progression
969 970 label_visibility_private: par moi uniquement
970 971 label_visibility_roles: par ces rôles uniquement
971 972 label_visibility_public: par tout le monde
972 973 label_link: Lien
973 974 label_only: seulement
974 975 label_drop_down_list: liste déroulante
975 976 label_checkboxes: cases à cocher
976 977 label_radio_buttons: boutons radio
977 978 label_link_values_to: Lier les valeurs vers l'URL
978 979 label_custom_field_select_type: Selectionner le type d'objet auquel attacher le champ personnalisé
979 980 label_check_for_updates: Vérifier les mises à jour
980 981 label_latest_compatible_version: Dernière version compatible
981 982 label_unknown_plugin: Plugin inconnu
982 983 label_add_projects: Ajouter des projets
983 984 label_users_visibility_all: Tous les utilisateurs actifs
984 985 label_users_visibility_members_of_visible_projects: Membres des projets visibles
985 986 label_edit_attachments: Modifier les fichiers attachés
986 987 label_link_copied_issue: Lier la demande copiée
987 988 label_ask: Demander
988 989 label_search_attachments_yes: Rechercher les noms et descriptions de fichiers
989 990 label_search_attachments_no: Ne pas rechercher les fichiers
990 991 label_search_attachments_only: Rechercher les fichiers uniquement
991 992 label_search_open_issues_only: Demandes ouvertes uniquement
992 993 label_email_address_plural: Emails
993 994 label_email_address_add: Ajouter une adresse email
994 995 label_enable_notifications: Activer les notifications
995 996 label_disable_notifications: Désactiver les notifications
996 997 label_blank_value: non renseigné
997 998 label_parent_task_attributes: Attributs des tâches parentes
998 999 label_time_entries_visibility_all: Tous les temps passés
999 1000 label_time_entries_visibility_own: Ses propres temps passés
1000 1001 label_member_management: Gestion des membres
1001 1002 label_member_management_all_roles: Tous les rôles
1002 1003 label_member_management_selected_roles_only: Ces rôles uniquement
1003 1004 label_import_issues: Importer des demandes
1004 1005 label_select_file_to_import: Sélectionner le fichier à importer
1005 1006 label_fields_separator: Séparateur de champs
1006 1007 label_fields_wrapper: Délimiteur de texte
1007 1008 label_encoding: Encodage
1008 1009 label_comma_char: Virgule
1009 1010 label_semi_colon_char: Point virgule
1010 1011 label_quote_char: Apostrophe
1011 1012 label_double_quote_char: Double apostrophe
1012 1013 label_fields_mapping: Correspondance des champs
1013 1014 label_file_content_preview: Aperçu du contenu du fichier
1014 1015 label_create_missing_values: Créer les valeurs manquantes
1015 1016 label_api: API
1016 1017 label_field_format_enumeration: Liste clé/valeur
1017 1018 label_default_values_for_new_users: Valeurs par défaut pour les nouveaux utilisateurs
1018 1019 label_relations: Relations
1019 1020 label_new_project_issue_tab_enabled: Afficher l'onglet "Nouvelle demande"
1020 1021 label_new_object_tab_enabled: Afficher le menu déroulant "+"
1021 1022 label_table_of_contents: Contenu
1022 1023 label_font_default: Police par défaut
1023 1024 label_font_monospace: Police non proportionnelle
1024 1025 label_font_proportional: Police proportionnelle
1025 1026
1026 1027 button_login: Connexion
1027 1028 button_submit: Soumettre
1028 1029 button_save: Sauvegarder
1029 1030 button_check_all: Tout cocher
1030 1031 button_uncheck_all: Tout décocher
1031 1032 button_collapse_all: Plier tout
1032 1033 button_expand_all: Déplier tout
1033 1034 button_delete: Supprimer
1034 1035 button_create: Créer
1035 1036 button_create_and_continue: Créer et continuer
1036 1037 button_test: Tester
1037 1038 button_edit: Modifier
1038 1039 button_edit_associated_wikipage: "Modifier la page wiki associée: %{page_title}"
1039 1040 button_add: Ajouter
1040 1041 button_change: Changer
1041 1042 button_apply: Appliquer
1042 1043 button_clear: Effacer
1043 1044 button_lock: Verrouiller
1044 1045 button_unlock: Déverrouiller
1045 1046 button_download: Télécharger
1046 1047 button_list: Lister
1047 1048 button_view: Voir
1048 1049 button_move: Déplacer
1049 1050 button_move_and_follow: Déplacer et suivre
1050 1051 button_back: Retour
1051 1052 button_cancel: Annuler
1052 1053 button_activate: Activer
1053 1054 button_sort: Trier
1054 1055 button_log_time: Saisir temps
1055 1056 button_rollback: Revenir à cette version
1056 1057 button_watch: Surveiller
1057 1058 button_unwatch: Ne plus surveiller
1058 1059 button_reply: Répondre
1059 1060 button_archive: Archiver
1060 1061 button_unarchive: Désarchiver
1061 1062 button_reset: Réinitialiser
1062 1063 button_rename: Renommer
1063 1064 button_change_password: Changer de mot de passe
1064 1065 button_copy: Copier
1065 1066 button_copy_and_follow: Copier et suivre
1066 1067 button_annotate: Annoter
1067 1068 button_update: Mettre à jour
1068 1069 button_configure: Configurer
1069 1070 button_quote: Citer
1070 1071 button_duplicate: Dupliquer
1071 1072 button_show: Afficher
1072 1073 button_hide: Cacher
1073 1074 button_edit_section: Modifier cette section
1074 1075 button_export: Exporter
1075 1076 button_delete_my_account: Supprimer mon compte
1076 1077 button_close: Fermer
1077 1078 button_reopen: Réouvrir
1078 1079 button_import: Importer
1079 1080 button_filter: Filtrer
1080 1081
1081 1082 status_active: actif
1082 1083 status_registered: enregistré
1083 1084 status_locked: verrouillé
1084 1085
1085 1086 project_status_active: actif
1086 1087 project_status_closed: fermé
1087 1088 project_status_archived: archivé
1088 1089
1089 1090 version_status_open: ouvert
1090 1091 version_status_locked: verrouillé
1091 1092 version_status_closed: fermé
1092 1093
1093 1094 field_active: Actif
1094 1095
1095 1096 text_select_mail_notifications: Actions pour lesquelles une notification par e-mail est envoyée
1096 1097 text_regexp_info: ex. ^[A-Z0-9]+$
1097 1098 text_min_max_length_info: 0 pour aucune restriction
1098 1099 text_project_destroy_confirmation: Êtes-vous sûr de vouloir supprimer ce projet et toutes ses données ?
1099 1100 text_subprojects_destroy_warning: "Ses sous-projets : %{value} seront également supprimés."
1100 1101 text_workflow_edit: Sélectionner un tracker et un rôle pour éditer le workflow
1101 1102 text_are_you_sure: Êtes-vous sûr ?
1102 1103 text_journal_changed: "%{label} changé de %{old} à %{new}"
1103 1104 text_journal_changed_no_detail: "%{label} mis à jour"
1104 1105 text_journal_set_to: "%{label} mis à %{value}"
1105 1106 text_journal_deleted: "%{label} %{old} supprimé"
1106 1107 text_journal_added: "%{label} %{value} ajouté"
1107 1108 text_tip_issue_begin_day: tâche commençant ce jour
1108 1109 text_tip_issue_end_day: tâche finissant ce jour
1109 1110 text_tip_issue_begin_end_day: tâche commençant et finissant ce jour
1110 1111 text_project_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et tirets bas sont autorisés, doit commencer par une minuscule.<br />Un fois sauvegardé, l''identifiant ne pourra plus être modifié.'
1111 1112 text_caracters_maximum: "%{count} caractères maximum."
1112 1113 text_caracters_minimum: "%{count} caractères minimum."
1113 1114 text_length_between: "Longueur comprise entre %{min} et %{max} caractères."
1114 1115 text_tracker_no_workflow: Aucun worflow n'est défini pour ce tracker
1115 1116 text_unallowed_characters: Caractères non autorisés
1116 1117 text_comma_separated: Plusieurs valeurs possibles (séparées par des virgules).
1117 1118 text_line_separated: Plusieurs valeurs possibles (une valeur par ligne).
1118 1119 text_issues_ref_in_commit_messages: Référencement et résolution des demandes dans les commentaires de commits
1119 1120 text_issue_added: "La demande %{id} a été soumise par %{author}."
1120 1121 text_issue_updated: "La demande %{id} a été mise à jour par %{author}."
1121 1122 text_wiki_destroy_confirmation: Etes-vous sûr de vouloir supprimer ce wiki et tout son contenu ?
1122 1123 text_issue_category_destroy_question: "%{count} demandes sont affectées à cette catégorie. Que voulez-vous faire ?"
1123 1124 text_issue_category_destroy_assignments: N'affecter les demandes à aucune autre catégorie
1124 1125 text_issue_category_reassign_to: Réaffecter les demandes à cette catégorie
1125 1126 text_user_mail_option: "Pour les projets non sélectionnés, vous recevrez seulement des notifications pour ce que vous surveillez ou à quoi vous participez (exemple: demandes dont vous êtes l'auteur ou la personne assignée)."
1126 1127 text_no_configuration_data: "Les rôles, trackers, statuts et le workflow ne sont pas encore paramétrés.\nIl est vivement recommandé de charger le paramétrage par defaut. Vous pourrez le modifier une fois chargé."
1127 1128 text_load_default_configuration: Charger le paramétrage par défaut
1128 1129 text_status_changed_by_changeset: "Appliqué par commit %{value}."
1129 1130 text_time_logged_by_changeset: "Appliqué par commit %{value}"
1130 1131 text_issues_destroy_confirmation: 'Êtes-vous sûr de vouloir supprimer la ou les demandes(s) selectionnée(s) ?'
1131 1132 text_issues_destroy_descendants_confirmation: "Cela entrainera également la suppression de %{count} sous-tâche(s)."
1132 1133 text_time_entries_destroy_confirmation: "Etes-vous sûr de vouloir supprimer les temps passés sélectionnés ?"
1133 1134 text_select_project_modules: 'Sélectionner les modules à activer pour ce projet :'
1134 1135 text_default_administrator_account_changed: Compte administrateur par défaut changé
1135 1136 text_file_repository_writable: Répertoire de stockage des fichiers accessible en écriture
1136 1137 text_plugin_assets_writable: Répertoire public des plugins accessible en écriture
1137 1138 text_rmagick_available: Bibliothèque RMagick présente (optionnelle)
1138 1139 text_convert_available: Binaire convert de ImageMagick présent (optionel)
1139 1140 text_destroy_time_entries_question: "%{hours} heures ont été enregistrées sur les demandes à supprimer. Que voulez-vous faire ?"
1140 1141 text_destroy_time_entries: Supprimer les heures
1141 1142 text_assign_time_entries_to_project: Reporter les heures sur le projet
1142 1143 text_reassign_time_entries: 'Reporter les heures sur cette demande:'
1143 1144 text_user_wrote: "%{value} a écrit :"
1144 1145 text_enumeration_destroy_question: "La valeur « %{name} » est affectée à %{count} objet(s)."
1145 1146 text_enumeration_category_reassign_to: 'Réaffecter les objets à cette valeur:'
1146 1147 text_email_delivery_not_configured: "L'envoi de mail n'est pas configuré, les notifications sont désactivées.\nConfigurez votre serveur SMTP dans config/configuration.yml et redémarrez l'application pour les activer."
1147 1148 text_repository_usernames_mapping: "Vous pouvez sélectionner ou modifier l'utilisateur Redmine associé à chaque nom d'utilisateur figurant dans l'historique du dépôt.\nLes utilisateurs avec le même identifiant ou la même adresse mail seront automatiquement associés."
1148 1149 text_diff_truncated: '... Ce différentiel a été tronqué car il excède la taille maximale pouvant être affichée.'
1149 1150 text_custom_field_possible_values_info: 'Une ligne par valeur'
1150 1151 text_wiki_page_destroy_question: "Cette page possède %{descendants} sous-page(s) et descendante(s). Que voulez-vous faire ?"
1151 1152 text_wiki_page_nullify_children: "Conserver les sous-pages en tant que pages racines"
1152 1153 text_wiki_page_destroy_children: "Supprimer les sous-pages et toutes leurs descedantes"
1153 1154 text_wiki_page_reassign_children: "Réaffecter les sous-pages à cette page"
1154 1155 text_own_membership_delete_confirmation: "Vous allez supprimer tout ou partie de vos permissions sur ce projet et ne serez peut-être plus autorisé à modifier ce projet.\nEtes-vous sûr de vouloir continuer ?"
1155 1156 text_zoom_in: Zoom avant
1156 1157 text_zoom_out: Zoom arrière
1157 1158 text_warn_on_leaving_unsaved: "Cette page contient du texte non sauvegardé qui sera perdu si vous quittez la page."
1158 1159 text_scm_path_encoding_note: "Défaut : UTF-8"
1159 1160 text_subversion_repository_note: "Exemples (en fonction des protocoles supportés) : file:///, http://, https://, svn://, svn+[tunnelscheme]://"
1160 1161 text_git_repository_note: "Chemin vers un dépôt vide et local (exemples : /gitrepo, c:\\gitrepo)"
1161 1162 text_mercurial_repository_note: "Chemin vers un dépôt local (exemples : /hgrepo, c:\\hgrepo)"
1162 1163 text_scm_command: Commande
1163 1164 text_scm_command_version: Version
1164 1165 text_scm_config: Vous pouvez configurer les commandes des SCM dans config/configuration.yml. Redémarrer l'application après modification.
1165 1166 text_scm_command_not_available: Ce SCM n'est pas disponible. Vérifier les paramètres dans la section administration.
1166 1167 text_issue_conflict_resolution_overwrite: "Appliquer quand même ma mise à jour (les notes précédentes seront conservées mais des changements pourront être écrasés)"
1167 1168 text_issue_conflict_resolution_add_notes: "Ajouter mes notes et ignorer mes autres changements"
1168 1169 text_issue_conflict_resolution_cancel: "Annuler ma mise à jour et réafficher %{link}"
1169 1170 text_account_destroy_confirmation: "Êtes-vous sûr de vouloir continuer ?\nVotre compte sera définitivement supprimé, sans aucune possibilité de le réactiver."
1170 1171 text_session_expiration_settings: "Attention : le changement de ces paramètres peut entrainer l'expiration des sessions utilisateurs en cours, y compris la vôtre."
1171 1172 text_project_closed: Ce projet est fermé et accessible en lecture seule.
1172 1173 text_turning_multiple_off: "Si vous désactivez les valeurs multiples, les valeurs multiples seront supprimées pour n'en conserver qu'une par objet."
1173 1174
1174 1175 default_role_manager: Manager
1175 1176 default_role_developer: Développeur
1176 1177 default_role_reporter: Rapporteur
1177 1178 default_tracker_bug: Anomalie
1178 1179 default_tracker_feature: Evolution
1179 1180 default_tracker_support: Assistance
1180 1181 default_issue_status_new: Nouveau
1181 1182 default_issue_status_in_progress: En cours
1182 1183 default_issue_status_resolved: Résolu
1183 1184 default_issue_status_feedback: Commentaire
1184 1185 default_issue_status_closed: Fermé
1185 1186 default_issue_status_rejected: Rejeté
1186 1187 default_doc_category_user: Documentation utilisateur
1187 1188 default_doc_category_tech: Documentation technique
1188 1189 default_priority_low: Bas
1189 1190 default_priority_normal: Normal
1190 1191 default_priority_high: Haut
1191 1192 default_priority_urgent: Urgent
1192 1193 default_priority_immediate: Immédiat
1193 1194 default_activity_design: Conception
1194 1195 default_activity_development: Développement
1195 1196
1196 1197 enumeration_issue_priorities: Priorités des demandes
1197 1198 enumeration_doc_categories: Catégories des documents
1198 1199 enumeration_activities: Activités (suivi du temps)
1199 1200 enumeration_system_activity: Activité système
1200 1201 description_filter: Filtre
1201 1202 description_search: Champ de recherche
1202 1203 description_choose_project: Projets
1203 1204 description_project_scope: Périmètre de recherche
1204 1205 description_notes: Notes
1205 1206 description_message_content: Contenu du message
1206 1207 description_query_sort_criteria_attribute: Critère de tri
1207 1208 description_query_sort_criteria_direction: Ordre de tri
1208 1209 description_user_mail_notification: Option de notification
1209 1210 description_available_columns: Colonnes disponibles
1210 1211 description_selected_columns: Colonnes sélectionnées
1211 1212 description_all_columns: Toutes les colonnes
1212 1213 description_issue_category_reassign: Choisir une catégorie
1213 1214 description_wiki_subpages_reassign: Choisir une nouvelle page parent
1214 1215 description_date_range_list: Choisir une période prédéfinie
1215 1216 description_date_range_interval: Choisir une période
1216 1217 description_date_from: Date de début
1217 1218 description_date_to: Date de fin
1218 1219 text_repository_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et tirets bas sont autorisés.<br />Un fois sauvegardé, l''identifiant ne pourra plus être modifié.'
1219 1220 label_parent_task_attributes_derived: Calculé à partir des sous-tâches
1220 1221 label_parent_task_attributes_independent: Indépendent des sous-tâches
1221 1222 mail_subject_security_notification: Notification de sécurité
1222 1223 mail_body_security_notification_change: ! '%{field} modifié(e).'
1223 1224 mail_body_security_notification_change_to: ! '%{field} changé(e) en %{value}.'
1224 1225 mail_body_security_notification_add: ! '%{field} %{value} ajouté(e).'
1225 1226 mail_body_security_notification_remove: ! '%{field} %{value} supprimé(e).'
1226 1227 mail_body_security_notification_notify_enabled: Les notifications ont été activées pour l'adresse %{value}
1227 1228 mail_body_security_notification_notify_disabled: Les notifications ont été désactivées pour l'adresse %{value}
1228 1229 field_remote_ip: Adresse IP
1229 1230 label_no_preview: No preview available
1230 1231 label_user_mail_option_only_assigned: Only for things I watch or I am assigned to
1231 1232 label_user_mail_option_only_owner: Only for things I watch or I am the owner of
@@ -1,988 +1,988
1 1 # Redmine - project management software
2 2 # Copyright (C) 2006-2016 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 require 'uri'
19 19
20 20 module Redmine
21 21 module FieldFormat
22 22 def self.add(name, klass)
23 23 all[name.to_s] = klass.instance
24 24 end
25 25
26 26 def self.delete(name)
27 27 all.delete(name.to_s)
28 28 end
29 29
30 30 def self.all
31 31 @formats ||= Hash.new(Base.instance)
32 32 end
33 33
34 34 def self.available_formats
35 35 all.keys
36 36 end
37 37
38 38 def self.find(name)
39 39 all[name.to_s]
40 40 end
41 41
42 42 # Return an array of custom field formats which can be used in select_tag
43 43 def self.as_select(class_name=nil)
44 44 formats = all.values.select do |format|
45 45 format.class.customized_class_names.nil? || format.class.customized_class_names.include?(class_name)
46 46 end
47 47 formats.map {|format| [::I18n.t(format.label), format.name] }.sort_by(&:first)
48 48 end
49 49
50 50 # Returns an array of formats that can be used for a custom field class
51 51 def self.formats_for_custom_field_class(klass=nil)
52 52 all.values.select do |format|
53 53 format.class.customized_class_names.nil? || format.class.customized_class_names.include?(klass.name)
54 54 end
55 55 end
56 56
57 57 class Base
58 58 include Singleton
59 59 include Redmine::I18n
60 60 include Redmine::Helpers::URL
61 61 include ERB::Util
62 62
63 63 class_attribute :format_name
64 64 self.format_name = nil
65 65
66 66 # Set this to true if the format supports multiple values
67 67 class_attribute :multiple_supported
68 68 self.multiple_supported = false
69 69
70 70 # Set this to true if the format supports filtering on custom values
71 71 class_attribute :is_filter_supported
72 72 self.is_filter_supported = true
73 73
74 74 # Set this to true if the format supports textual search on custom values
75 75 class_attribute :searchable_supported
76 76 self.searchable_supported = false
77 77
78 78 # Set this to true if field values can be summed up
79 79 class_attribute :totalable_supported
80 80 self.totalable_supported = false
81 81
82 82 # Set this to false if field cannot be bulk edited
83 83 class_attribute :bulk_edit_supported
84 84 self.bulk_edit_supported = true
85 85
86 86 # Restricts the classes that the custom field can be added to
87 87 # Set to nil for no restrictions
88 88 class_attribute :customized_class_names
89 89 self.customized_class_names = nil
90 90
91 91 # Name of the partial for editing the custom field
92 92 class_attribute :form_partial
93 93 self.form_partial = nil
94 94
95 95 class_attribute :change_as_diff
96 96 self.change_as_diff = false
97 97
98 98 class_attribute :change_no_details
99 99 self.change_no_details = false
100 100
101 101 def self.add(name)
102 102 self.format_name = name
103 103 Redmine::FieldFormat.add(name, self)
104 104 end
105 105 private_class_method :add
106 106
107 107 def self.field_attributes(*args)
108 108 CustomField.store_accessor :format_store, *args
109 109 end
110 110
111 field_attributes :url_pattern
111 field_attributes :url_pattern, :full_width_layout
112 112
113 113 def name
114 114 self.class.format_name
115 115 end
116 116
117 117 def label
118 118 "label_#{name}"
119 119 end
120 120
121 121 def set_custom_field_value(custom_field, custom_field_value, value)
122 122 if value.is_a?(Array)
123 123 value = value.map(&:to_s).reject{|v| v==''}.uniq
124 124 if value.empty?
125 125 value << ''
126 126 end
127 127 else
128 128 value = value.to_s
129 129 end
130 130
131 131 value
132 132 end
133 133
134 134 def cast_custom_value(custom_value)
135 135 cast_value(custom_value.custom_field, custom_value.value, custom_value.customized)
136 136 end
137 137
138 138 def cast_value(custom_field, value, customized=nil)
139 139 if value.blank?
140 140 nil
141 141 elsif value.is_a?(Array)
142 142 casted = value.map do |v|
143 143 cast_single_value(custom_field, v, customized)
144 144 end
145 145 casted.compact.sort
146 146 else
147 147 cast_single_value(custom_field, value, customized)
148 148 end
149 149 end
150 150
151 151 def cast_single_value(custom_field, value, customized=nil)
152 152 value.to_s
153 153 end
154 154
155 155 def target_class
156 156 nil
157 157 end
158 158
159 159 def possible_custom_value_options(custom_value)
160 160 possible_values_options(custom_value.custom_field, custom_value.customized)
161 161 end
162 162
163 163 def possible_values_options(custom_field, object=nil)
164 164 []
165 165 end
166 166
167 167 def value_from_keyword(custom_field, keyword, object)
168 168 possible_values_options = possible_values_options(custom_field, object)
169 169 if possible_values_options.present?
170 170 keyword = keyword.to_s
171 171 if v = possible_values_options.detect {|text, id| keyword.casecmp(text) == 0}
172 172 if v.is_a?(Array)
173 173 v.last
174 174 else
175 175 v
176 176 end
177 177 end
178 178 else
179 179 keyword
180 180 end
181 181 end
182 182
183 183 # Returns the validation errors for custom_field
184 184 # Should return an empty array if custom_field is valid
185 185 def validate_custom_field(custom_field)
186 186 errors = []
187 187 pattern = custom_field.url_pattern
188 188 if pattern.present? && !uri_with_safe_scheme?(url_pattern_without_tokens(pattern))
189 189 errors << [:url_pattern, :invalid]
190 190 end
191 191 errors
192 192 end
193 193
194 194 # Returns the validation error messages for custom_value
195 195 # Should return an empty array if custom_value is valid
196 196 # custom_value is a CustomFieldValue.
197 197 def validate_custom_value(custom_value)
198 198 values = Array.wrap(custom_value.value).reject {|value| value.to_s == ''}
199 199 errors = values.map do |value|
200 200 validate_single_value(custom_value.custom_field, value, custom_value.customized)
201 201 end
202 202 errors.flatten.uniq
203 203 end
204 204
205 205 def validate_single_value(custom_field, value, customized=nil)
206 206 []
207 207 end
208 208
209 209 # CustomValue after_save callback
210 210 def after_save_custom_value(custom_field, custom_value)
211 211 end
212 212
213 213 def formatted_custom_value(view, custom_value, html=false)
214 214 formatted_value(view, custom_value.custom_field, custom_value.value, custom_value.customized, html)
215 215 end
216 216
217 217 def formatted_value(view, custom_field, value, customized=nil, html=false)
218 218 casted = cast_value(custom_field, value, customized)
219 219 if html && custom_field.url_pattern.present?
220 220 texts_and_urls = Array.wrap(casted).map do |single_value|
221 221 text = view.format_object(single_value, false).to_s
222 222 url = url_from_pattern(custom_field, single_value, customized)
223 223 [text, url]
224 224 end
225 225 links = texts_and_urls.sort_by(&:first).map {|text, url| view.link_to_if uri_with_safe_scheme?(url), text, url}
226 226 links.join(', ').html_safe
227 227 else
228 228 casted
229 229 end
230 230 end
231 231
232 232 # Returns an URL generated with the custom field URL pattern
233 233 # and variables substitution:
234 234 # %value% => the custom field value
235 235 # %id% => id of the customized object
236 236 # %project_id% => id of the project of the customized object if defined
237 237 # %project_identifier% => identifier of the project of the customized object if defined
238 238 # %m1%, %m2%... => capture groups matches of the custom field regexp if defined
239 239 def url_from_pattern(custom_field, value, customized)
240 240 url = custom_field.url_pattern.to_s.dup
241 241 url.gsub!('%value%') {URI.encode value.to_s}
242 242 url.gsub!('%id%') {URI.encode customized.id.to_s}
243 243 url.gsub!('%project_id%') {URI.encode (customized.respond_to?(:project) ? customized.project.try(:id) : nil).to_s}
244 244 url.gsub!('%project_identifier%') {URI.encode (customized.respond_to?(:project) ? customized.project.try(:identifier) : nil).to_s}
245 245 if custom_field.regexp.present?
246 246 url.gsub!(%r{%m(\d+)%}) do
247 247 m = $1.to_i
248 248 if matches ||= value.to_s.match(Regexp.new(custom_field.regexp))
249 249 URI.encode matches[m].to_s
250 250 end
251 251 end
252 252 end
253 253 url
254 254 end
255 255 protected :url_from_pattern
256 256
257 257 # Returns the URL pattern with substitution tokens removed,
258 258 # for validation purpose
259 259 def url_pattern_without_tokens(url_pattern)
260 260 url_pattern.to_s.gsub(/%(value|id|project_id|project_identifier|m\d+)%/, '')
261 261 end
262 262 protected :url_pattern_without_tokens
263 263
264 264 def edit_tag(view, tag_id, tag_name, custom_value, options={})
265 265 view.text_field_tag(tag_name, custom_value.value, options.merge(:id => tag_id))
266 266 end
267 267
268 268 def bulk_edit_tag(view, tag_id, tag_name, custom_field, objects, value, options={})
269 269 view.text_field_tag(tag_name, value, options.merge(:id => tag_id)) +
270 270 bulk_clear_tag(view, tag_id, tag_name, custom_field, value)
271 271 end
272 272
273 273 def bulk_clear_tag(view, tag_id, tag_name, custom_field, value)
274 274 if custom_field.is_required?
275 275 ''.html_safe
276 276 else
277 277 view.content_tag('label',
278 278 view.check_box_tag(tag_name, '__none__', (value == '__none__'), :id => nil, :data => {:disables => "##{tag_id}"}) + l(:button_clear),
279 279 :class => 'inline'
280 280 )
281 281 end
282 282 end
283 283 protected :bulk_clear_tag
284 284
285 285 def query_filter_options(custom_field, query)
286 286 {:type => :string}
287 287 end
288 288
289 289 def before_custom_field_save(custom_field)
290 290 end
291 291
292 292 # Returns a ORDER BY clause that can used to sort customized
293 293 # objects by their value of the custom field.
294 294 # Returns nil if the custom field can not be used for sorting.
295 295 def order_statement(custom_field)
296 296 # COALESCE is here to make sure that blank and NULL values are sorted equally
297 297 "COALESCE(#{join_alias custom_field}.value, '')"
298 298 end
299 299
300 300 # Returns a GROUP BY clause that can used to group by custom value
301 301 # Returns nil if the custom field can not be used for grouping.
302 302 def group_statement(custom_field)
303 303 nil
304 304 end
305 305
306 306 # Returns a JOIN clause that is added to the query when sorting by custom values
307 307 def join_for_order_statement(custom_field)
308 308 alias_name = join_alias(custom_field)
309 309
310 310 "LEFT OUTER JOIN #{CustomValue.table_name} #{alias_name}" +
311 311 " ON #{alias_name}.customized_type = '#{custom_field.class.customized_class.base_class.name}'" +
312 312 " AND #{alias_name}.customized_id = #{custom_field.class.customized_class.table_name}.id" +
313 313 " AND #{alias_name}.custom_field_id = #{custom_field.id}" +
314 314 " AND (#{custom_field.visibility_by_project_condition})" +
315 315 " AND #{alias_name}.value <> ''" +
316 316 " AND #{alias_name}.id = (SELECT max(#{alias_name}_2.id) FROM #{CustomValue.table_name} #{alias_name}_2" +
317 317 " WHERE #{alias_name}_2.customized_type = #{alias_name}.customized_type" +
318 318 " AND #{alias_name}_2.customized_id = #{alias_name}.customized_id" +
319 319 " AND #{alias_name}_2.custom_field_id = #{alias_name}.custom_field_id)"
320 320 end
321 321
322 322 def join_alias(custom_field)
323 323 "cf_#{custom_field.id}"
324 324 end
325 325 protected :join_alias
326 326 end
327 327
328 328 class Unbounded < Base
329 329 def validate_single_value(custom_field, value, customized=nil)
330 330 errs = super
331 331 value = value.to_s
332 332 unless custom_field.regexp.blank? or value =~ Regexp.new(custom_field.regexp)
333 333 errs << ::I18n.t('activerecord.errors.messages.invalid')
334 334 end
335 335 if custom_field.min_length && value.length < custom_field.min_length
336 336 errs << ::I18n.t('activerecord.errors.messages.too_short', :count => custom_field.min_length)
337 337 end
338 338 if custom_field.max_length && custom_field.max_length > 0 && value.length > custom_field.max_length
339 339 errs << ::I18n.t('activerecord.errors.messages.too_long', :count => custom_field.max_length)
340 340 end
341 341 errs
342 342 end
343 343 end
344 344
345 345 class StringFormat < Unbounded
346 346 add 'string'
347 347 self.searchable_supported = true
348 348 self.form_partial = 'custom_fields/formats/string'
349 349 field_attributes :text_formatting
350 350
351 351 def formatted_value(view, custom_field, value, customized=nil, html=false)
352 352 if html
353 353 if custom_field.url_pattern.present?
354 354 super
355 355 elsif custom_field.text_formatting == 'full'
356 356 view.textilizable(value, :object => customized)
357 357 else
358 358 value.to_s
359 359 end
360 360 else
361 361 value.to_s
362 362 end
363 363 end
364 364 end
365 365
366 366 class TextFormat < Unbounded
367 367 add 'text'
368 368 self.searchable_supported = true
369 369 self.form_partial = 'custom_fields/formats/text'
370 370 self.change_as_diff = true
371 371
372 372 def formatted_value(view, custom_field, value, customized=nil, html=false)
373 373 if html
374 374 if value.present?
375 375 if custom_field.text_formatting == 'full'
376 376 view.textilizable(value, :object => customized)
377 377 else
378 378 view.simple_format(html_escape(value))
379 379 end
380 380 else
381 381 ''
382 382 end
383 383 else
384 384 value.to_s
385 385 end
386 386 end
387 387
388 388 def edit_tag(view, tag_id, tag_name, custom_value, options={})
389 389 view.text_area_tag(tag_name, custom_value.value, options.merge(:id => tag_id, :rows => 3))
390 390 end
391 391
392 392 def bulk_edit_tag(view, tag_id, tag_name, custom_field, objects, value, options={})
393 393 view.text_area_tag(tag_name, value, options.merge(:id => tag_id, :rows => 3)) +
394 394 '<br />'.html_safe +
395 395 bulk_clear_tag(view, tag_id, tag_name, custom_field, value)
396 396 end
397 397
398 398 def query_filter_options(custom_field, query)
399 399 {:type => :text}
400 400 end
401 401 end
402 402
403 403 class LinkFormat < StringFormat
404 404 add 'link'
405 405 self.searchable_supported = false
406 406 self.form_partial = 'custom_fields/formats/link'
407 407
408 408 def formatted_value(view, custom_field, value, customized=nil, html=false)
409 409 if html && value.present?
410 410 if custom_field.url_pattern.present?
411 411 url = url_from_pattern(custom_field, value, customized)
412 412 else
413 413 url = value.to_s
414 414 unless url =~ %r{\A[a-z]+://}i
415 415 # no protocol found, use http by default
416 416 url = "http://" + url
417 417 end
418 418 end
419 419 view.link_to value.to_s.truncate(40), url
420 420 else
421 421 value.to_s
422 422 end
423 423 end
424 424 end
425 425
426 426 class Numeric < Unbounded
427 427 self.form_partial = 'custom_fields/formats/numeric'
428 428 self.totalable_supported = true
429 429
430 430 def order_statement(custom_field)
431 431 # Make the database cast values into numeric
432 432 # Postgresql will raise an error if a value can not be casted!
433 433 # CustomValue validations should ensure that it doesn't occur
434 434 "CAST(CASE #{join_alias custom_field}.value WHEN '' THEN '0' ELSE #{join_alias custom_field}.value END AS decimal(30,3))"
435 435 end
436 436
437 437 # Returns totals for the given scope
438 438 def total_for_scope(custom_field, scope)
439 439 scope.joins(:custom_values).
440 440 where(:custom_values => {:custom_field_id => custom_field.id}).
441 441 where.not(:custom_values => {:value => ''}).
442 442 sum("CAST(#{CustomValue.table_name}.value AS decimal(30,3))")
443 443 end
444 444
445 445 def cast_total_value(custom_field, value)
446 446 cast_single_value(custom_field, value)
447 447 end
448 448 end
449 449
450 450 class IntFormat < Numeric
451 451 add 'int'
452 452
453 453 def label
454 454 "label_integer"
455 455 end
456 456
457 457 def cast_single_value(custom_field, value, customized=nil)
458 458 value.to_i
459 459 end
460 460
461 461 def validate_single_value(custom_field, value, customized=nil)
462 462 errs = super
463 463 errs << ::I18n.t('activerecord.errors.messages.not_a_number') unless value.to_s =~ /^[+-]?\d+$/
464 464 errs
465 465 end
466 466
467 467 def query_filter_options(custom_field, query)
468 468 {:type => :integer}
469 469 end
470 470
471 471 def group_statement(custom_field)
472 472 order_statement(custom_field)
473 473 end
474 474 end
475 475
476 476 class FloatFormat < Numeric
477 477 add 'float'
478 478
479 479 def cast_single_value(custom_field, value, customized=nil)
480 480 value.to_f
481 481 end
482 482
483 483 def cast_total_value(custom_field, value)
484 484 value.to_f.round(2)
485 485 end
486 486
487 487 def validate_single_value(custom_field, value, customized=nil)
488 488 errs = super
489 489 errs << ::I18n.t('activerecord.errors.messages.invalid') unless (Kernel.Float(value) rescue nil)
490 490 errs
491 491 end
492 492
493 493 def query_filter_options(custom_field, query)
494 494 {:type => :float}
495 495 end
496 496 end
497 497
498 498 class DateFormat < Unbounded
499 499 add 'date'
500 500 self.form_partial = 'custom_fields/formats/date'
501 501
502 502 def cast_single_value(custom_field, value, customized=nil)
503 503 value.to_date rescue nil
504 504 end
505 505
506 506 def validate_single_value(custom_field, value, customized=nil)
507 507 if value =~ /^\d{4}-\d{2}-\d{2}$/ && (value.to_date rescue false)
508 508 []
509 509 else
510 510 [::I18n.t('activerecord.errors.messages.not_a_date')]
511 511 end
512 512 end
513 513
514 514 def edit_tag(view, tag_id, tag_name, custom_value, options={})
515 515 view.date_field_tag(tag_name, custom_value.value, options.merge(:id => tag_id, :size => 10)) +
516 516 view.calendar_for(tag_id)
517 517 end
518 518
519 519 def bulk_edit_tag(view, tag_id, tag_name, custom_field, objects, value, options={})
520 520 view.date_field_tag(tag_name, value, options.merge(:id => tag_id, :size => 10)) +
521 521 view.calendar_for(tag_id) +
522 522 bulk_clear_tag(view, tag_id, tag_name, custom_field, value)
523 523 end
524 524
525 525 def query_filter_options(custom_field, query)
526 526 {:type => :date}
527 527 end
528 528
529 529 def group_statement(custom_field)
530 530 order_statement(custom_field)
531 531 end
532 532 end
533 533
534 534 class List < Base
535 535 self.multiple_supported = true
536 536 field_attributes :edit_tag_style
537 537
538 538 def edit_tag(view, tag_id, tag_name, custom_value, options={})
539 539 if custom_value.custom_field.edit_tag_style == 'check_box'
540 540 check_box_edit_tag(view, tag_id, tag_name, custom_value, options)
541 541 else
542 542 select_edit_tag(view, tag_id, tag_name, custom_value, options)
543 543 end
544 544 end
545 545
546 546 def bulk_edit_tag(view, tag_id, tag_name, custom_field, objects, value, options={})
547 547 opts = []
548 548 opts << [l(:label_no_change_option), ''] unless custom_field.multiple?
549 549 opts << [l(:label_none), '__none__'] unless custom_field.is_required?
550 550 opts += possible_values_options(custom_field, objects)
551 551 view.select_tag(tag_name, view.options_for_select(opts, value), options.merge(:multiple => custom_field.multiple?))
552 552 end
553 553
554 554 def query_filter_options(custom_field, query)
555 555 {:type => :list_optional, :values => lambda { query_filter_values(custom_field, query) }}
556 556 end
557 557
558 558 protected
559 559
560 560 # Returns the values that are available in the field filter
561 561 def query_filter_values(custom_field, query)
562 562 possible_values_options(custom_field, query.project)
563 563 end
564 564
565 565 # Renders the edit tag as a select tag
566 566 def select_edit_tag(view, tag_id, tag_name, custom_value, options={})
567 567 blank_option = ''.html_safe
568 568 unless custom_value.custom_field.multiple?
569 569 if custom_value.custom_field.is_required?
570 570 unless custom_value.custom_field.default_value.present?
571 571 blank_option = view.content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '')
572 572 end
573 573 else
574 574 blank_option = view.content_tag('option', '&nbsp;'.html_safe, :value => '')
575 575 end
576 576 end
577 577 options_tags = blank_option + view.options_for_select(possible_custom_value_options(custom_value), custom_value.value)
578 578 s = view.select_tag(tag_name, options_tags, options.merge(:id => tag_id, :multiple => custom_value.custom_field.multiple?))
579 579 if custom_value.custom_field.multiple?
580 580 s << view.hidden_field_tag(tag_name, '')
581 581 end
582 582 s
583 583 end
584 584
585 585 # Renders the edit tag as check box or radio tags
586 586 def check_box_edit_tag(view, tag_id, tag_name, custom_value, options={})
587 587 opts = []
588 588 unless custom_value.custom_field.multiple? || custom_value.custom_field.is_required?
589 589 opts << ["(#{l(:label_none)})", '']
590 590 end
591 591 opts += possible_custom_value_options(custom_value)
592 592 s = ''.html_safe
593 593 tag_method = custom_value.custom_field.multiple? ? :check_box_tag : :radio_button_tag
594 594 opts.each do |label, value|
595 595 value ||= label
596 596 checked = (custom_value.value.is_a?(Array) && custom_value.value.include?(value)) || custom_value.value.to_s == value
597 597 tag = view.send(tag_method, tag_name, value, checked, :id => tag_id)
598 598 # set the id on the first tag only
599 599 tag_id = nil
600 600 s << view.content_tag('label', tag + ' ' + label)
601 601 end
602 602 if custom_value.custom_field.multiple?
603 603 s << view.hidden_field_tag(tag_name, '')
604 604 end
605 605 css = "#{options[:class]} check_box_group"
606 606 view.content_tag('span', s, options.merge(:class => css))
607 607 end
608 608 end
609 609
610 610 class ListFormat < List
611 611 add 'list'
612 612 self.searchable_supported = true
613 613 self.form_partial = 'custom_fields/formats/list'
614 614
615 615 def possible_custom_value_options(custom_value)
616 616 options = possible_values_options(custom_value.custom_field)
617 617 missing = [custom_value.value].flatten.reject(&:blank?) - options
618 618 if missing.any?
619 619 options += missing
620 620 end
621 621 options
622 622 end
623 623
624 624 def possible_values_options(custom_field, object=nil)
625 625 custom_field.possible_values
626 626 end
627 627
628 628 def validate_custom_field(custom_field)
629 629 errors = []
630 630 errors << [:possible_values, :blank] if custom_field.possible_values.blank?
631 631 errors << [:possible_values, :invalid] unless custom_field.possible_values.is_a? Array
632 632 errors
633 633 end
634 634
635 635 def validate_custom_value(custom_value)
636 636 values = Array.wrap(custom_value.value).reject {|value| value.to_s == ''}
637 637 invalid_values = values - Array.wrap(custom_value.value_was) - custom_value.custom_field.possible_values
638 638 if invalid_values.any?
639 639 [::I18n.t('activerecord.errors.messages.inclusion')]
640 640 else
641 641 []
642 642 end
643 643 end
644 644
645 645 def group_statement(custom_field)
646 646 order_statement(custom_field)
647 647 end
648 648 end
649 649
650 650 class BoolFormat < List
651 651 add 'bool'
652 652 self.multiple_supported = false
653 653 self.form_partial = 'custom_fields/formats/bool'
654 654
655 655 def label
656 656 "label_boolean"
657 657 end
658 658
659 659 def cast_single_value(custom_field, value, customized=nil)
660 660 value == '1' ? true : false
661 661 end
662 662
663 663 def possible_values_options(custom_field, object=nil)
664 664 [[::I18n.t(:general_text_Yes), '1'], [::I18n.t(:general_text_No), '0']]
665 665 end
666 666
667 667 def group_statement(custom_field)
668 668 order_statement(custom_field)
669 669 end
670 670
671 671 def edit_tag(view, tag_id, tag_name, custom_value, options={})
672 672 case custom_value.custom_field.edit_tag_style
673 673 when 'check_box'
674 674 single_check_box_edit_tag(view, tag_id, tag_name, custom_value, options)
675 675 when 'radio'
676 676 check_box_edit_tag(view, tag_id, tag_name, custom_value, options)
677 677 else
678 678 select_edit_tag(view, tag_id, tag_name, custom_value, options)
679 679 end
680 680 end
681 681
682 682 # Renders the edit tag as a simple check box
683 683 def single_check_box_edit_tag(view, tag_id, tag_name, custom_value, options={})
684 684 s = ''.html_safe
685 685 s << view.hidden_field_tag(tag_name, '0', :id => nil)
686 686 s << view.check_box_tag(tag_name, '1', custom_value.value.to_s == '1', :id => tag_id)
687 687 view.content_tag('span', s, options)
688 688 end
689 689 end
690 690
691 691 class RecordList < List
692 692 self.customized_class_names = %w(Issue TimeEntry Version Document Project)
693 693
694 694 def cast_single_value(custom_field, value, customized=nil)
695 695 target_class.find_by_id(value.to_i) if value.present?
696 696 end
697 697
698 698 def target_class
699 699 @target_class ||= self.class.name[/^(.*::)?(.+)Format$/, 2].constantize rescue nil
700 700 end
701 701
702 702 def reset_target_class
703 703 @target_class = nil
704 704 end
705 705
706 706 def possible_custom_value_options(custom_value)
707 707 options = possible_values_options(custom_value.custom_field, custom_value.customized)
708 708 missing = [custom_value.value_was].flatten.reject(&:blank?) - options.map(&:last)
709 709 if missing.any?
710 710 options += target_class.where(:id => missing.map(&:to_i)).map {|o| [o.to_s, o.id.to_s]}
711 711 end
712 712 options
713 713 end
714 714
715 715 def order_statement(custom_field)
716 716 if target_class.respond_to?(:fields_for_order_statement)
717 717 target_class.fields_for_order_statement(value_join_alias(custom_field))
718 718 end
719 719 end
720 720
721 721 def group_statement(custom_field)
722 722 "COALESCE(#{join_alias custom_field}.value, '')"
723 723 end
724 724
725 725 def join_for_order_statement(custom_field)
726 726 alias_name = join_alias(custom_field)
727 727
728 728 "LEFT OUTER JOIN #{CustomValue.table_name} #{alias_name}" +
729 729 " ON #{alias_name}.customized_type = '#{custom_field.class.customized_class.base_class.name}'" +
730 730 " AND #{alias_name}.customized_id = #{custom_field.class.customized_class.table_name}.id" +
731 731 " AND #{alias_name}.custom_field_id = #{custom_field.id}" +
732 732 " AND (#{custom_field.visibility_by_project_condition})" +
733 733 " AND #{alias_name}.value <> ''" +
734 734 " AND #{alias_name}.id = (SELECT max(#{alias_name}_2.id) FROM #{CustomValue.table_name} #{alias_name}_2" +
735 735 " WHERE #{alias_name}_2.customized_type = #{alias_name}.customized_type" +
736 736 " AND #{alias_name}_2.customized_id = #{alias_name}.customized_id" +
737 737 " AND #{alias_name}_2.custom_field_id = #{alias_name}.custom_field_id)" +
738 738 " LEFT OUTER JOIN #{target_class.table_name} #{value_join_alias custom_field}" +
739 739 " ON CAST(CASE #{alias_name}.value WHEN '' THEN '0' ELSE #{alias_name}.value END AS decimal(30,0)) = #{value_join_alias custom_field}.id"
740 740 end
741 741
742 742 def value_join_alias(custom_field)
743 743 join_alias(custom_field) + "_" + custom_field.field_format
744 744 end
745 745 protected :value_join_alias
746 746 end
747 747
748 748 class EnumerationFormat < RecordList
749 749 add 'enumeration'
750 750 self.form_partial = 'custom_fields/formats/enumeration'
751 751
752 752 def label
753 753 "label_field_format_enumeration"
754 754 end
755 755
756 756 def target_class
757 757 @target_class ||= CustomFieldEnumeration
758 758 end
759 759
760 760 def possible_values_options(custom_field, object=nil)
761 761 possible_values_records(custom_field, object).map {|u| [u.name, u.id.to_s]}
762 762 end
763 763
764 764 def possible_values_records(custom_field, object=nil)
765 765 custom_field.enumerations.active
766 766 end
767 767
768 768 def value_from_keyword(custom_field, keyword, object)
769 769 value = custom_field.enumerations.where("LOWER(name) LIKE LOWER(?)", keyword).first
770 770 value ? value.id : nil
771 771 end
772 772 end
773 773
774 774 class UserFormat < RecordList
775 775 add 'user'
776 776 self.form_partial = 'custom_fields/formats/user'
777 777 field_attributes :user_role
778 778
779 779 def possible_values_options(custom_field, object=nil)
780 780 possible_values_records(custom_field, object).map {|u| [u.name, u.id.to_s]}
781 781 end
782 782
783 783 def possible_values_records(custom_field, object=nil)
784 784 if object.is_a?(Array)
785 785 projects = object.map {|o| o.respond_to?(:project) ? o.project : nil}.compact.uniq
786 786 projects.map {|project| possible_values_records(custom_field, project)}.reduce(:&) || []
787 787 elsif object.respond_to?(:project) && object.project
788 788 scope = object.project.users
789 789 if custom_field.user_role.is_a?(Array)
790 790 role_ids = custom_field.user_role.map(&:to_s).reject(&:blank?).map(&:to_i)
791 791 if role_ids.any?
792 792 scope = scope.where("#{Member.table_name}.id IN (SELECT DISTINCT member_id FROM #{MemberRole.table_name} WHERE role_id IN (?))", role_ids)
793 793 end
794 794 end
795 795 scope.sorted
796 796 else
797 797 []
798 798 end
799 799 end
800 800
801 801 def value_from_keyword(custom_field, keyword, object)
802 802 users = possible_values_records(custom_field, object).to_a
803 803 user = Principal.detect_by_keyword(users, keyword)
804 804 user ? user.id : nil
805 805 end
806 806
807 807 def before_custom_field_save(custom_field)
808 808 super
809 809 if custom_field.user_role.is_a?(Array)
810 810 custom_field.user_role.map!(&:to_s).reject!(&:blank?)
811 811 end
812 812 end
813 813
814 814 def query_filter_values(*args)
815 815 values = []
816 816 if User.current.logged?
817 817 values << ["<< #{l(:label_me)} >>", "me"]
818 818 end
819 819 values + super
820 820 end
821 821 end
822 822
823 823 class VersionFormat < RecordList
824 824 add 'version'
825 825 self.form_partial = 'custom_fields/formats/version'
826 826 field_attributes :version_status
827 827
828 828 def possible_values_options(custom_field, object=nil)
829 829 possible_values_records(custom_field, object).sort.collect{|v| [v.to_s, v.id.to_s] }
830 830 end
831 831
832 832 def before_custom_field_save(custom_field)
833 833 super
834 834 if custom_field.version_status.is_a?(Array)
835 835 custom_field.version_status.map!(&:to_s).reject!(&:blank?)
836 836 end
837 837 end
838 838
839 839 protected
840 840
841 841 def query_filter_values(custom_field, query)
842 842 versions = possible_values_records(custom_field, query.project, true)
843 843 Version.sort_by_status(versions).collect{|s| ["#{s.project.name} - #{s.name}", s.id.to_s, l("version_status_#{s.status}")] }
844 844 end
845 845
846 846 def possible_values_records(custom_field, object=nil, all_statuses=false)
847 847 if object.is_a?(Array)
848 848 projects = object.map {|o| o.respond_to?(:project) ? o.project : nil}.compact.uniq
849 849 projects.map {|project| possible_values_records(custom_field, project)}.reduce(:&) || []
850 850 elsif object.respond_to?(:project) && object.project
851 851 scope = object.project.shared_versions
852 852 filtered_versions_options(custom_field, scope, all_statuses)
853 853 elsif object.nil?
854 854 scope = ::Version.visible.where(:sharing => 'system')
855 855 filtered_versions_options(custom_field, scope, all_statuses)
856 856 else
857 857 []
858 858 end
859 859 end
860 860
861 861 def filtered_versions_options(custom_field, scope, all_statuses=false)
862 862 if !all_statuses && custom_field.version_status.is_a?(Array)
863 863 statuses = custom_field.version_status.map(&:to_s).reject(&:blank?)
864 864 if statuses.any?
865 865 scope = scope.where(:status => statuses.map(&:to_s))
866 866 end
867 867 end
868 868 scope
869 869 end
870 870 end
871 871
872 872 class AttachmentFormat < Base
873 873 add 'attachment'
874 874 self.form_partial = 'custom_fields/formats/attachment'
875 875 self.is_filter_supported = false
876 876 self.change_no_details = true
877 877 self.bulk_edit_supported = false
878 878 field_attributes :extensions_allowed
879 879
880 880 def set_custom_field_value(custom_field, custom_field_value, value)
881 881 attachment_present = false
882 882
883 883 if value.is_a?(Hash)
884 884 attachment_present = true
885 885 value = value.except(:blank)
886 886
887 887 if value.values.any? && value.values.all? {|v| v.is_a?(Hash)}
888 888 value = value.values.first
889 889 end
890 890
891 891 if value.key?(:id)
892 892 value = set_custom_field_value_by_id(custom_field, custom_field_value, value[:id])
893 893 elsif value[:token].present?
894 894 if attachment = Attachment.find_by_token(value[:token])
895 895 value = attachment.id.to_s
896 896 else
897 897 value = ''
898 898 end
899 899 elsif value.key?(:file)
900 900 attachment = Attachment.new(:file => value[:file], :author => User.current)
901 901 if attachment.save
902 902 value = attachment.id.to_s
903 903 else
904 904 value = ''
905 905 end
906 906 else
907 907 attachment_present = false
908 908 value = ''
909 909 end
910 910 elsif value.is_a?(String)
911 911 value = set_custom_field_value_by_id(custom_field, custom_field_value, value)
912 912 end
913 913 custom_field_value.instance_variable_set "@attachment_present", attachment_present
914 914
915 915 value
916 916 end
917 917
918 918 def set_custom_field_value_by_id(custom_field, custom_field_value, id)
919 919 attachment = Attachment.find_by_id(id)
920 920 if attachment && attachment.container.is_a?(CustomValue) && attachment.container.customized == custom_field_value.customized
921 921 id.to_s
922 922 else
923 923 ''
924 924 end
925 925 end
926 926 private :set_custom_field_value_by_id
927 927
928 928 def cast_single_value(custom_field, value, customized=nil)
929 929 Attachment.find_by_id(value.to_i) if value.present? && value.respond_to?(:to_i)
930 930 end
931 931
932 932 def validate_custom_value(custom_value)
933 933 errors = []
934 934
935 935 if custom_value.value.blank?
936 936 if custom_value.instance_variable_get("@attachment_present")
937 937 errors << ::I18n.t('activerecord.errors.messages.invalid')
938 938 end
939 939 else
940 940 if custom_value.value.present?
941 941 attachment = Attachment.where(:id => custom_value.value.to_s).first
942 942 extensions = custom_value.custom_field.extensions_allowed
943 943 if attachment && extensions.present? && !attachment.extension_in?(extensions)
944 944 errors << "#{::I18n.t('activerecord.errors.messages.invalid')} (#{l(:setting_attachment_extensions_allowed)}: #{extensions})"
945 945 end
946 946 end
947 947 end
948 948
949 949 errors.uniq
950 950 end
951 951
952 952 def after_save_custom_value(custom_field, custom_value)
953 953 if custom_value.value_changed?
954 954 if custom_value.value.present?
955 955 attachment = Attachment.where(:id => custom_value.value.to_s).first
956 956 if attachment
957 957 attachment.container = custom_value
958 958 attachment.save!
959 959 end
960 960 end
961 961 if custom_value.value_was.present?
962 962 attachment = Attachment.where(:id => custom_value.value_was.to_s).first
963 963 if attachment
964 964 attachment.destroy
965 965 end
966 966 end
967 967 end
968 968 end
969 969
970 970 def edit_tag(view, tag_id, tag_name, custom_value, options={})
971 971 attachment = nil
972 972 if custom_value.value.present?
973 973 attachment = Attachment.find_by_id(custom_value.value)
974 974 end
975 975
976 976 view.hidden_field_tag("#{tag_name}[blank]", "") +
977 977 view.render(:partial => 'attachments/form',
978 978 :locals => {
979 979 :attachment_param => tag_name,
980 980 :multiple => false,
981 981 :description => false,
982 982 :saved_attachments => [attachment].compact,
983 983 :filedrop => false
984 984 })
985 985 end
986 986 end
987 987 end
988 988 end
@@ -1,1465 +1,1465
1 1 html {overflow-y:scroll;}
2 2 body { font-family: Verdana, sans-serif; font-size: 12px; color:#333; margin: 0; padding: 0; min-width: 900px; }
3 3
4 4 h1, h2, h3, h4 {font-family: "Trebuchet MS", Verdana, sans-serif;padding: 2px 10px 1px 0px;margin: 0 0 10px 0;}
5 5 #content h1, h2, h3, h4 {color: #555;}
6 6 h2, .wiki h1 {font-size: 20px;}
7 7 h3, .wiki h2 {font-size: 16px;}
8 8 h4, .wiki h3 {font-size: 13px;}
9 9 h4 {border-bottom: 1px dotted #bbb;}
10 10 pre, code {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace;}
11 11
12 12 /***** Layout *****/
13 13 #wrapper {background: white;overflow: hidden;}
14 14
15 15 #top-menu {background: #3E5B76; color: #fff; height:1.8em; font-size: 0.8em; padding: 2px 2px 0px 6px;}
16 16 #top-menu ul {margin: 0; padding: 0;}
17 17 #top-menu li {
18 18 float:left;
19 19 list-style-type:none;
20 20 margin: 0px 0px 0px 0px;
21 21 padding: 0px 0px 0px 0px;
22 22 white-space:nowrap;
23 23 }
24 24 #top-menu a {color: #fff; margin-right: 8px; font-weight: bold;}
25 25 #top-menu #loggedas { float: right; margin-right: 0.5em; color: #fff; }
26 26
27 27 #account {float:right;}
28 28
29 29 #header {min-height:5.3em;margin:0;background-color:#628DB6;color:#f8f8f8; padding: 4px 8px 20px 6px; position:relative;}
30 30 #header a {color:#f8f8f8;}
31 31 #header h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
32 32 #header h1 .breadcrumbs { display:block; font-size: .5em; font-weight: normal; }
33 33
34 34 #quick-search {float:right;}
35 35 #quick-search #q {width:130px; height:24px; box-sizing:border-box; vertical-align:middle; border:1px solid #ccc; border-radius:3px;}
36 36
37 37 #main-menu {position: absolute; bottom: 0px; left:6px; margin-right: -500px; width: 100%;}
38 38 #main-menu ul {margin: 0; padding: 0; width: 100%; white-space: nowrap;}
39 39 #main-menu li {
40 40 float:none;
41 41 list-style-type:none;
42 42 margin: 0px 2px 0px 0px;
43 43 padding: 0px 0px 0px 0px;
44 44 white-space:nowrap;
45 45 display:inline-block;
46 46 }
47 47 #main-menu li a {
48 48 display: block;
49 49 color: #fff;
50 50 text-decoration: none;
51 51 font-weight: bold;
52 52 margin: 0;
53 53 padding: 4px 10px 4px 10px;
54 54 }
55 55 #main-menu li a:hover {background:#759FCF; color:#fff;}
56 56 #main-menu li:hover ul.menu-children, #main-menu li ul.menu-children.visible {display: block;}
57 57 #main-menu li a.selected, #main-menu li a.selected:hover {background:#fff; color:#555;}
58 58 #main-menu li a.new-object { background-color:#759FCF; }
59 59
60 60 #main-menu .menu-children {
61 61 display: none;
62 62 position:absolute;
63 63 width: inherit;
64 64 z-index:45;
65 65 background-color:#fff;
66 66 border-right: 1px solid #759FCF;
67 67 border-bottom: 1px solid #759FCF;
68 68 border-left: 1px solid #759FCF;
69 69 }
70 70 #main-menu .menu-children li {float:left; clear:both; width:100%;}
71 71 #main-menu .menu-children li a {color: #555; background-color:#fff; font-weight:normal;}
72 72 #main-menu .menu-children li a:hover {color: #fff; background-color: #759FCF;}
73 73
74 74 #main-menu .tabs-buttons {
75 75 right: 6px;
76 76 background-color: transparent;
77 77 border-bottom-color: transparent;
78 78 }
79 79
80 80 #admin-menu ul {margin: 0; padding: 0;}
81 81 #admin-menu li {margin: 0; padding: 0 0 6px 0; list-style-type:none;}
82 82
83 83 #main {background-color:#EEEEEE;}
84 84
85 85 #sidebar{ float: right; width: 22%; position: relative; z-index: 9; padding: 0; margin: 0;}
86 86 * html #sidebar{ width: 22%; }
87 87 #sidebar h3{ font-size: 14px; margin-top:14px; color: #666; }
88 88 #sidebar hr{ width: 100%; margin: 0 auto; height: 1px; background: #ccc; border: 0; }
89 89 * html #sidebar hr{ width: 95%; position: relative; left: -6px; color: #ccc; }
90 90 #sidebar .contextual { margin-right: 1em; }
91 91 #sidebar ul, ul.flat {margin: 0; padding: 0;}
92 92 #sidebar ul li, ul.flat li {list-style-type:none;margin: 0px 2px 0px 0px; padding: 0px 0px 0px 0px;}
93 93 #sidebar div.wiki ul {margin:inherit; padding-left:40px;}
94 94 #sidebar div.wiki ul li {list-style-type:inherit;}
95 95
96 96 #content { width: 75%; background-color: #fff; margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; z-index: 10; }
97 97 * html #content{ width: 75%; padding-left: 0; margin-top: 0px; padding: 6px 10px 10px 10px;}
98 98 html>body #content { min-height: 600px; }
99 99 * html body #content { height: 600px; } /* IE */
100 100
101 101 #main.nosidebar #sidebar{ display: none; }
102 102 #main.nosidebar #content{ width: auto; border-right: 0; }
103 103
104 104 #footer {clear: both; border-top: 1px solid #bbb; font-size: 0.9em; color: #aaa; padding: 5px; text-align:center; background:#fff;}
105 105
106 106 #login-form {margin:5em auto 2em auto; padding:20px; width:340px; border:1px solid #FDBF3B; background-color:#FFEBC1; border-radius:4px; box-sizing: border-box;}
107 107 #login-form label {display:block; margin-bottom:5px;}
108 108 #login-form input[type=text], #login-form input[type=password] {border:1px solid #ccc; border-radius:3px; margin-bottom:15px; padding:7px; display:block; width:100%; box-sizing: border-box;}
109 109 #login-form label {font-weight:bold;}
110 110 #login-form label[for=autologin] {font-weight:normal;}
111 111 #login-form a.lost_password {float:right; font-weight:normal;}
112 112 #login-form input#openid_url {background:#fff url(../images/openid-bg.gif) no-repeat 4px 50%; padding-left:24px !important;}
113 113 #login-form input#login-submit {margin-top:15px; padding:7px; display:block; width:100%; box-sizing: border-box;}
114 114
115 115 div.modal { border-radius:5px; background:#fff; z-index:50; padding:4px;}
116 116 div.modal h3.title {display:none;}
117 117 div.modal p.buttons {text-align:right; margin-bottom:0;}
118 118 div.modal .box p {margin: 0.3em 0;}
119 119
120 120 .clear:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden; }
121 121
122 122 .mobile-show {display: none;}
123 123
124 124 /***** Links *****/
125 125 a, a:link, a:visited{ color: #169; text-decoration: none; }
126 126 a:hover, a:active{ color: #c61a1a; text-decoration: underline;}
127 127 a img{ border: 0; }
128 128
129 129 a.issue.closed, a.issue.closed:link, a.issue.closed:visited { color: #999; text-decoration: line-through; }
130 130 a.project.closed, a.project.closed:link, a.project.closed:visited { color: #999; }
131 131 a.user.locked, a.user.locked:link, a.user.locked:visited {color: #999;}
132 132
133 133 #sidebar a.selected {line-height:1.7em; padding:1px 3px 2px 2px; margin-left:-2px; background-color:#9DB9D5; color:#fff; border-radius:2px;}
134 134 #sidebar a.selected:hover {text-decoration:none;}
135 135 #admin-menu a {line-height:1.7em;}
136 136 #admin-menu a.selected {padding-left: 20px !important; background-position: 2px 40%;}
137 137
138 138 a.collapsible {padding-left: 12px; background: url(../images/arrow_expanded.png) no-repeat -3px 40%;}
139 139 a.collapsible.collapsed {background: url(../images/arrow_collapsed.png) no-repeat -5px 40%;}
140 140
141 141 a#toggle-completed-versions {color:#999;}
142 142
143 143 a.toggle-checkboxes { margin-left: 5px; padding-left: 12px; background: url(../images/toggle_check.png) no-repeat 0% 50%; }
144 144
145 145 /***** Dropdown *****/
146 146 .drdn {position:relative;}
147 147 .drdn-trigger {
148 148 width:100%;
149 149 height:24px;
150 150 box-sizing:border-box;
151 151 overflow:hidden;
152 152 text-overflow:ellipsis;
153 153 white-space:nowrap;
154 154 padding:3px 18px 3px 6px;
155 155 background:#fff url(../images/sort_desc.png) no-repeat 97% 50%;
156 156 cursor:pointer;
157 157 user-select:none;
158 158 -moz-user-select:none;
159 159 -webkit-user-select:none;
160 160 }
161 161 .drdn-content {
162 162 display:none;
163 163 position:absolute;
164 164 right:0px;
165 165 top:25px;
166 166 min-width:100px;
167 167 background-color:#fff;
168 168 border:1px solid #ccc;
169 169 border-radius:4px;
170 170 color:#555;
171 171 z-index:99;
172 172 }
173 173 .drdn.expanded .drdn-trigger {background-image:url(../images/sort_asc.png);}
174 174 .drdn.expanded .drdn-content {display:block;}
175 175
176 176 .drdn-content .quick-search {margin:8px;}
177 177 .drdn-content .autocomplete {box-sizing: border-box; width:100% !important; height:28px;}
178 178 .drdn-content .autocomplete:focus {border-color:#5ad;}
179 179 .drdn-items {max-height:400px; overflow:auto;}
180 180 div + .drdn-items {border-top:1px solid #ccc;}
181 181 .drdn-items>* {
182 182 display:block;
183 183 border:1px solid #fff;
184 184 color:#555 !important;
185 185 overflow:hidden;
186 186 text-overflow: ellipsis;
187 187 white-space:nowrap;
188 188 padding:4px 8px;
189 189 }
190 190 .drdn-items>a:hover {text-decoration:none; background-color:#759FCF; color:#fff !important;}
191 191 .drdn-items>*:focus {border:1px dotted #bbb;}
192 192
193 193 .drdn-items.selection>*:before {
194 194 content:' ';
195 195 display:inline-block;
196 196 line-height:1em;
197 197 width:1em;
198 198 height:1em;
199 199 margin-right:4px;
200 200 font-weight:bold;
201 201 }
202 202 .drdn-items.selection>*.selected:before {
203 203 content:"\2713 ";
204 204 }
205 205 .drdn-items.selection:empty {
206 206 border: none;
207 207 }
208 208 .drdn-items>span {color:#999;}
209 209
210 210 #project-jump.drdn {width:200px;display:inline-block;}
211 211 #project-jump .drdn-trigger {
212 212 display:inline-block;
213 213 border-radius:3px;
214 214 border:1px solid #ccc;
215 215 margin:0 !important;
216 216 vertical-align:middle;
217 217 color:#555;
218 218 }
219 219 #project-jump .drdn-content {width:280px;}
220 220
221 221 /***** Tables *****/
222 222 table.list, .table-list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; }
223 223 table.list th, .table-list-header { background-color:#EEEEEE; padding: 4px; white-space:nowrap; font-weight:bold; }
224 224 table.list td {text-align:center; vertical-align:middle; padding-right:10px;}
225 225 table.list td.id { width: 2%; text-align: center;}
226 226 table.list td.name, table.list td.description, table.list td.subject, table.list td.comments, table.list td.roles {text-align: left;}
227 227 table.list td.tick {width:15%}
228 228 table.list td.checkbox { width: 15px; padding: 2px 0 0 0; }
229 229 table.list td.checkbox input {padding:0px;}
230 230 table.list td.buttons, div.buttons { white-space:nowrap; text-align: right; }
231 231 table.list td.buttons a, div.buttons a { margin-right: 0.6em; }
232 232 table.list td.buttons img, div.buttons img {vertical-align:middle;}
233 233 table.list td.reorder {width:15%; white-space:nowrap; text-align:center; }
234 234 table.list table.progress td {padding-right:0px;}
235 235 table.list caption { text-align: left; padding: 0.5em 0.5em 0.5em 0; }
236 236 #role-permissions-trackers table.list th {white-space:normal;}
237 237
238 238 .table-list-cell {display: table-cell; vertical-align: top; padding:2px; }
239 239 .table-list div.buttons {width: 15%;}
240 240
241 241 tr.project td.name a { white-space:nowrap; }
242 242 tr.project.closed, tr.project.archived { color: #aaa; }
243 243 tr.project.closed a, tr.project.archived a { color: #aaa; }
244 244
245 245 tr.project.idnt td.name span {background: url(../images/bullet_arrow_right.png) no-repeat 0 50%; padding-left: 16px;}
246 246 tr.project.idnt-1 td.name {padding-left: 0.5em;}
247 247 tr.project.idnt-2 td.name {padding-left: 2em;}
248 248 tr.project.idnt-3 td.name {padding-left: 3.5em;}
249 249 tr.project.idnt-4 td.name {padding-left: 5em;}
250 250 tr.project.idnt-5 td.name {padding-left: 6.5em;}
251 251 tr.project.idnt-6 td.name {padding-left: 8em;}
252 252 tr.project.idnt-7 td.name {padding-left: 9.5em;}
253 253 tr.project.idnt-8 td.name {padding-left: 11em;}
254 254 tr.project.idnt-9 td.name {padding-left: 12.5em;}
255 255
256 256 tr.issue { text-align: center; white-space: nowrap; }
257 257 tr.issue td.subject, tr.issue td.category, td.assigned_to, tr.issue td.string, tr.issue td.text, tr.issue td.list, tr.issue td.relations, tr.issue td.parent { white-space: normal; }
258 258 tr.issue td.relations { text-align: left; }
259 259 tr.issue td.done_ratio table.progress { margin-left:auto; margin-right: auto;}
260 260 tr.issue td.relations span {white-space: nowrap;}
261 261 table.issues td.description {color:#777; font-size:90%; padding:4px 4px 4px 24px; text-align:left; white-space:normal;}
262 262 table.issues td.description pre {white-space:normal;}
263 263
264 264 tr.issue.idnt td.subject {background: url(../images/bullet_arrow_right.png) no-repeat 0 50%;}
265 265 tr.issue.idnt-1 td.subject {padding-left: 24px; background-position: 8px 50%;}
266 266 tr.issue.idnt-2 td.subject {padding-left: 40px; background-position: 24px 50%;}
267 267 tr.issue.idnt-3 td.subject {padding-left: 56px; background-position: 40px 50%;}
268 268 tr.issue.idnt-4 td.subject {padding-left: 72px; background-position: 56px 50%;}
269 269 tr.issue.idnt-5 td.subject {padding-left: 88px; background-position: 72px 50%;}
270 270 tr.issue.idnt-6 td.subject {padding-left: 104px; background-position: 88px 50%;}
271 271 tr.issue.idnt-7 td.subject {padding-left: 120px; background-position: 104px 50%;}
272 272 tr.issue.idnt-8 td.subject {padding-left: 136px; background-position: 120px 50%;}
273 273 tr.issue.idnt-9 td.subject {padding-left: 152px; background-position: 136px 50%;}
274 274
275 275 table.issue-report {table-layout:fixed;}
276 276
277 277 tr.entry { border: 1px solid #f8f8f8; }
278 278 tr.entry td { white-space: nowrap; }
279 279 tr.entry td.filename {width:30%; text-align:left;}
280 280 tr.entry td.filename_no_report {width:70%; text-align:left;}
281 281 tr.entry td.size { text-align: right; font-size: 90%; }
282 282 tr.entry td.revision, tr.entry td.author { text-align: center; }
283 283 tr.entry td.age { text-align: right; }
284 284 tr.entry.file td.filename a { margin-left: 16px; }
285 285 tr.entry.file td.filename_no_report a { margin-left: 16px; }
286 286
287 287 tr span.expander {background-image: url(../images/bullet_toggle_plus.png); padding-left: 8px; margin-left: 0; cursor: pointer;}
288 288 tr.open span.expander {background-image: url(../images/bullet_toggle_minus.png);}
289 289
290 290 tr.changeset { height: 20px }
291 291 tr.changeset ul, ol { margin-top: 0px; margin-bottom: 0px; }
292 292 tr.changeset td.revision_graph { width: 15%; background-color: #fffffb; }
293 293 tr.changeset td.author { text-align: center; width: 15%; white-space:nowrap;}
294 294 tr.changeset td.committed_on { text-align: center; width: 15%; white-space:nowrap;}
295 295
296 296 table.files tbody th {text-align:left;}
297 297 table.files tr.file td.filename { text-align: left; padding-left: 24px; }
298 298 table.files tr.file td.digest { font-size: 80%; }
299 299
300 300 table.members td.roles, table.memberships td.roles { width: 45%; }
301 301
302 302 tr.message { height: 2.6em; }
303 303 tr.message td.created_on { white-space: nowrap; }
304 304 tr.message td.last_message { font-size: 80%; white-space: nowrap; }
305 305 tr.message.sticky td.subject { font-weight: bold; }
306 306
307 307 tr.version.closed, tr.version.closed a { color: #999; }
308 308 tr.version td.name { padding-left: 20px; }
309 309 tr.version td.date, tr.version td.status, tr.version td.sharing { text-align: center; white-space:nowrap; }
310 310
311 311 tr.member td.icon-user {background:transparent;}
312 312
313 313 tr.user td {width:13%;white-space: nowrap;}
314 314 td.username, td.firstname, td.lastname, td.email {text-align:left !important;}
315 315 tr.user td.email { width:18%; }
316 316 tr.user.locked, tr.user.registered { color: #aaa; }
317 317 tr.user.locked a, tr.user.registered a { color: #aaa; }
318 318
319 319 table.permissions td.role {color:#999;font-size:90%;font-weight:normal !important;text-align:center;vertical-align:bottom;}
320 320
321 321 tr.wiki-page-version td.updated_on, tr.wiki-page-version td.author {text-align:center;}
322 322
323 323 div.mypage-box table.time-entries tr.time-entry { background-color: #fff; }
324 324 div.mypage-box table.time-entries tr.odd { background-color:#f6f7f8; }
325 325 tr.time-entry { text-align: center; white-space: nowrap; }
326 326 tr.time-entry td.issue, tr.time-entry td.comments, tr.time-entry td.subject, tr.time-entry td.activity { text-align: left; white-space: normal; }
327 327 td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; }
328 328 td.hours .hours-dec { font-size: 0.9em; }
329 329
330 330 table.plugins td { vertical-align: middle; }
331 331 table.plugins td.configure { text-align: right; padding-right: 1em; }
332 332 table.plugins span.name { font-weight: bold; display: block; margin-bottom: 6px; }
333 333 table.plugins span.description { display: block; font-size: 0.9em; }
334 334 table.plugins span.url { display: block; font-size: 0.9em; }
335 335
336 336 table.list.enumerations {table-layout: fixed; margin-bottom: 2em;}
337 337
338 338 tr.group td { padding: 0.8em 0 0.5em 0.3em; border-bottom: 1px solid #ccc; text-align:left; background-color: #fff;}
339 339 tr.group span.name {font-weight:bold;}
340 340 tr.group span.count {font-weight:bold; position:relative; top:-1px; color:#fff; font-size:10px; background:#9DB9D5; padding:0px 6px 1px 6px; border-radius:3px; margin-left:4px;}
341 341 tr.group span.totals {color: #aaa; font-size: 80%;}
342 342 tr.group span.totals .value {font-weight:bold; color:#777;}
343 343 tr.group a.toggle-all { color: #aaa; font-size: 80%; display:none; float:right; margin-right:4px;}
344 344 tr.group:hover a.toggle-all { display:inline;}
345 345 a.toggle-all:hover {text-decoration:none;}
346 346
347 347 table.list tbody tr:hover { background-color:#ffffdd; }
348 348 table.list tbody tr.group:hover { background-color:inherit; }
349 349 table td {padding:2px;}
350 350 table p {margin:0;}
351 351
352 352 table.list:not(.odd-even) tbody tr:nth-child(odd), .odd, #issue-changesets div.changeset:nth-child(odd) { background-color:#f6f7f8; }
353 353 table.list:not(.odd-even) tbody tr:nth-child(even), .even, #issue-changesets div.changeset:nth-child(even) { background-color: #fff; }
354 354
355 355 tr.builtin td.name {font-style:italic;}
356 356
357 357 a.sort { padding-right: 16px; background-position: 100% 50%; background-repeat: no-repeat; }
358 358 a.sort.asc { background-image: url(../images/sort_asc.png); }
359 359 a.sort.desc { background-image: url(../images/sort_desc.png); }
360 360
361 361 table.boards a.board { background: url(../images/comment.png) no-repeat 0% 50%; padding-left: 20px; }
362 362 table.boards td.last-message {text-align:left;font-size:80%;}
363 363
364 364 div.table-list.boards .table-list-cell.name {width: 30%;}
365 365
366 366 #content table.list-simple {table-layout:fixed;}
367 367 #content table.list-simple td {white-space:nowrap; overflow:hidden; text-overflow: ellipsis; text-align:left;}
368 368 #content table.list-simple th.id, #content table.list-simple th.project {width:18%;}
369 369 #content table.list-simple th.status {width:14%;}
370 370
371 371 table.messages td.last_message {text-align:left;}
372 372
373 373 #query_form_content {font-size:90%;}
374 374
375 375 .query_sort_criteria_count {
376 376 display: inline-block;
377 377 min-width: 1em;
378 378 }
379 379
380 380 table.query-columns {
381 381 border-collapse: collapse;
382 382 border: 0;
383 383 }
384 384
385 385 table.query-columns td.buttons {
386 386 vertical-align: middle;
387 387 text-align: center;
388 388 }
389 389 table.query-columns td.buttons input[type=button] {width:35px;}
390 390 .query-totals {text-align:right;}
391 391 .query-totals>span:not(:first-child) {margin-left:0.6em;}
392 392 .query-totals .value {font-weight:bold;}
393 393 body.controller-issues .query-totals {margin-top:-2.3em;}
394 394
395 395 td.center {text-align:center;}
396 396
397 397 #watchers select {width: 95%; display: block;}
398 398 #watchers a.delete {opacity: 0.4; margin-left: 5px;}
399 399 #watchers a.delete:hover {opacity: 1;}
400 400 #watchers img.gravatar {margin: 0 4px 2px 0;}
401 401
402 402 span#watchers_inputs {overflow:auto; display:block;}
403 403 span.search_for_watchers {display:block;}
404 404 span.search_for_watchers, span.add_attachment {font-size:80%; line-height:2.5em;}
405 405 span.add_attachment a {padding-left:16px; background: url(../images/bullet_add.png) no-repeat 0 50%; }
406 406
407 407
408 408 .highlight { background-color: #FCFD8D;}
409 409 .highlight.token-1 { background-color: #faa;}
410 410 .highlight.token-2 { background-color: #afa;}
411 411 .highlight.token-3 { background-color: #aaf;}
412 412
413 413 .box{
414 414 padding:6px;
415 415 margin-bottom: 10px;
416 416 background-color:#f6f6f6;
417 417 color:#505050;
418 418 line-height:1.5em;
419 419 border: 1px solid #e4e4e4;
420 420 word-wrap: break-word;
421 421 border-radius: 3px;
422 422 }
423 423
424 424 div.square {
425 425 border: 1px solid #999;
426 426 float: left;
427 427 margin: .3em .4em 0 .4em;
428 428 overflow: hidden;
429 429 width: .6em; height: .6em;
430 430 }
431 431 .contextual {float:right; white-space: nowrap; line-height:1.4em;margin:5px 0px; padding-left: 10px; font-size:0.9em;}
432 432 .contextual .icon {padding-top: 2px; padding-bottom: 3px;}
433 433 .contextual input, .contextual select {font-size:0.9em;}
434 434 .message .contextual { margin-top: 0; }
435 435
436 436 .splitcontent {overflow:auto;}
437 437 .splitcontentleft{float:left; width:49%;}
438 438 .splitcontentright{float:right; width:49%;}
439 439 form {display: inline;}
440 440 input, select {vertical-align: middle; margin-top: 1px; margin-bottom: 1px;}
441 441 input[type="submit"] { -webkit-appearance: button; }
442 442 fieldset {border: 1px solid #e4e4e4; margin:0;}
443 443 legend {color: #333;}
444 444 hr { width: 100%; height: 1px; background: #ccc; border: 0;}
445 445 blockquote { font-style: italic; border-left: 3px solid #e0e0e0; padding-left: 0.6em; margin-left: 2.4em;}
446 446 blockquote blockquote { margin-left: 0;}
447 447 abbr, span.field-description[title] { border-bottom: 1px dotted #aaa; cursor: help; }
448 448 textarea.wiki-edit {width:99%; resize:vertical;}
449 449 body.textarea-monospace textarea.wiki-edit {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; font-size: 12px;}
450 450 body.textarea-proportional textarea.wiki-edit {font-family: Verdana, sans-serif; font-size: 12px;}
451 451 li p {margin-top: 0;}
452 452 div.issue {background:#ffffdd; padding:6px; margin-bottom:6px; border: 1px solid #d7d7d7; border-radius:3px;}
453 453 p.breadcrumb { font-size: 0.9em; margin: 4px 0 4px 0;}
454 454 p.subtitle { font-size: 0.9em; margin: -6px 0 12px 0; font-style: italic; }
455 455 p.footnote { font-size: 0.9em; margin-top: 0px; margin-bottom: 0px; }
456 456 .ltr {direction:ltr !important; unicode-bidi:bidi-override;}
457 457 .rtl {direction:rtl !important; unicode-bidi:bidi-override;}
458 458
459 459 div.issue div.subject div div { padding-left: 16px; }
460 460 div.issue div.subject p {margin: 0; margin-bottom: 0.1em; font-size: 90%; color: #999;}
461 461 div.issue div.subject>div>p { margin-top: 0.5em; }
462 462 div.issue div.subject h3 {margin: 0; margin-bottom: 0.1em;}
463 463 div.issue span.private, div.journal 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;}
464 464 div.issue .next-prev-links {color:#999;}
465 465 div.issue .attributes {margin-top: 2em;}
466 div.issue .attribute {padding-left:180px; clear:left; min-height: 1.8em;}
467 div.issue .attribute .label {width: 170px; margin-left:-180px; font-weight:bold; float:left; overflow:hidden; text-overflow: ellipsis;}
466 div.issue .attributes .attribute {padding-left:180px; clear:left; min-height: 1.8em;}
467 div.issue .attributes .attribute .label {width: 170px; margin-left:-180px; font-weight:bold; float:left; overflow:hidden; text-overflow: ellipsis;}
468 468 div.issue .attribute .value {overflow:hidden; text-overflow: ellipsis;}
469 469 div.issue.overdue .due-date .value { color: #c22; }
470 470
471 471 #issue_tree table.issues, #relations table.issues { border: 0; }
472 472 #issue_tree td.checkbox, #relations td.checkbox {display:none;}
473 473 #relations td.buttons {padding:0;}
474 474
475 475 fieldset.collapsible {border-width: 1px 0 0 0;}
476 476 fieldset.collapsible>legend { padding-left: 16px; background: url(../images/arrow_expanded.png) no-repeat 0% 40%; cursor:pointer; }
477 477 fieldset.collapsible.collapsed>legend { background-image: url(../images/arrow_collapsed.png); }
478 478
479 479 fieldset#date-range p { margin: 2px 0 2px 0; }
480 480 fieldset#filters table { border-collapse: collapse; }
481 481 fieldset#filters table td { padding: 0; vertical-align: middle; }
482 482 fieldset#filters tr.filter { height: 2.1em; }
483 483 fieldset#filters td.field { width:230px; }
484 484 fieldset#filters td.operator { width:130px; }
485 485 fieldset#filters td.operator select {max-width:120px;}
486 486 fieldset#filters td.values { white-space:nowrap; }
487 487 fieldset#filters td.values select {min-width:130px; max-width:200px;}
488 488 fieldset#filters td.values input {height:1em;}
489 489
490 490 #filters-table {width:60%; float:left;}
491 491 .add-filter {width:35%; float:right; text-align: right; vertical-align: top;}
492 492
493 493 #issue_is_private_wrap {float:right; margin-right:1em;}
494 494 .toggle-multiselect {background: url(../images/bullet_toggle_plus.png) no-repeat 0% 40%; padding-left:16px; margin-left:0; margin-right:5px; cursor:pointer;}
495 495 .buttons { font-size: 0.9em; margin-bottom: 1.4em; margin-top: 1em; }
496 496
497 497 div#issue-changesets {float:right; width:45%; margin-left: 1em; margin-bottom: 1em; background: #fff; padding-left: 1em; font-size: 90%;}
498 498 div#issue-changesets div.changeset { padding: 4px;}
499 499 div#issue-changesets div.changeset { border-bottom: 1px solid #ddd; }
500 500 div#issue-changesets p { margin-top: 0; margin-bottom: 1em;}
501 501 .changeset-comments {margin-bottom:1em; font-family:}
502 502
503 503 div.journal {overflow:auto;}
504 504 div.journal.private-notes {border-left:2px solid #d22; padding-left:4px; margin-left:-6px;}
505 505 div.journal ul.details, ul.revision-info {color:#959595; margin-bottom: 1.5em;}
506 506 div.journal ul.details a, ul.revision-info a {color:#70A7CD;}
507 507 div.journal ul.details a:hover, ul.revision-info a:hover {color:#D14848;}
508 508
509 509 div#activity dl, #search-results { margin-left: 2em; }
510 510 div#activity dd, #search-results dd { margin-bottom: 1em; padding-left: 18px; font-size: 0.9em; }
511 511 div#activity dt.me .time { border-bottom: 1px solid #999; }
512 512 div#activity dt .time { color: #777; font-size: 80%; }
513 513 div#activity dd .description, #search-results dd .description { font-style: italic; }
514 514 div#activity span.project:after, #search-results span.project:after { content: " -"; }
515 515 div#activity dd span.description, #search-results dd span.description { display:block; color: #808080; }
516 516 div#activity dt.grouped {margin-left:5em;}
517 517 div#activity dd.grouped {margin-left:9em;}
518 518 div#activity dt { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; height: 18px;}
519 519
520 520 #search-results dd { margin-bottom: 1em; padding-left: 20px; margin-left:0px; }
521 521
522 522 div#search-results-counts {float:right;}
523 523 div#search-results-counts ul { margin-top: 0.5em; }
524 524 div#search-results-counts li { list-style-type:none; float: left; margin-left: 1em; }
525 525
526 526 div#roadmap .related-issues { margin-bottom: 1em; }
527 527 div#roadmap .related-issues td.checkbox { display: none; }
528 528 div#roadmap .wiki h1:first-child { display: none; }
529 529 div#roadmap .wiki h1 { font-size: 120%; }
530 530 div#roadmap .wiki h2 { font-size: 110%; }
531 531 body.controller-versions.action-show div#roadmap .related-issues {width:70%;}
532 532
533 533 div#version-summary { float:right; width:28%; margin-left: 16px; margin-bottom: 16px; background-color: #fff; }
534 534 div#version-summary fieldset { margin-bottom: 1em; }
535 535 div#version-summary fieldset.time-tracking table { width:100%; }
536 536 div#version-summary th, div#version-summary td.total-hours { text-align: right; }
537 537
538 538 table#time-report td.hours, table#time-report th.period, table#time-report th.total { text-align: right; padding-right: 0.5em; }
539 539 table#time-report tbody tr.subtotal { font-style: italic; color:#777;}
540 540 table#time-report tbody tr.subtotal td.hours { color:#b0b0b0; }
541 541 table#time-report tbody tr.total { font-weight: bold; background-color:#EEEEEE; border-top:1px solid #e4e4e4;}
542 542 table#time-report .hours-dec { font-size: 0.9em; }
543 543
544 544 div.wiki-page .contextual a {opacity: 0.4}
545 545 div.wiki-page .contextual a:hover {opacity: 1}
546 546
547 547 form .attributes select { width: 60%; }
548 548 form .attributes select + a.icon-only { vertical-align: middle; margin-left: 4px; }
549 549 input#issue_subject, input#document_title { width: 99%; }
550 550 select#issue_done_ratio { width: 95px; }
551 551
552 552 ul.projects {margin:0; padding-left:1em;}
553 553 ul.projects ul {padding-left:1.6em;}
554 554 ul.projects.root {margin:0; padding:0;}
555 555 ul.projects li {list-style-type:none;}
556 556
557 557 #projects-index {
558 558 column-count: auto;
559 559 column-width: 400px;
560 560 -webkit-column-count: auto;
561 561 -webkit-column-width: 400px;
562 562 -webkit-column-gap : 0.5rem;
563 563 -moz-column-count: auto;
564 564 -moz-column-width: 400px;
565 565 -moz-column-gap : 0.5rem;
566 566 }
567 567 #projects-index ul.projects li.root>ul.projects { border-left: 3px solid #e0e0e0; padding-left:1em;}
568 568 #projects-index ul.projects li.root {margin-bottom: 1em;}
569 569 #projects-index ul.projects li.child {margin-top: 1em;}
570 570 #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; }
571 571 #projects-index a.icon-fav {padding-left:0; padding-right:20px; background-position:98% 50%;}
572 572
573 573 #notified-projects>ul, #tracker_project_ids>ul, #custom_field_project_ids>ul {max-height:250px; overflow-y:auto;}
574 574
575 575 #related-issues li img {vertical-align:middle;}
576 576
577 577 ul.properties {padding:0; font-size: 0.9em; color: #777;}
578 578 ul.properties li {list-style-type:none;}
579 579 ul.properties li span {font-style:italic;}
580 580
581 581 .total-hours { font-size: 110%; font-weight: bold; }
582 582 .total-hours span.hours-int { font-size: 120%; }
583 583
584 584 .autoscroll {overflow-x: auto; padding:1px; margin-bottom: 1.2em; position: relative;}
585 585 #user_login, #user_firstname, #user_lastname, #user_mail, #my_account_form select, #user_form select, #user_identity_url { width: 90%; }
586 586
587 587 #workflow_copy_form select { width: 200px; }
588 588 table.transitions td.enabled {background: #bfb;}
589 589 #workflow_form table select {font-size:90%; max-width:100px;}
590 590 table.fields_permissions td.readonly {background:#ddd;}
591 591 table.fields_permissions td.required {background:#d88;}
592 592
593 593 select.expandable {vertical-align:top;}
594 594
595 595 textarea#custom_field_possible_values {width: 95%; resize:vertical}
596 596 textarea#custom_field_default_value {width: 95%; resize:vertical}
597 597 .sort-handle {display:inline-block; vertical-align:middle;}
598 598
599 599 input#content_comments {width: 99%}
600 600
601 601 span.pagination {margin-left:3px; color:#888; display:block;}
602 602 .pagination ul.pages {
603 603 margin: 0 5px 0 0;
604 604 padding: 0;
605 605 display: inline;
606 606 }
607 607 .pagination ul.pages li {
608 608 display: inline-block;
609 609 padding: 0;
610 610 border: 1px solid #ddd;
611 611 margin-left: -1px;
612 612 line-height: 2em;
613 613 margin-bottom: 1em;
614 614 white-space: nowrap;
615 615 text-align: center;
616 616 }
617 617 .pagination ul.pages li a,
618 618 .pagination ul.pages li span {
619 619 padding: 3px 8px;
620 620 }
621 621 .pagination ul.pages li:first-child {
622 622 border-top-left-radius: 4px;
623 623 border-bottom-left-radius: 4px;
624 624 }
625 625 .pagination ul.pages li:last-child {
626 626 border-top-right-radius: 4px;
627 627 border-bottom-right-radius: 4px;
628 628 }
629 629 .pagination ul.pages li.current {
630 630 color: white;
631 631 background-color: #628DB6;
632 632 border-color: #628DB6;
633 633 }
634 634 .pagination ul.pages li.page:hover {
635 635 background-color: #ddd;
636 636 }
637 637 .pagination ul.pages li.page a:hover,
638 638 .pagination ul.pages li.page a:active {
639 639 color: #169;
640 640 text-decoration: inherit;
641 641 }
642 642 .pagination .per-page span.selected {
643 643 font-weight: bold;
644 644 }
645 645 span.pagination>span {white-space:nowrap;}
646 646
647 647 #search-form fieldset p {margin:0.2em 0;}
648 648
649 649 /***** Tabular forms ******/
650 650 .tabular p{
651 651 margin: 0;
652 652 padding: 3px 0 3px 0;
653 653 padding-left: 180px; /* width of left column containing the label elements */
654 654 min-height: 2em;
655 655 clear:left;
656 656 }
657 657
658 658 html>body .tabular p {overflow:hidden;}
659 659
660 660 .tabular input, .tabular select {max-width:95%}
661 661 .tabular textarea {width:95%; resize:vertical;}
662 662
663 663 .tabular label{
664 664 font-weight: bold;
665 665 float: left;
666 666 text-align: right;
667 667 /* width of left column */
668 668 margin-left: -180px;
669 669 /* width of labels. Should be smaller than left column to create some right margin */
670 670 width: 175px;
671 671 }
672 672
673 673 .tabular label.floating{
674 674 font-weight: normal;
675 675 margin-left: 0px;
676 676 text-align: left;
677 677 width: 270px;
678 678 }
679 679
680 680 label.block {
681 681 display: block;
682 682 width: auto !important;
683 683 }
684 684
685 685 .tabular label.block{
686 686 font-weight: normal;
687 687 margin-left: 0px !important;
688 688 text-align: left;
689 689 float: none;
690 690 }
691 691
692 692 .tabular label.inline{
693 693 font-weight: normal;
694 694 float:none;
695 695 margin-left: 5px !important;
696 696 width: auto;
697 697 }
698 698
699 699 label.no-css {
700 700 font-weight: inherit;
701 701 float:none;
702 702 text-align:left;
703 703 margin-left:0px;
704 704 width:auto;
705 705 }
706 706 input#time_entry_comments { width: 90%;}
707 707
708 708 #preview fieldset {margin-top: 1em; background: url(../images/draft.png)}
709 709
710 710 .tabular.settings p{ padding-left: 300px; }
711 711 .tabular.settings label{ margin-left: -300px; width: 295px; }
712 712 .tabular.settings textarea { width: 99%; }
713 713
714 714 .settings.enabled_scm table {width:100%}
715 715 .settings.enabled_scm td.scm_name{ font-weight: bold; }
716 716
717 717 fieldset.settings label { display: block; }
718 718 fieldset#notified_events .parent { padding-left: 20px; }
719 719
720 720 span.required {color: #bb0000;}
721 721 .summary {font-style: italic;}
722 722
723 723 .check_box_group {
724 724 display:block;
725 725 width:95%;
726 726 max-height:300px;
727 727 overflow-y:auto;
728 728 padding:2px 4px 4px 2px;
729 729 background:#fff;
730 730 border:1px solid #9EB1C2;
731 731 border-radius:2px
732 732 }
733 733 .check_box_group label {
734 734 font-weight: normal;
735 735 margin-left: 0px !important;
736 736 text-align: left;
737 737 float: none;
738 738 display: block;
739 739 width: auto;
740 740 }
741 741 .check_box_group.bool_cf {border:0; background:inherit;}
742 742 .check_box_group.bool_cf label {display: inline;}
743 743
744 744 .attachments_fields input.description, #existing-attachments input.description {margin-left:4px; width:340px;}
745 745 .attachments_fields>span, #existing-attachments>span {display:block; white-space:nowrap;}
746 746 .attachments_fields input.filename, #existing-attachments .filename {border:0; width:250px; color:#555; background-color:inherit; }
747 747 .tabular input.filename {max-width:75% !important;}
748 748 .attachments_fields input.filename {height:1.8em;}
749 749 .attachments_fields .ajax-waiting input.filename {background:url(../images/hourglass.png) no-repeat 0px 50%;}
750 750 .attachments_fields .ajax-loading input.filename {background:url(../images/loading.gif) no-repeat 0px 50%;}
751 751 .attachments_fields div.ui-progressbar { width: 100px; height:14px; margin: 2px 0 -5px 8px; display: inline-block; }
752 752
753 753 a.remove-upload:hover {text-decoration:none !important;}
754 754 .existing-attachment.deleted .filename {text-decoration:line-through; color:#999 !important;}
755 755
756 756 div.fileover { background-color: lavender; }
757 757
758 758 div.attachments { margin: 12px 0; }
759 759 div.attachments p { margin:4px 0 2px 0; }
760 760 div.attachments img { vertical-align: middle; }
761 761 div.attachments span.author { font-size: 0.9em; color: #888; }
762 762
763 763 div.thumbnails {margin:0.6em;}
764 764 div.thumbnails div {background:#fff;border:2px solid #ddd;display:inline-block;margin-right:2px;}
765 765 div.thumbnails img {margin: 3px; vertical-align: middle;}
766 766 #history div.thumbnails {margin-left: 2em;}
767 767
768 768 p.other-formats { text-align: right; font-size:0.9em; color: #666; }
769 769 .other-formats span + span:before { content: "| "; }
770 770
771 771 a.atom { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; }
772 772
773 773 em.info {font-style:normal;font-size:90%;color:#888;display:block;}
774 774 em.info.error {padding-left:20px; background:url(../images/exclamation.png) no-repeat 0 50%;}
775 775
776 776 textarea.text_cf {width:95%; resize:vertical;}
777 777 input.string_cf, input.link_cf {width:95%;}
778 778 select.bool_cf {width:auto !important;}
779 779
780 780 #tab-content-modules fieldset p {margin:3px 0 4px 0;}
781 781
782 782 #tab-content-users .splitcontentleft {width: 64%;}
783 783 #tab-content-users .splitcontentright {width: 34%;}
784 784 #tab-content-users fieldset {padding:1em; margin-bottom: 1em;}
785 785 #tab-content-users fieldset legend {font-weight: bold;}
786 786 #tab-content-users fieldset label {display: block;}
787 787 #tab-content-users #principals {max-height: 400px; overflow: auto;}
788 788
789 789 #users_for_watcher {height: 200px; overflow:auto;}
790 790 #users_for_watcher label {display: block;}
791 791
792 792 input#principal_search, input#user_search {width:90%}
793 793 .roles-selection label {display:inline-block; width:210px;}
794 794
795 795 input.autocomplete {
796 796 background: #fff url(../images/magnifier.png) no-repeat 2px 50%; padding-left:20px !important;
797 797 border:1px solid #9EB1C2; border-radius:2px; height:1.5em;
798 798 }
799 799 input.autocomplete.ajax-loading {
800 800 background-image: url(../images/loading.gif);
801 801 }
802 802
803 803 .role-visibility {padding-left:2em;}
804 804
805 805 .objects-selection {
806 806 height: 300px;
807 807 overflow: auto;
808 808 margin-bottom: 1em;
809 809 }
810 810
811 811 .objects-selection label {
812 812 display: block;
813 813 }
814 814
815 815 .objects-selection>div, #user_group_ids {
816 816 column-count: auto;
817 817 column-width: 200px;
818 818 -webkit-column-count: auto;
819 819 -webkit-column-width: 200px;
820 820 -webkit-column-gap : 0.5rem;
821 821 -webkit-column-rule: 1px solid #ccc;
822 822 -moz-column-count: auto;
823 823 -moz-column-width: 200px;
824 824 -moz-column-gap : 0.5rem;
825 825 -moz-column-rule: 1px solid #ccc;
826 826 }
827 827
828 828 /***** Flash & error messages ****/
829 829 #errorExplanation, div.flash, .nodata, .warning, .conflict {
830 830 padding: 6px 4px 6px 30px;
831 831 margin-bottom: 12px;
832 832 font-size: 1.1em;
833 833 border: 1px solid;
834 834 border-radius: 3px;
835 835 }
836 836
837 837 div.flash {margin-top: 8px;}
838 838
839 839 div.flash.error, #errorExplanation {
840 840 background: url(../images/exclamation.png) 8px 50% no-repeat;
841 841 background-color: #ffe3e3;
842 842 border-color: #d88;
843 843 color: #880000;
844 844 }
845 845
846 846 div.flash.notice {
847 847 background: url(../images/true.png) 8px 5px no-repeat;
848 848 background-color: #dfffdf;
849 849 border-color: #9fcf9f;
850 850 color: #005f00;
851 851 }
852 852
853 853 div.flash.warning, .conflict {
854 854 background: url(../images/warning.png) 8px 5px no-repeat;
855 855 background-color: #F3EDD1;
856 856 border-color: #eadbbc;
857 857 color: #A6750C;
858 858 text-align: left;
859 859 }
860 860
861 861 .nodata, .warning {
862 862 text-align: center;
863 863 background-color: #F3EDD1;
864 864 border-color: #eadbbc;
865 865 color: #A6750C;
866 866 }
867 867
868 868 #errorExplanation ul { font-size: 0.9em;}
869 869 #errorExplanation h2, #errorExplanation p { display: none; }
870 870
871 871 .conflict-details {font-size:80%;}
872 872
873 873 /***** Ajax indicator ******/
874 874 #ajax-indicator {
875 875 position: absolute; /* fixed not supported by IE */
876 876 background-color:#eee;
877 877 border: 1px solid #bbb;
878 878 top:35%;
879 879 left:40%;
880 880 width:20%;
881 881 font-weight:bold;
882 882 text-align:center;
883 883 padding:0.6em;
884 884 z-index:100;
885 885 opacity: 0.5;
886 886 }
887 887
888 888 html>body #ajax-indicator { position: fixed; }
889 889
890 890 #ajax-indicator span {
891 891 background-position: 0% 40%;
892 892 background-repeat: no-repeat;
893 893 background-image: url(../images/loading.gif);
894 894 padding-left: 26px;
895 895 vertical-align: bottom;
896 896 }
897 897
898 898 /***** Calendar *****/
899 899 table.cal {border-collapse: collapse; width: 100%; margin: 0px 0 6px 0;border: 1px solid #d7d7d7;}
900 900 table.cal thead th {width: 14%; background-color:#EEEEEE; padding: 4px; }
901 901 table.cal thead th.week-number {width: auto;}
902 902 table.cal tbody tr {height: 100px;}
903 903 table.cal td .icon {padding-top: 2px; padding-bottom: 3px;}
904 904 table.cal td {border: 1px solid #d7d7d7; vertical-align: top; font-size: 0.9em;}
905 905 table.cal td.week-number { background-color:#EEEEEE; padding: 4px; border:none; font-size: 1em;}
906 906 table.cal td p.day-num {font-size: 1.1em; text-align:right;}
907 907 table.cal td.odd p.day-num {color: #bbb;}
908 908 table.cal td.today {background:#ffffdd;}
909 909 table.cal td.today p.day-num {font-weight: bold;}
910 910 table.cal .starting a, p.cal.legend .starting {background: url(../images/bullet_go.png) no-repeat -1px -2px; padding-left:16px;}
911 911 table.cal .ending a, p.cal.legend .ending {background: url(../images/bullet_end.png) no-repeat -1px -2px; padding-left:16px;}
912 912 table.cal .starting.ending a, p.cal.legend .starting.ending {background: url(../images/bullet_diamond.png) no-repeat -1px -2px; padding-left:16px;}
913 913 p.cal.legend span {display:block;}
914 914
915 915 /***** Tooltips ******/
916 916 .tooltip{position:relative;z-index:24;}
917 917 .tooltip:hover{z-index:25;color:#000;}
918 918 .tooltip span.tip{display: none; text-align:left;}
919 919
920 920 div.tooltip:hover span.tip{
921 921 display:block;
922 922 position:absolute;
923 923 top:12px; width:270px;
924 924 border:1px solid #555;
925 925 background-color:#fff;
926 926 padding: 4px;
927 927 font-size: 0.8em;
928 928 color:#505050;
929 929 }
930 930
931 931 img.ui-datepicker-trigger {
932 932 cursor: pointer;
933 933 vertical-align: middle;
934 934 margin-left: 4px;
935 935 }
936 936
937 937 /***** Progress bar *****/
938 938 table.progress {
939 939 border-collapse: collapse;
940 940 border-spacing: 0pt;
941 941 empty-cells: show;
942 942 text-align: center;
943 943 float:left;
944 944 margin: 1px 6px 1px 0px;
945 945 }
946 946
947 947 table.progress {width:80px;}
948 948 table.progress td { height: 1em; }
949 949 table.progress td.closed { background: #BAE0BA none repeat scroll 0%; }
950 950 table.progress td.done { background: #D3EDD3 none repeat scroll 0%; }
951 951 table.progress td.todo { background: #eee none repeat scroll 0%; }
952 952 p.percent {font-size: 80%; margin:0;}
953 953 p.progress-info {clear: left; font-size: 80%; margin-top:-4px; color:#777;}
954 954
955 955 .version-overview table.progress {width:40em;}
956 956 .version-overview table.progress td { height: 1.2em; }
957 957
958 958 /***** Tabs *****/
959 959 #content .tabs {height: 2.6em; margin-bottom:1.2em; position:relative; overflow:hidden;}
960 960 #content .tabs ul {margin:0; position:absolute; bottom:0; padding-left:0.5em; width: 2000px; border-bottom: 1px solid #bbbbbb;}
961 961 #content .tabs ul li {
962 962 float:left;
963 963 list-style-type:none;
964 964 white-space:nowrap;
965 965 margin-right:4px;
966 966 background:#fff;
967 967 position:relative;
968 968 margin-bottom:-1px;
969 969 }
970 970 #content .tabs ul li a{
971 971 display:block;
972 972 font-size: 0.9em;
973 973 text-decoration:none;
974 974 line-height:1.3em;
975 975 padding:4px 6px 4px 6px;
976 976 border: 1px solid #ccc;
977 977 border-bottom: 1px solid #bbbbbb;
978 978 background-color: #f6f6f6;
979 979 color:#999;
980 980 font-weight:bold;
981 981 border-top-left-radius:3px;
982 982 border-top-right-radius:3px;
983 983 }
984 984
985 985 #content .tabs ul li a:hover {
986 986 background-color: #ffffdd;
987 987 text-decoration:none;
988 988 }
989 989
990 990 #content .tabs ul li a.selected {
991 991 background-color: #fff;
992 992 border: 1px solid #bbbbbb;
993 993 border-bottom: 1px solid #fff;
994 994 color:#444;
995 995 }
996 996
997 997 #content .tabs ul li a.selected:hover {background-color: #fff;}
998 998
999 999 div.tabs-buttons { position:absolute; right: 0; width: 54px; height: 24px; background: white; bottom: 0; border-bottom: 1px solid #bbbbbb; }
1000 1000
1001 1001 button.tab-left, button.tab-right {
1002 1002 font-size: 0.9em;
1003 1003 cursor: pointer;
1004 1004 height:24px;
1005 1005 border: 1px solid #ccc;
1006 1006 border-bottom: 1px solid #bbbbbb;
1007 1007 position:absolute;
1008 1008 padding:4px;
1009 1009 width: 20px;
1010 1010 bottom: -1px;
1011 1011 }
1012 1012 button.tab-left:hover, button.tab-right:hover {
1013 1013 background-color: #f5f5f5;
1014 1014 }
1015 1015 button.tab-left:focus, button.tab-right:focus {
1016 1016 outline: 0;
1017 1017 }
1018 1018
1019 1019 button.tab-left {
1020 1020 right: 20px;
1021 1021 background: #eeeeee url(../images/bullet_arrow_left.png) no-repeat 50% 50%;
1022 1022 border-top-left-radius:3px;
1023 1023 }
1024 1024
1025 1025 button.tab-right {
1026 1026 right: 0;
1027 1027 background: #eeeeee url(../images/bullet_arrow_right.png) no-repeat 50% 50%;
1028 1028 border-top-right-radius:3px;
1029 1029 }
1030 1030
1031 1031 button.tab-left.disabled, button.tab-right.disabled {
1032 1032 background-color: #ccc;
1033 1033 cursor: unset;
1034 1034 }
1035 1035
1036 1036 /***** Diff *****/
1037 1037 .diff_out { background: #fcc; }
1038 1038 .diff_out span { background: #faa; }
1039 1039 .diff_in { background: #cfc; }
1040 1040 .diff_in span { background: #afa; }
1041 1041
1042 1042 .text-diff {
1043 1043 padding: 1em;
1044 1044 background-color:#f6f6f6;
1045 1045 color:#505050;
1046 1046 border: 1px solid #e4e4e4;
1047 1047 }
1048 1048
1049 1049 /***** Wiki *****/
1050 1050 div.wiki table {
1051 1051 border-collapse: collapse;
1052 1052 margin-bottom: 1em;
1053 1053 }
1054 1054
1055 1055 div.wiki table, div.wiki td, div.wiki th {
1056 1056 border: 1px solid #bbb;
1057 1057 padding: 4px;
1058 1058 }
1059 1059
1060 1060 div.wiki .noborder, div.wiki .noborder td, div.wiki .noborder th {border:0;}
1061 1061
1062 1062 div.wiki .external {
1063 1063 background-position: 0% 60%;
1064 1064 background-repeat: no-repeat;
1065 1065 padding-left: 12px;
1066 1066 background-image: url(../images/external.png);
1067 1067 }
1068 1068
1069 1069 div.wiki a {word-wrap: break-word;}
1070 1070 div.wiki a.new {color: #b73535;}
1071 1071
1072 1072 div.wiki ul, div.wiki ol {margin-bottom:1em;}
1073 1073 div.wiki li>ul, div.wiki li>ol {margin-bottom: 0;}
1074 1074
1075 1075 div.wiki pre {
1076 1076 margin: 1em 1em 1em 1.6em;
1077 1077 padding: 8px;
1078 1078 background-color: #fafafa;
1079 1079 border: 1px solid #e2e2e2;
1080 1080 border-radius: 3px;
1081 1081 width:auto;
1082 1082 overflow-x: auto;
1083 1083 overflow-y: hidden;
1084 1084 }
1085 1085
1086 1086 div.wiki ul.toc {
1087 1087 background-color: #ffffdd;
1088 1088 border: 1px solid #e4e4e4;
1089 1089 padding: 4px;
1090 1090 line-height: 1.2em;
1091 1091 margin-bottom: 12px;
1092 1092 margin-right: 12px;
1093 1093 margin-left: 0;
1094 1094 display: table
1095 1095 }
1096 1096 * html div.wiki ul.toc { width: 50%; } /* IE6 doesn't autosize div */
1097 1097
1098 1098 div.wiki ul.toc.right { float: right; margin-left: 12px; margin-right: 0; width: auto; }
1099 1099 div.wiki ul.toc.left { float: left; margin-right: 12px; margin-left: 0; width: auto; }
1100 1100 div.wiki ul.toc ul { margin: 0; padding: 0; }
1101 1101 div.wiki ul.toc li {list-style-type:none; margin: 0; font-size:12px;}
1102 1102 div.wiki ul.toc>li:first-child {margin-bottom: .5em; color: #777;}
1103 1103 div.wiki ul.toc li li {margin-left: 1.5em; font-size:10px;}
1104 1104 div.wiki ul.toc a {
1105 1105 font-size: 0.9em;
1106 1106 font-weight: normal;
1107 1107 text-decoration: none;
1108 1108 color: #606060;
1109 1109 }
1110 1110 div.wiki ul.toc a:hover { color: #c61a1a; text-decoration: underline;}
1111 1111
1112 1112 a.wiki-anchor { display: none; margin-left: 6px; text-decoration: none; }
1113 1113 a.wiki-anchor:hover { color: #aaa !important; text-decoration: none; }
1114 1114 h1:hover a.wiki-anchor, h2:hover a.wiki-anchor, h3:hover a.wiki-anchor { display: inline; color: #ddd; }
1115 1115
1116 1116 div.wiki img {vertical-align:middle; max-width:100%;}
1117 1117
1118 1118 /***** My page layout *****/
1119 1119 .block-receiver {
1120 1120 border:1px dashed #c0c0c0;
1121 1121 margin-bottom: 20px;
1122 1122 padding: 15px 0 15px 0;
1123 1123 }
1124 1124
1125 1125 .mypage-box {
1126 1126 margin:0 0 20px 0;
1127 1127 color:#505050;
1128 1128 line-height:1.5em;
1129 1129 }
1130 1130 .mypage-box .icon-close {
1131 1131 float:right;
1132 1132 }
1133 1133
1134 1134 .handle {cursor: move;}
1135 1135
1136 1136 /***** Gantt chart *****/
1137 1137 .gantt_hdr {
1138 1138 position:absolute;
1139 1139 top:0;
1140 1140 height:16px;
1141 1141 border-top: 1px solid #c0c0c0;
1142 1142 border-bottom: 1px solid #c0c0c0;
1143 1143 border-right: 1px solid #c0c0c0;
1144 1144 text-align: center;
1145 1145 overflow: hidden;
1146 1146 }
1147 1147
1148 1148 .gantt_hdr.nwday {background-color:#f1f1f1; color:#999;}
1149 1149
1150 1150 .gantt_subjects { font-size: 0.8em; }
1151 1151 .gantt_subjects div { line-height:16px;height:16px;overflow:hidden;white-space:nowrap;text-overflow: ellipsis; }
1152 1152
1153 1153 .task {
1154 1154 position: absolute;
1155 1155 height:8px;
1156 1156 font-size:0.8em;
1157 1157 color:#888;
1158 1158 padding:0;
1159 1159 margin:0;
1160 1160 line-height:16px;
1161 1161 white-space:nowrap;
1162 1162 }
1163 1163
1164 1164 .task.label {width:100%;}
1165 1165 .task.label.project, .task.label.version { font-weight: bold; }
1166 1166
1167 1167 .task_late { background:#f66 url(../images/task_late.png); border: 1px solid #f66; }
1168 1168 .task_done { background:#00c600 url(../images/task_done.png); border: 1px solid #00c600; }
1169 1169 .task_todo { background:#aaa url(../images/task_todo.png); border: 1px solid #aaa; }
1170 1170
1171 1171 .task_todo.parent { background: #888; border: 1px solid #888; height: 3px;}
1172 1172 .task_late.parent, .task_done.parent { height: 3px;}
1173 1173 .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;}
1174 1174 .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;}
1175 1175
1176 1176 .version.task_late { background:#f66 url(../images/milestone_late.png); border: 1px solid #f66; height: 2px; margin-top: 3px;}
1177 1177 .version.task_done { background:#00c600 url(../images/milestone_done.png); border: 1px solid #00c600; height: 2px; margin-top: 3px;}
1178 1178 .version.task_todo { background:#fff url(../images/milestone_todo.png); border: 1px solid #fff; height: 2px; margin-top: 3px;}
1179 1179 .version.marker { background-image:url(../images/version_marker.png); background-repeat: no-repeat; border: 0; margin-left: -4px; margin-top: 1px; }
1180 1180
1181 1181 .project.task_late { background:#f66 url(../images/milestone_late.png); border: 1px solid #f66; height: 2px; margin-top: 3px;}
1182 1182 .project.task_done { background:#00c600 url(../images/milestone_done.png); border: 1px solid #00c600; height: 2px; margin-top: 3px;}
1183 1183 .project.task_todo { background:#fff url(../images/milestone_todo.png); border: 1px solid #fff; height: 2px; margin-top: 3px;}
1184 1184 .project.marker { background-image:url(../images/project_marker.png); background-repeat: no-repeat; border: 0; margin-left: -4px; margin-top: 1px; }
1185 1185
1186 1186 .version-behind-schedule a, .issue-behind-schedule a {color: #f66914;}
1187 1187 .version-overdue a, .issue-overdue a, .project-overdue a {color: #f00;}
1188 1188
1189 1189 /***** Icons *****/
1190 1190 .icon {
1191 1191 background-position: 0% 50%;
1192 1192 background-repeat: no-repeat;
1193 1193 padding-left: 20px;
1194 1194 }
1195 1195 .icon-only {
1196 1196 background-position: 0% 50%;
1197 1197 background-repeat: no-repeat;
1198 1198 padding-left: 16px;
1199 1199 display: inline-block;
1200 1200 width: 0;
1201 1201 height: 16px;
1202 1202 overflow: hidden;
1203 1203 padding-top: 0;
1204 1204 padding-bottom: 0;
1205 1205 font-size: 8px;
1206 1206 vertical-align: middle;
1207 1207 }
1208 1208 .icon-only::after {
1209 1209 content: "&nbsp;";
1210 1210 }
1211 1211
1212 1212 .icon-add { background-image: url(../images/add.png); }
1213 1213 .icon-edit { background-image: url(../images/edit.png); }
1214 1214 .icon-copy { background-image: url(../images/copy.png); }
1215 1215 .icon-duplicate { background-image: url(../images/duplicate.png); }
1216 1216 .icon-del { background-image: url(../images/delete.png); }
1217 1217 .icon-move { background-image: url(../images/move.png); }
1218 1218 .icon-save { background-image: url(../images/save.png); }
1219 1219 .icon-cancel { background-image: url(../images/cancel.png); }
1220 1220 .icon-multiple { background-image: url(../images/table_multiple.png); }
1221 1221 .icon-folder { background-image: url(../images/folder.png); }
1222 1222 .open .icon-folder { background-image: url(../images/folder_open.png); }
1223 1223 .icon-package { background-image: url(../images/package.png); }
1224 1224 .icon-user { background-image: url(../images/user.png); }
1225 1225 .icon-project, .icon-projects { background-image: url(../images/projects.png); }
1226 1226 .icon-help { background-image: url(../images/help.png); }
1227 1227 .icon-attachment { background-image: url(../images/attachment.png); }
1228 1228 .icon-history { background-image: url(../images/history.png); }
1229 1229 .icon-time-entry, .icon-time { background-image: url(../images/time.png); }
1230 1230 .icon-time-add { background-image: url(../images/time_add.png); }
1231 1231 .icon-stats { background-image: url(../images/stats.png); }
1232 1232 .icon-warning { background-image: url(../images/warning.png); }
1233 1233 .icon-error { background-image: url(../images/exclamation.png); }
1234 1234 .icon-fav { background-image: url(../images/fav.png); }
1235 1235 .icon-fav-off { background-image: url(../images/fav_off.png); }
1236 1236 .icon-reload { background-image: url(../images/reload.png); }
1237 1237 .icon-lock, .icon-locked { background-image: url(../images/locked.png); }
1238 1238 .icon-unlock { background-image: url(../images/unlock.png); }
1239 1239 .icon-checked { background-image: url(../images/toggle_check.png); }
1240 1240 .icon-report { background-image: url(../images/report.png); }
1241 1241 .icon-comment, .icon-comments { background-image: url(../images/comment.png); }
1242 1242 .icon-summary { background-image: url(../images/lightning.png); }
1243 1243 .icon-server-authentication { background-image: url(../images/server_key.png); }
1244 1244 .icon-issue { background-image: url(../images/ticket.png); }
1245 1245 .icon-zoom-in { background-image: url(../images/zoom_in.png); }
1246 1246 .icon-zoom-out { background-image: url(../images/zoom_out.png); }
1247 1247 .icon-magnifier { background-image: url(../images/magnifier.png); }
1248 1248 .icon-passwd { background-image: url(../images/textfield_key.png); }
1249 1249 .icon-arrow-right, .icon-test, .icon-sticky { background-image: url(../images/bullet_go.png); }
1250 1250 .icon-email { background-image: url(../images/email.png); }
1251 1251 .icon-email-disabled { background-image: url(../images/email_disabled.png); }
1252 1252 .icon-email-add { background-image: url(../images/email_add.png); }
1253 1253 .icon-move-up { background-image: url(../images/1uparrow.png); }
1254 1254 .icon-move-top { background-image: url(../images/2uparrow.png); }
1255 1255 .icon-move-down { background-image: url(../images/1downarrow.png); }
1256 1256 .icon-move-bottom { background-image: url(../images/2downarrow.png); }
1257 1257 .icon-ok { background-image: url(../images/true.png); }
1258 1258 .icon-not-ok { background-image: url(../images/false.png); }
1259 1259 .icon-link-break { background-image: url(../images/link_break.png); }
1260 1260 .icon-list { background-image: url(../images/text_list_bullets.png); }
1261 1261 .icon-close { background-image: url(../images/close.png); }
1262 1262 .icon-close:hover { background-image: url(../images/close_hl.png); }
1263 1263 .icon-settings { background-image: url(../images/changeset.png); }
1264 1264 .icon-group, .icon-groupnonmember, .icon-groupanonymous { background-image: url(../images/group.png); }
1265 1265 .icon-roles { background-image: url(../images/database_key.png); }
1266 1266 .icon-issue-edit { background-image: url(../images/ticket_edit.png); }
1267 1267 .icon-workflows { background-image: url(../images/ticket_go.png); }
1268 1268 .icon-custom-fields { background-image: url(../images/textfield.png); }
1269 1269 .icon-plugins { background-image: url(../images/plugin.png); }
1270 1270 .icon-news { background-image: url(../images/news.png); }
1271 1271 .icon-issue-closed { background-image: url(../images/ticket_checked.png); }
1272 1272 .icon-issue-note { background-image: url(../images/ticket_note.png); }
1273 1273 .icon-changeset { background-image: url(../images/changeset.png); }
1274 1274 .icon-message { background-image: url(../images/message.png); }
1275 1275 .icon-reply { background-image: url(../images/comments.png); }
1276 1276 .icon-wiki-page { background-image: url(../images/wiki_edit.png); }
1277 1277 .icon-document { background-image: url(../images/document.png); }
1278 1278 .icon-project { background-image: url(../images/projects.png); }
1279 1279 .icon-add-bullet { background-image: url(../images/bullet_add.png); }
1280 1280 .icon-shared { background-image: url(../images/link.png) };
1281 1281
1282 1282 .icon-file { background-image: url(../images/files/default.png); }
1283 1283 .icon-file.text-plain { background-image: url(../images/files/text.png); }
1284 1284 .icon-file.text-x-c { background-image: url(../images/files/c.png); }
1285 1285 .icon-file.text-x-csharp { background-image: url(../images/files/csharp.png); }
1286 1286 .icon-file.text-x-java { background-image: url(../images/files/java.png); }
1287 1287 .icon-file.text-x-javascript { background-image: url(../images/files/js.png); }
1288 1288 .icon-file.text-x-php { background-image: url(../images/files/php.png); }
1289 1289 .icon-file.text-x-ruby { background-image: url(../images/files/ruby.png); }
1290 1290 .icon-file.text-xml { background-image: url(../images/files/xml.png); }
1291 1291 .icon-file.text-css { background-image: url(../images/files/css.png); }
1292 1292 .icon-file.text-html { background-image: url(../images/files/html.png); }
1293 1293 .icon-file.image-gif { background-image: url(../images/files/image.png); }
1294 1294 .icon-file.image-jpeg { background-image: url(../images/files/image.png); }
1295 1295 .icon-file.image-png { background-image: url(../images/files/image.png); }
1296 1296 .icon-file.image-tiff { background-image: url(../images/files/image.png); }
1297 1297 .icon-file.application-pdf { background-image: url(../images/files/pdf.png); }
1298 1298 .icon-file.application-zip { background-image: url(../images/files/zip.png); }
1299 1299 .icon-file.application-x-gzip { background-image: url(../images/files/zip.png); }
1300 1300
1301 1301 .sort-handle { width:16px; height:16px; background:url(../images/reorder.png) no-repeat 0 50%; cursor:move; }
1302 1302 .sort-handle.ajax-loading { background-image: url(../images/loading.gif); }
1303 1303 tr.ui-sortable-helper { border:1px solid #e4e4e4; }
1304 1304
1305 1305 .contextual>*:not(:first-child), .buttons>.icon:not(:first-child) { margin-left: 5px; }
1306 1306
1307 1307 img.gravatar {
1308 1308 vertical-align: middle;
1309 1309 border-radius: 20%;
1310 1310 }
1311 1311
1312 1312 div.issue img.gravatar {
1313 1313 float: left;
1314 1314 margin: 0 6px 0 0;
1315 1315 }
1316 1316
1317 1317 h2 img.gravatar {margin: -2px 4px -4px 0;}
1318 1318 h3 img.gravatar {margin: -4px 4px -4px 0;}
1319 1319 h4 img.gravatar {margin: -2px 4px -4px 0;}
1320 1320 td.username img.gravatar {margin: 0 0.5em 0 0; vertical-align: top;}
1321 1321 #activity dt img.gravatar {float: left; margin: 0 1em 1em 0;}
1322 1322 /* Used on 12px Gravatar img tags without the icon background */
1323 1323 .icon-gravatar {float: left; margin-right: 4px;}
1324 1324
1325 1325 #activity dt, .journal {clear: left;}
1326 1326
1327 1327 .journal-link {float: right;}
1328 1328
1329 1329 h2 img { vertical-align:middle; }
1330 1330
1331 1331 .hascontextmenu { cursor: context-menu; }
1332 1332
1333 1333 .sample-data {border:1px solid #ccc; border-collapse:collapse; background-color:#fff; margin:0.5em;}
1334 1334 .sample-data td {border:1px solid #ccc; padding: 2px 4px; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace;}
1335 1335 .sample-data tr:first-child td {font-weight:bold; text-align:center;}
1336 1336
1337 1337 .ui-progressbar {position: relative;}
1338 1338 #progress-label {
1339 1339 position: absolute; left: 50%; top: 4px;
1340 1340 font-weight: bold;
1341 1341 color: #555; text-shadow: 1px 1px 0 #fff;
1342 1342 }
1343 1343
1344 1344 /* Custom JQuery styles */
1345 1345 .ui-datepicker-title select {width:70px !important; margin-top:-2px !important; margin-right:4px !important;}
1346 1346
1347 1347
1348 1348 /************* CodeRay styles *************/
1349 1349 .syntaxhl div {display: inline;}
1350 1350 .syntaxhl .code pre { overflow: auto }
1351 1351
1352 1352 .syntaxhl .annotation { color:#007 }
1353 1353 .syntaxhl .attribute-name { color:#b48 }
1354 1354 .syntaxhl .attribute-value { color:#700 }
1355 1355 .syntaxhl .binary { color:#549 }
1356 1356 .syntaxhl .binary .char { color:#325 }
1357 1357 .syntaxhl .binary .delimiter { color:#325 }
1358 1358 .syntaxhl .char { color:#D20 }
1359 1359 .syntaxhl .char .content { color:#D20 }
1360 1360 .syntaxhl .char .delimiter { color:#710 }
1361 1361 .syntaxhl .class { color:#B06; font-weight:bold }
1362 1362 .syntaxhl .class-variable { color:#369 }
1363 1363 .syntaxhl .color { color:#0A0 }
1364 1364 .syntaxhl .comment { color:#777 }
1365 1365 .syntaxhl .comment .char { color:#444 }
1366 1366 .syntaxhl .comment .delimiter { color:#444 }
1367 1367 .syntaxhl .constant { color:#036; font-weight:bold }
1368 1368 .syntaxhl .decorator { color:#B0B }
1369 1369 .syntaxhl .definition { color:#099; font-weight:bold }
1370 1370 .syntaxhl .delimiter { color:black }
1371 1371 .syntaxhl .directive { color:#088; font-weight:bold }
1372 1372 .syntaxhl .docstring { color:#D42; }
1373 1373 .syntaxhl .doctype { color:#34b }
1374 1374 .syntaxhl .done { text-decoration: line-through; color: gray }
1375 1375 .syntaxhl .entity { color:#800; font-weight:bold }
1376 1376 .syntaxhl .error { color:#F00; background-color:#FAA }
1377 1377 .syntaxhl .escape { color:#666 }
1378 1378 .syntaxhl .exception { color:#C00; font-weight:bold }
1379 1379 .syntaxhl .float { color:#60E }
1380 1380 .syntaxhl .function { color:#06B; font-weight:bold }
1381 1381 .syntaxhl .function .delimiter { color:#059 }
1382 1382 .syntaxhl .function .content { color:#037 }
1383 1383 .syntaxhl .global-variable { color:#d70 }
1384 1384 .syntaxhl .hex { color:#02b }
1385 1385 .syntaxhl .id { color:#33D; font-weight:bold }
1386 1386 .syntaxhl .include { color:#B44; font-weight:bold }
1387 1387 .syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black }
1388 1388 .syntaxhl .inline-delimiter { font-weight: bold; color: #666 }
1389 1389 .syntaxhl .instance-variable { color:#33B }
1390 1390 .syntaxhl .integer { color:#00D }
1391 1391 .syntaxhl .imaginary { color:#f00 }
1392 1392 .syntaxhl .important { color:#D00 }
1393 1393 .syntaxhl .key { color: #606 }
1394 1394 .syntaxhl .key .char { color: #60f }
1395 1395 .syntaxhl .key .delimiter { color: #404 }
1396 1396 .syntaxhl .keyword { color:#080; font-weight:bold }
1397 1397 .syntaxhl .label { color:#970; font-weight:bold }
1398 1398 .syntaxhl .local-variable { color:#950 }
1399 1399 .syntaxhl .map .content { color:#808 }
1400 1400 .syntaxhl .map .delimiter { color:#40A}
1401 1401 .syntaxhl .map { background-color:hsla(200,100%,50%,0.06); }
1402 1402 .syntaxhl .namespace { color:#707; font-weight:bold }
1403 1403 .syntaxhl .octal { color:#40E }
1404 1404 .syntaxhl .operator { }
1405 1405 .syntaxhl .predefined { color:#369; font-weight:bold }
1406 1406 .syntaxhl .predefined-constant { color:#069 }
1407 1407 .syntaxhl .predefined-type { color:#0a8; font-weight:bold }
1408 1408 .syntaxhl .preprocessor { color:#579 }
1409 1409 .syntaxhl .pseudo-class { color:#00C; font-weight:bold }
1410 1410 .syntaxhl .regexp { background-color:hsla(300,100%,50%,0.06); }
1411 1411 .syntaxhl .regexp .content { color:#808 }
1412 1412 .syntaxhl .regexp .delimiter { color:#404 }
1413 1413 .syntaxhl .regexp .modifier { color:#C2C }
1414 1414 .syntaxhl .reserved { color:#080; font-weight:bold }
1415 1415 .syntaxhl .shell { background-color:hsla(120,100%,50%,0.06); }
1416 1416 .syntaxhl .shell .content { color:#2B2 }
1417 1417 .syntaxhl .shell .delimiter { color:#161 }
1418 1418 .syntaxhl .string { background-color:hsla(0,100%,50%,0.05); }
1419 1419 .syntaxhl .string .char { color: #b0b }
1420 1420 .syntaxhl .string .content { color: #D20 }
1421 1421 .syntaxhl .string .delimiter { color: #710 }
1422 1422 .syntaxhl .string .modifier { color: #E40 }
1423 1423 .syntaxhl .symbol { color:#A60 }
1424 1424 .syntaxhl .symbol .content { color:#A60 }
1425 1425 .syntaxhl .symbol .delimiter { color:#740 }
1426 1426 .syntaxhl .tag { color:#070; font-weight:bold }
1427 1427 .syntaxhl .type { color:#339; font-weight:bold }
1428 1428 .syntaxhl .value { color: #088 }
1429 1429 .syntaxhl .variable { color:#037 }
1430 1430
1431 1431 .syntaxhl .insert { background: hsla(120,100%,50%,0.12) }
1432 1432 .syntaxhl .delete { background: hsla(0,100%,50%,0.12) }
1433 1433 .syntaxhl .change { color: #bbf; background: #007 }
1434 1434 .syntaxhl .head { color: #f8f; background: #505 }
1435 1435 .syntaxhl .head .filename { color: white; }
1436 1436
1437 1437 .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; }
1438 1438 .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; }
1439 1439
1440 1440 .syntaxhl .insert .insert { color: #0c0; background:transparent; font-weight:bold }
1441 1441 .syntaxhl .delete .delete { color: #c00; background:transparent; font-weight:bold }
1442 1442 .syntaxhl .change .change { color: #88f }
1443 1443 .syntaxhl .head .head { color: #f4f }
1444 1444
1445 1445 /***** Media print specific styles *****/
1446 1446 @media print {
1447 1447 #top-menu, #header, #main-menu, #sidebar, #footer, .contextual, .other-formats { display:none; }
1448 1448 #main { background: #fff; }
1449 1449 #content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; overflow: visible !important;}
1450 1450 #wiki_add_attachment { display:none; }
1451 1451 .hide-when-print, .pagination ul.pages, .pagination .per-page { display: none !important; }
1452 1452 .autoscroll {overflow-x: visible;}
1453 1453 table.list {margin-top:0.5em;}
1454 1454 table.list th, table.list td {border: 1px solid #aaa;}
1455 1455 }
1456 1456
1457 1457 /* Accessibility specific styles */
1458 1458 .hidden-for-sighted {
1459 1459 position:absolute;
1460 1460 left:-10000px;
1461 1461 top:auto;
1462 1462 width:1px;
1463 1463 height:1px;
1464 1464 overflow:hidden;
1465 1465 }
@@ -1,239 +1,253
1 1 # Redmine - project management software
2 2 # Copyright (C) 2006-2016 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 require File.expand_path('../../test_helper', __FILE__)
19 19
20 20 class CustomFieldsControllerTest < Redmine::ControllerTest
21 21 fixtures :custom_fields, :custom_values,
22 22 :custom_fields_projects, :custom_fields_trackers,
23 23 :roles, :users,
24 24 :members, :member_roles,
25 25 :groups_users,
26 26 :trackers, :projects_trackers,
27 27 :enabled_modules,
28 28 :projects, :issues,
29 29 :issue_statuses,
30 30 :issue_categories,
31 31 :enumerations,
32 32 :workflows
33 33
34 34 def setup
35 35 @request.session[:user_id] = 1
36 36 end
37 37
38 38 def test_index
39 39 get :index
40 40 assert_response :success
41 41
42 42 assert_select 'table.custom_fields'
43 43 end
44 44
45 45 def test_new_without_type_should_render_select_type
46 46 get :new
47 47 assert_response :success
48 48
49 49 assert_select 'input[name=type]', CustomFieldsHelper::CUSTOM_FIELDS_TABS.size
50 50 assert_select 'input[name=type][checked=checked]', 1
51 51 end
52 52
53 53 def test_new_should_work_for_each_customized_class_and_format
54 54 custom_field_classes.each do |klass|
55 55 Redmine::FieldFormat.formats_for_custom_field_class(klass).each do |format|
56 56 get :new, :type => klass.name, :custom_field => {:field_format => format.name}
57 57 assert_response :success
58 58
59 59 assert_select 'form#custom_field_form' do
60 60 assert_select 'select[name=?]', 'custom_field[field_format]' do
61 61 assert_select 'option[value=?][selected=selected]', format.name
62 62 end
63 63 assert_select 'input[type=hidden][name=type][value=?]', klass.name
64 64 end
65 65 end
66 66 end
67 67 end
68 68
69 69 def test_new_should_have_string_default_format
70 70 get :new, :type => 'IssueCustomField'
71 71 assert_response :success
72 72
73 73 assert_select 'select[name=?]', 'custom_field[field_format]' do
74 74 assert_select 'option[value=?][selected=selected]', 'string'
75 75 end
76 76 end
77 77
78 78 def test_new_issue_custom_field
79 79 get :new, :type => 'IssueCustomField'
80 80 assert_response :success
81 81
82 82 assert_select 'form#custom_field_form' do
83 83 assert_select 'select#custom_field_field_format[name=?]', 'custom_field[field_format]' do
84 84 assert_select 'option[value=user]', :text => 'User'
85 85 assert_select 'option[value=version]', :text => 'Version'
86 86 end
87 87 assert_select 'input[type=checkbox][name=?]', 'custom_field[project_ids][]', Project.count
88 88 assert_select 'input[type=hidden][name=?]', 'custom_field[project_ids][]', 1
89 89 assert_select 'input[type=hidden][name=type][value=IssueCustomField]'
90 90 end
91 91 end
92 92
93 93 def test_new_time_entry_custom_field_should_not_show_trackers_and_projects
94 94 get :new, :type => 'TimeEntryCustomField'
95 95 assert_response :success
96 96
97 97 assert_select 'form#custom_field_form' do
98 98 assert_select 'input[name=?]', 'custom_field[tracker_ids][]', 0
99 99 assert_select 'input[name=?]', 'custom_field[project_ids][]', 0
100 100 end
101 101 end
102 102
103 103 def test_default_value_should_be_an_input_for_string_custom_field
104 104 get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'string'}
105 105 assert_response :success
106 106 assert_select 'input[name=?]', 'custom_field[default_value]'
107 107 end
108 108
109 109 def test_default_value_should_be_a_textarea_for_text_custom_field
110 110 get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'text'}
111 111 assert_response :success
112 112 assert_select 'textarea[name=?]', 'custom_field[default_value]'
113 113 end
114 114
115 115 def test_default_value_should_be_a_checkbox_for_bool_custom_field
116 116 get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'bool'}
117 117 assert_response :success
118 118 assert_select 'select[name=?]', 'custom_field[default_value]' do
119 119 assert_select 'option', 3
120 120 end
121 121 end
122 122
123 123 def test_default_value_should_not_be_present_for_user_custom_field
124 124 get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'user'}
125 125 assert_response :success
126 126 assert_select '[name=?]', 'custom_field[default_value]', 0
127 127 end
128 128
129 def test_setting_full_width_layout_shoul_be_present_only_for_long_text_issue_custom_field
130 get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'text'}
131 assert_response :success
132 assert_select '[name=?]', 'custom_field[full_width_layout]'
133
134 get :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'list'}
135 assert_response :success
136 assert_select '[name=?]', 'custom_field[full_width_layout]', 0
137
138 get :new, :type => 'TimeEntryCustomField', :custom_field => {:field_format => 'text'}
139 assert_response :success
140 assert_select '[name=?]', 'custom_field[full_width_layout]', 0
141 end
142
129 143 def test_new_js
130 144 xhr :get, :new, :type => 'IssueCustomField', :custom_field => {:field_format => 'list'}, :format => 'js'
131 145 assert_response :success
132 146 assert_equal 'text/javascript', response.content_type
133 147
134 148 assert_include '<option selected=\"selected\" value=\"list\">List<\/option>', response.body
135 149 end
136 150
137 151 def test_new_with_invalid_custom_field_class_should_render_select_type
138 152 get :new, :type => 'UnknownCustomField'
139 153 assert_response :success
140 154
141 155 assert_select 'input[type=radio][name=type]'
142 156 end
143 157
144 158 def test_create_list_custom_field
145 159 field = new_record(IssueCustomField) do
146 160 post :create, :type => "IssueCustomField",
147 161 :custom_field => {:name => "test_post_new_list",
148 162 :default_value => "",
149 163 :min_length => "0",
150 164 :searchable => "0",
151 165 :regexp => "",
152 166 :is_for_all => "1",
153 167 :possible_values => "0.1\n0.2\n",
154 168 :max_length => "0",
155 169 :is_filter => "0",
156 170 :is_required =>"0",
157 171 :field_format => "list",
158 172 :tracker_ids => ["1", ""]}
159 173 end
160 174 assert_redirected_to "/custom_fields/#{field.id}/edit"
161 175 assert_equal "test_post_new_list", field.name
162 176 assert_equal ["0.1", "0.2"], field.possible_values
163 177 assert_equal 1, field.trackers.size
164 178 end
165 179
166 180 def test_create_with_project_ids
167 181 assert_difference 'CustomField.count' do
168 182 post :create, :type => "IssueCustomField", :custom_field => {
169 183 :name => "foo", :field_format => "string", :is_for_all => "0", :project_ids => ["1", "3", ""]
170 184 }
171 185 assert_response 302
172 186 end
173 187 field = IssueCustomField.order("id desc").first
174 188 assert_equal [1, 3], field.projects.map(&:id).sort
175 189 end
176 190
177 191 def test_create_with_failure
178 192 assert_no_difference 'CustomField.count' do
179 193 post :create, :type => "IssueCustomField", :custom_field => {:name => ''}
180 194 end
181 195 assert_response :success
182 196 assert_select_error /name cannot be blank/i
183 197 end
184 198
185 199 def test_create_without_type_should_render_select_type
186 200 assert_no_difference 'CustomField.count' do
187 201 post :create, :custom_field => {:name => ''}
188 202 end
189 203 assert_response :success
190 204 assert_select 'input[type=radio][name=type]'
191 205 end
192 206
193 207 def test_edit
194 208 get :edit, :id => 1
195 209 assert_response :success
196 210 assert_select 'input[name=?][value=?]', 'custom_field[name]', 'Database'
197 211 end
198 212
199 213 def test_edit_invalid_custom_field_should_render_404
200 214 get :edit, :id => 99
201 215 assert_response 404
202 216 end
203 217
204 218 def test_update
205 219 put :update, :id => 1, :custom_field => {:name => 'New name'}
206 220 assert_redirected_to '/custom_fields/1/edit'
207 221
208 222 field = CustomField.find(1)
209 223 assert_equal 'New name', field.name
210 224 end
211 225
212 226 def test_update_with_failure
213 227 put :update, :id => 1, :custom_field => {:name => ''}
214 228 assert_response :success
215 229 assert_select_error /name cannot be blank/i
216 230 end
217 231
218 232 def test_destroy
219 233 custom_values_count = CustomValue.where(:custom_field_id => 1).count
220 234 assert custom_values_count > 0
221 235
222 236 assert_difference 'CustomField.count', -1 do
223 237 assert_difference 'CustomValue.count', - custom_values_count do
224 238 delete :destroy, :id => 1
225 239 end
226 240 end
227 241
228 242 assert_redirected_to '/custom_fields?tab=IssueCustomField'
229 243 assert_nil CustomField.find_by_id(1)
230 244 assert_nil CustomValue.find_by_custom_field_id(1)
231 245 end
232 246
233 247 def custom_field_classes
234 248 files = Dir.glob(File.join(Rails.root, 'app/models/*_custom_field.rb')).map {|f| File.basename(f).sub(/\.rb$/, '') }
235 249 classes = files.map(&:classify).map(&:constantize)
236 250 assert classes.size > 0
237 251 classes
238 252 end
239 253 end
1 NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
General Comments 0
You need to be logged in to leave comments. Login now