##// END OF EJS Templates
Strikethru closed issue links (#1127)....
Jean-Philippe Lang -
r1663:83baccb71ac0
parent child
Show More
@@ -1,519 +1,522
1 1 # redMine - project management software
2 2 # Copyright (C) 2006-2007 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 'coderay'
19 19 require 'coderay/helpers/file_type'
20 20
21 21 module ApplicationHelper
22 22 include Redmine::WikiFormatting::Macros::Definitions
23 23
24 24 def current_role
25 25 @current_role ||= User.current.role_for_project(@project)
26 26 end
27 27
28 28 # Return true if user is authorized for controller/action, otherwise false
29 29 def authorize_for(controller, action)
30 30 User.current.allowed_to?({:controller => controller, :action => action}, @project)
31 31 end
32 32
33 33 # Display a link if user is authorized
34 34 def link_to_if_authorized(name, options = {}, html_options = nil, *parameters_for_method_reference)
35 35 link_to(name, options, html_options, *parameters_for_method_reference) if authorize_for(options[:controller] || params[:controller], options[:action])
36 36 end
37 37
38 38 # Display a link to user's account page
39 39 def link_to_user(user)
40 40 user ? link_to(user, :controller => 'account', :action => 'show', :id => user) : 'Anonymous'
41 41 end
42 42
43 43 def link_to_issue(issue, options={})
44 options[:class] ||= ''
45 options[:class] << ' issue'
46 options[:class] << ' closed' if issue.closed?
44 47 link_to "#{issue.tracker.name} ##{issue.id}", {:controller => "issues", :action => "show", :id => issue}, options
45 48 end
46 49
47 50 def toggle_link(name, id, options={})
48 51 onclick = "Element.toggle('#{id}'); "
49 52 onclick << (options[:focus] ? "Form.Element.focus('#{options[:focus]}'); " : "this.blur(); ")
50 53 onclick << "return false;"
51 54 link_to(name, "#", :onclick => onclick)
52 55 end
53 56
54 57 def image_to_function(name, function, html_options = {})
55 58 html_options.symbolize_keys!
56 59 tag(:input, html_options.merge({
57 60 :type => "image", :src => image_path(name),
58 61 :onclick => (html_options[:onclick] ? "#{html_options[:onclick]}; " : "") + "#{function};"
59 62 }))
60 63 end
61 64
62 65 def prompt_to_remote(name, text, param, url, html_options = {})
63 66 html_options[:onclick] = "promptToRemote('#{text}', '#{param}', '#{url_for(url)}'); return false;"
64 67 link_to name, {}, html_options
65 68 end
66 69
67 70 def format_date(date)
68 71 return nil unless date
69 72 # "Setting.date_format.size < 2" is a temporary fix (content of date_format setting changed)
70 73 @date_format ||= (Setting.date_format.blank? || Setting.date_format.size < 2 ? l(:general_fmt_date) : Setting.date_format)
71 74 date.strftime(@date_format)
72 75 end
73 76
74 77 def format_time(time, include_date = true)
75 78 return nil unless time
76 79 time = time.to_time if time.is_a?(String)
77 80 zone = User.current.time_zone
78 81 local = zone ? time.in_time_zone(zone) : (time.utc? ? time.utc_to_local : time)
79 82 @date_format ||= (Setting.date_format.blank? || Setting.date_format.size < 2 ? l(:general_fmt_date) : Setting.date_format)
80 83 @time_format ||= (Setting.time_format.blank? ? l(:general_fmt_time) : Setting.time_format)
81 84 include_date ? local.strftime("#{@date_format} #{@time_format}") : local.strftime(@time_format)
82 85 end
83 86
84 87 # Truncates and returns the string as a single line
85 88 def truncate_single_line(string, *args)
86 89 truncate(string, *args).gsub(%r{[\r\n]+}m, ' ')
87 90 end
88 91
89 92 def html_hours(text)
90 93 text.gsub(%r{(\d+)\.(\d+)}, '<span class="hours hours-int">\1</span><span class="hours hours-dec">.\2</span>')
91 94 end
92 95
93 96 def authoring(created, author)
94 97 time_tag = content_tag('acronym', distance_of_time_in_words(Time.now, created), :title => format_time(created))
95 98 author_tag = (author.is_a?(User) && !author.anonymous?) ? link_to(h(author), :controller => 'account', :action => 'show', :id => author) : h(author || 'Anonymous')
96 99 l(:label_added_time_by, author_tag, time_tag)
97 100 end
98 101
99 102 def l_or_humanize(s)
100 103 l_has_string?("label_#{s}".to_sym) ? l("label_#{s}".to_sym) : s.to_s.humanize
101 104 end
102 105
103 106 def day_name(day)
104 107 l(:general_day_names).split(',')[day-1]
105 108 end
106 109
107 110 def month_name(month)
108 111 l(:actionview_datehelper_select_month_names).split(',')[month-1]
109 112 end
110 113
111 114 def syntax_highlight(name, content)
112 115 type = CodeRay::FileType[name]
113 116 type ? CodeRay.scan(content, type).html : h(content)
114 117 end
115 118
116 119 def to_path_param(path)
117 120 path.to_s.split(%r{[/\\]}).select {|p| !p.blank?}
118 121 end
119 122
120 123 def pagination_links_full(paginator, count=nil, options={})
121 124 page_param = options.delete(:page_param) || :page
122 125 url_param = params.dup
123 126 # don't reuse params if filters are present
124 127 url_param.clear if url_param.has_key?(:set_filter)
125 128
126 129 html = ''
127 130 html << link_to_remote(('&#171; ' + l(:label_previous)),
128 131 {:update => 'content',
129 132 :url => url_param.merge(page_param => paginator.current.previous),
130 133 :complete => 'window.scrollTo(0,0)'},
131 134 {:href => url_for(:params => url_param.merge(page_param => paginator.current.previous))}) + ' ' if paginator.current.previous
132 135
133 136 html << (pagination_links_each(paginator, options) do |n|
134 137 link_to_remote(n.to_s,
135 138 {:url => {:params => url_param.merge(page_param => n)},
136 139 :update => 'content',
137 140 :complete => 'window.scrollTo(0,0)'},
138 141 {:href => url_for(:params => url_param.merge(page_param => n))})
139 142 end || '')
140 143
141 144 html << ' ' + link_to_remote((l(:label_next) + ' &#187;'),
142 145 {:update => 'content',
143 146 :url => url_param.merge(page_param => paginator.current.next),
144 147 :complete => 'window.scrollTo(0,0)'},
145 148 {:href => url_for(:params => url_param.merge(page_param => paginator.current.next))}) if paginator.current.next
146 149
147 150 unless count.nil?
148 151 html << [" (#{paginator.current.first_item}-#{paginator.current.last_item}/#{count})", per_page_links(paginator.items_per_page)].compact.join(' | ')
149 152 end
150 153
151 154 html
152 155 end
153 156
154 157 def per_page_links(selected=nil)
155 158 url_param = params.dup
156 159 url_param.clear if url_param.has_key?(:set_filter)
157 160
158 161 links = Setting.per_page_options_array.collect do |n|
159 162 n == selected ? n : link_to_remote(n, {:update => "content", :url => params.dup.merge(:per_page => n)},
160 163 {:href => url_for(url_param.merge(:per_page => n))})
161 164 end
162 165 links.size > 1 ? l(:label_display_per_page, links.join(', ')) : nil
163 166 end
164 167
165 168 def breadcrumb(*args)
166 169 content_tag('p', args.join(' &#187; ') + ' &#187; ', :class => 'breadcrumb')
167 170 end
168 171
169 172 def html_title(*args)
170 173 if args.empty?
171 174 title = []
172 175 title << @project.name if @project
173 176 title += @html_title if @html_title
174 177 title << Setting.app_title
175 178 title.compact.join(' - ')
176 179 else
177 180 @html_title ||= []
178 181 @html_title += args
179 182 end
180 183 end
181 184
182 185 def accesskey(s)
183 186 Redmine::AccessKeys.key_for s
184 187 end
185 188
186 189 # Formats text according to system settings.
187 190 # 2 ways to call this method:
188 191 # * with a String: textilizable(text, options)
189 192 # * with an object and one of its attribute: textilizable(issue, :description, options)
190 193 def textilizable(*args)
191 194 options = args.last.is_a?(Hash) ? args.pop : {}
192 195 case args.size
193 196 when 1
194 197 obj = nil
195 198 text = args.shift
196 199 when 2
197 200 obj = args.shift
198 201 text = obj.send(args.shift).to_s
199 202 else
200 203 raise ArgumentError, 'invalid arguments to textilizable'
201 204 end
202 205 return '' if text.blank?
203 206
204 207 only_path = options.delete(:only_path) == false ? false : true
205 208
206 209 # when using an image link, try to use an attachment, if possible
207 210 attachments = options[:attachments] || (obj && obj.respond_to?(:attachments) ? obj.attachments : nil)
208 211
209 212 if attachments
210 213 text = text.gsub(/!((\<|\=|\>)?(\([^\)]+\))?(\[[^\]]+\])?(\{[^\}]+\})?)(\S+\.(gif|jpg|jpeg|png))!/) do |m|
211 214 style = $1
212 215 filename = $6
213 216 rf = Regexp.new(filename, Regexp::IGNORECASE)
214 217 # search for the picture in attachments
215 218 if found = attachments.detect { |att| att.filename =~ rf }
216 219 image_url = url_for :only_path => only_path, :controller => 'attachments', :action => 'download', :id => found
217 220 desc = found.description.to_s.gsub(/^([^\(\)]*).*$/, "\\1")
218 221 alt = desc.blank? ? nil : "(#{desc})"
219 222 "!#{style}#{image_url}#{alt}!"
220 223 else
221 224 "!#{style}#{filename}!"
222 225 end
223 226 end
224 227 end
225 228
226 229 text = (Setting.text_formatting == 'textile') ?
227 230 Redmine::WikiFormatting.to_html(text) { |macro, args| exec_macro(macro, obj, args) } :
228 231 simple_format(auto_link(h(text)))
229 232
230 233 # different methods for formatting wiki links
231 234 case options[:wiki_links]
232 235 when :local
233 236 # used for local links to html files
234 237 format_wiki_link = Proc.new {|project, title| "#{title}.html" }
235 238 when :anchor
236 239 # used for single-file wiki export
237 240 format_wiki_link = Proc.new {|project, title| "##{title}" }
238 241 else
239 242 format_wiki_link = Proc.new {|project, title| url_for(:only_path => only_path, :controller => 'wiki', :action => 'index', :id => project, :page => title) }
240 243 end
241 244
242 245 project = options[:project] || @project || (obj && obj.respond_to?(:project) ? obj.project : nil)
243 246
244 247 # Wiki links
245 248 #
246 249 # Examples:
247 250 # [[mypage]]
248 251 # [[mypage|mytext]]
249 252 # wiki links can refer other project wikis, using project name or identifier:
250 253 # [[project:]] -> wiki starting page
251 254 # [[project:|mytext]]
252 255 # [[project:mypage]]
253 256 # [[project:mypage|mytext]]
254 257 text = text.gsub(/(!)?(\[\[([^\]\n\|]+)(\|([^\]\n\|]+))?\]\])/) do |m|
255 258 link_project = project
256 259 esc, all, page, title = $1, $2, $3, $5
257 260 if esc.nil?
258 261 if page =~ /^([^\:]+)\:(.*)$/
259 262 link_project = Project.find_by_name($1) || Project.find_by_identifier($1)
260 263 page = $2
261 264 title ||= $1 if page.blank?
262 265 end
263 266
264 267 if link_project && link_project.wiki
265 268 # check if page exists
266 269 wiki_page = link_project.wiki.find_page(page)
267 270 link_to((title || page), format_wiki_link.call(link_project, Wiki.titleize(page)),
268 271 :class => ('wiki-page' + (wiki_page ? '' : ' new')))
269 272 else
270 273 # project or wiki doesn't exist
271 274 title || page
272 275 end
273 276 else
274 277 all
275 278 end
276 279 end
277 280
278 281 # Redmine links
279 282 #
280 283 # Examples:
281 284 # Issues:
282 285 # #52 -> Link to issue #52
283 286 # Changesets:
284 287 # r52 -> Link to revision 52
285 288 # commit:a85130f -> Link to scmid starting with a85130f
286 289 # Documents:
287 290 # document#17 -> Link to document with id 17
288 291 # document:Greetings -> Link to the document with title "Greetings"
289 292 # document:"Some document" -> Link to the document with title "Some document"
290 293 # Versions:
291 294 # version#3 -> Link to version with id 3
292 295 # version:1.0.0 -> Link to version named "1.0.0"
293 296 # version:"1.0 beta 2" -> Link to version named "1.0 beta 2"
294 297 # Attachments:
295 298 # attachment:file.zip -> Link to the attachment of the current object named file.zip
296 299 # Source files:
297 300 # source:some/file -> Link to the file located at /some/file in the project's repository
298 301 # source:some/file@52 -> Link to the file's revision 52
299 302 # source:some/file#L120 -> Link to line 120 of the file
300 303 # source:some/file@52#L120 -> Link to line 120 of the file's revision 52
301 304 # export:some/file -> Force the download of the file
302 305 text = text.gsub(%r{([\s\(,\-\>]|^)(!)?(attachment|document|version|commit|source|export)?((#|r)(\d+)|(:)([^"\s<>][^\s<>]*?|"[^"]+?"))(?=(?=[[:punct:]]\W)|\s|<|$)}) do |m|
303 306 leading, esc, prefix, sep, oid = $1, $2, $3, $5 || $7, $6 || $8
304 307 link = nil
305 308 if esc.nil?
306 309 if prefix.nil? && sep == 'r'
307 310 if project && (changeset = project.changesets.find_by_revision(oid))
308 311 link = link_to("r#{oid}", {:only_path => only_path, :controller => 'repositories', :action => 'revision', :id => project, :rev => oid},
309 312 :class => 'changeset',
310 313 :title => truncate_single_line(changeset.comments, 100))
311 314 end
312 315 elsif sep == '#'
313 316 oid = oid.to_i
314 317 case prefix
315 318 when nil
316 319 if issue = Issue.find_by_id(oid, :include => [:project, :status], :conditions => Project.visible_by(User.current))
317 320 link = link_to("##{oid}", {:only_path => only_path, :controller => 'issues', :action => 'show', :id => oid},
318 321 :class => (issue.closed? ? 'issue closed' : 'issue'),
319 322 :title => "#{truncate(issue.subject, 100)} (#{issue.status.name})")
320 323 link = content_tag('del', link) if issue.closed?
321 324 end
322 325 when 'document'
323 326 if document = Document.find_by_id(oid, :include => [:project], :conditions => Project.visible_by(User.current))
324 327 link = link_to h(document.title), {:only_path => only_path, :controller => 'documents', :action => 'show', :id => document},
325 328 :class => 'document'
326 329 end
327 330 when 'version'
328 331 if version = Version.find_by_id(oid, :include => [:project], :conditions => Project.visible_by(User.current))
329 332 link = link_to h(version.name), {:only_path => only_path, :controller => 'versions', :action => 'show', :id => version},
330 333 :class => 'version'
331 334 end
332 335 end
333 336 elsif sep == ':'
334 337 # removes the double quotes if any
335 338 name = oid.gsub(%r{^"(.*)"$}, "\\1")
336 339 case prefix
337 340 when 'document'
338 341 if project && document = project.documents.find_by_title(name)
339 342 link = link_to h(document.title), {:only_path => only_path, :controller => 'documents', :action => 'show', :id => document},
340 343 :class => 'document'
341 344 end
342 345 when 'version'
343 346 if project && version = project.versions.find_by_name(name)
344 347 link = link_to h(version.name), {:only_path => only_path, :controller => 'versions', :action => 'show', :id => version},
345 348 :class => 'version'
346 349 end
347 350 when 'commit'
348 351 if project && (changeset = project.changesets.find(:first, :conditions => ["scmid LIKE ?", "#{name}%"]))
349 352 link = link_to h("#{name}"), {:only_path => only_path, :controller => 'repositories', :action => 'revision', :id => project, :rev => changeset.revision},
350 353 :class => 'changeset',
351 354 :title => truncate_single_line(changeset.comments, 100)
352 355 end
353 356 when 'source', 'export'
354 357 if project && project.repository
355 358 name =~ %r{^[/\\]*(.*?)(@([0-9a-f]+))?(#(L\d+))?$}
356 359 path, rev, anchor = $1, $3, $5
357 360 link = link_to h("#{prefix}:#{name}"), {:controller => 'repositories', :action => 'entry', :id => project,
358 361 :path => to_path_param(path),
359 362 :rev => rev,
360 363 :anchor => anchor,
361 364 :format => (prefix == 'export' ? 'raw' : nil)},
362 365 :class => (prefix == 'export' ? 'source download' : 'source')
363 366 end
364 367 when 'attachment'
365 368 if attachments && attachment = attachments.detect {|a| a.filename == name }
366 369 link = link_to h(attachment.filename), {:only_path => only_path, :controller => 'attachments', :action => 'download', :id => attachment},
367 370 :class => 'attachment'
368 371 end
369 372 end
370 373 end
371 374 end
372 375 leading + (link || "#{prefix}#{sep}#{oid}")
373 376 end
374 377
375 378 text
376 379 end
377 380
378 381 # Same as Rails' simple_format helper without using paragraphs
379 382 def simple_format_without_paragraph(text)
380 383 text.to_s.
381 384 gsub(/\r\n?/, "\n"). # \r\n and \r -> \n
382 385 gsub(/\n\n+/, "<br /><br />"). # 2+ newline -> 2 br
383 386 gsub(/([^\n]\n)(?=[^\n])/, '\1<br />') # 1 newline -> br
384 387 end
385 388
386 389 def error_messages_for(object_name, options = {})
387 390 options = options.symbolize_keys
388 391 object = instance_variable_get("@#{object_name}")
389 392 if object && !object.errors.empty?
390 393 # build full_messages here with controller current language
391 394 full_messages = []
392 395 object.errors.each do |attr, msg|
393 396 next if msg.nil?
394 397 msg = msg.first if msg.is_a? Array
395 398 if attr == "base"
396 399 full_messages << l(msg)
397 400 else
398 401 full_messages << "&#171; " + (l_has_string?("field_" + attr) ? l("field_" + attr) : object.class.human_attribute_name(attr)) + " &#187; " + l(msg) unless attr == "custom_values"
399 402 end
400 403 end
401 404 # retrieve custom values error messages
402 405 if object.errors[:custom_values]
403 406 object.custom_values.each do |v|
404 407 v.errors.each do |attr, msg|
405 408 next if msg.nil?
406 409 msg = msg.first if msg.is_a? Array
407 410 full_messages << "&#171; " + v.custom_field.name + " &#187; " + l(msg)
408 411 end
409 412 end
410 413 end
411 414 content_tag("div",
412 415 content_tag(
413 416 options[:header_tag] || "span", lwr(:gui_validation_error, full_messages.length) + ":"
414 417 ) +
415 418 content_tag("ul", full_messages.collect { |msg| content_tag("li", msg) }),
416 419 "id" => options[:id] || "errorExplanation", "class" => options[:class] || "errorExplanation"
417 420 )
418 421 else
419 422 ""
420 423 end
421 424 end
422 425
423 426 def lang_options_for_select(blank=true)
424 427 (blank ? [["(auto)", ""]] : []) +
425 428 GLoc.valid_languages.collect{|lang| [ ll(lang.to_s, :general_lang_name), lang.to_s]}.sort{|x,y| x.last <=> y.last }
426 429 end
427 430
428 431 def label_tag_for(name, option_tags = nil, options = {})
429 432 label_text = l(("field_"+field.to_s.gsub(/\_id$/, "")).to_sym) + (options.delete(:required) ? @template.content_tag("span", " *", :class => "required"): "")
430 433 content_tag("label", label_text)
431 434 end
432 435
433 436 def labelled_tabular_form_for(name, object, options, &proc)
434 437 options[:html] ||= {}
435 438 options[:html][:class] = 'tabular' unless options[:html].has_key?(:class)
436 439 form_for(name, object, options.merge({ :builder => TabularFormBuilder, :lang => current_language}), &proc)
437 440 end
438 441
439 442 def back_url_hidden_field_tag
440 443 hidden_field_tag 'back_url', (params[:back_url] || request.env['HTTP_REFERER'])
441 444 end
442 445
443 446 def check_all_links(form_name)
444 447 link_to_function(l(:button_check_all), "checkAll('#{form_name}', true)") +
445 448 " | " +
446 449 link_to_function(l(:button_uncheck_all), "checkAll('#{form_name}', false)")
447 450 end
448 451
449 452 def progress_bar(pcts, options={})
450 453 pcts = [pcts, pcts] unless pcts.is_a?(Array)
451 454 pcts[1] = pcts[1] - pcts[0]
452 455 pcts << (100 - pcts[1] - pcts[0])
453 456 width = options[:width] || '100px;'
454 457 legend = options[:legend] || ''
455 458 content_tag('table',
456 459 content_tag('tr',
457 460 (pcts[0] > 0 ? content_tag('td', '', :width => "#{pcts[0].floor}%;", :class => 'closed') : '') +
458 461 (pcts[1] > 0 ? content_tag('td', '', :width => "#{pcts[1].floor}%;", :class => 'done') : '') +
459 462 (pcts[2] > 0 ? content_tag('td', '', :width => "#{pcts[2].floor}%;", :class => 'todo') : '')
460 463 ), :class => 'progress', :style => "width: #{width};") +
461 464 content_tag('p', legend, :class => 'pourcent')
462 465 end
463 466
464 467 def context_menu_link(name, url, options={})
465 468 options[:class] ||= ''
466 469 if options.delete(:selected)
467 470 options[:class] << ' icon-checked disabled'
468 471 options[:disabled] = true
469 472 end
470 473 if options.delete(:disabled)
471 474 options.delete(:method)
472 475 options.delete(:confirm)
473 476 options.delete(:onclick)
474 477 options[:class] << ' disabled'
475 478 url = '#'
476 479 end
477 480 link_to name, url, options
478 481 end
479 482
480 483 def calendar_for(field_id)
481 484 include_calendar_headers_tags
482 485 image_tag("calendar.png", {:id => "#{field_id}_trigger",:class => "calendar-trigger"}) +
483 486 javascript_tag("Calendar.setup({inputField : '#{field_id}', ifFormat : '%Y-%m-%d', button : '#{field_id}_trigger' });")
484 487 end
485 488
486 489 def include_calendar_headers_tags
487 490 unless @calendar_headers_tags_included
488 491 @calendar_headers_tags_included = true
489 492 content_for :header_tags do
490 493 javascript_include_tag('calendar/calendar') +
491 494 javascript_include_tag("calendar/lang/calendar-#{current_language}.js") +
492 495 javascript_include_tag('calendar/calendar-setup') +
493 496 stylesheet_link_tag('calendar')
494 497 end
495 498 end
496 499 end
497 500
498 501 def wikitoolbar_for(field_id)
499 502 return '' unless Setting.text_formatting == 'textile'
500 503
501 504 help_link = l(:setting_text_formatting) + ': ' +
502 505 link_to(l(:label_help), compute_public_path('wiki_syntax', 'help', 'html'),
503 506 :onclick => "window.open(\"#{ compute_public_path('wiki_syntax', 'help', 'html') }\", \"\", \"resizable=yes, location=no, width=300, height=640, menubar=no, status=no, scrollbars=yes\"); return false;")
504 507
505 508 javascript_include_tag('jstoolbar/jstoolbar') +
506 509 javascript_include_tag("jstoolbar/lang/jstoolbar-#{current_language}") +
507 510 javascript_tag("var toolbar = new jsToolBar($('#{field_id}')); toolbar.setHelpLink('#{help_link}'); toolbar.draw();")
508 511 end
509 512
510 513 def content_for(name, content = nil, &block)
511 514 @has_content ||= {}
512 515 @has_content[name] = true
513 516 super(name, content, &block)
514 517 end
515 518
516 519 def has_content?(name)
517 520 (@has_content && @has_content[name]) || false
518 521 end
519 522 end
@@ -1,50 +1,50
1 1 <h2><%=l(:label_roadmap)%></h2>
2 2
3 3 <% if @versions.empty? %>
4 4 <p class="nodata"><%= l(:label_no_data) %></p>
5 5 <% else %>
6 6 <div id="roadmap">
7 7 <% @versions.each do |version| %>
8 8 <%= tag 'a', :name => version.name %>
9 9 <h3 class="icon22 icon22-package"><%= link_to h(version.name), :controller => 'versions', :action => 'show', :id => version %></h3>
10 10 <%= render :partial => 'versions/overview', :locals => {:version => version} %>
11 11 <%= render(:partial => "wiki/content", :locals => {:content => version.wiki_page.content}) if version.wiki_page %>
12 12
13 13 <% issues = version.fixed_issues.find(:all,
14 14 :include => [:status, :tracker],
15 15 :conditions => ["tracker_id in (#{@selected_tracker_ids.join(',')})"],
16 16 :order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") unless @selected_tracker_ids.empty?
17 17 issues ||= []
18 18 %>
19 19 <% if issues.size > 0 %>
20 20 <fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
21 21 <ul>
22 22 <%- issues.each do |issue| -%>
23 <li class="issue <%= 'closed' if issue.closed? %>"><%= link_to_issue(issue) %>: <%=h issue.subject %></li>
23 <li><%= link_to_issue(issue) %>: <%=h issue.subject %></li>
24 24 <%- end -%>
25 25 </ul>
26 26 </fieldset>
27 27 <% end %>
28 28 <% end %>
29 29 </div>
30 30 <% end %>
31 31
32 32 <% content_for :sidebar do %>
33 33 <% form_tag({}, :method => :get) do %>
34 34 <h3><%= l(:label_roadmap) %></h3>
35 35 <% @trackers.each do |tracker| %>
36 36 <label><%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s), :id => nil %>
37 37 <%= tracker.name %></label><br />
38 38 <% end %>
39 39 <br />
40 40 <label for="completed"><%= check_box_tag "completed", 1, params[:completed] %> <%= l(:label_show_completed_versions) %></label>
41 41 <p><%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %></p>
42 42 <% end %>
43 43
44 44 <h3><%= l(:label_version_plural) %></h3>
45 45 <% @versions.each do |version| %>
46 46 <%= link_to version.name, "##{version.name}" %><br />
47 47 <% end %>
48 48 <% end %>
49 49
50 50 <% html_title(l(:label_roadmap)) %>
@@ -1,48 +1,48
1 1 <div class="contextual">
2 2 <%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => @version}, :class => 'icon icon-edit' %>
3 3 </div>
4 4
5 5 <h2><%= h(@version.name) %></h2>
6 6
7 7 <div id="version-summary">
8 8 <% if @version.estimated_hours > 0 || User.current.allowed_to?(:view_time_entries, @project) %>
9 9 <fieldset><legend><%= l(:label_time_tracking) %></legend>
10 10 <table>
11 11 <tr>
12 12 <td width="130px" align="right"><%= l(:field_estimated_hours) %></td>
13 13 <td width="240px" class="total-hours"width="130px" align="right"><%= html_hours(lwr(:label_f_hour, @version.estimated_hours)) %></td>
14 14 </tr>
15 15 <% if User.current.allowed_to?(:view_time_entries, @project) %>
16 16 <tr>
17 17 <td width="130px" align="right"><%= l(:label_spent_time) %></td>
18 18 <td width="240px" class="total-hours"><%= html_hours(lwr(:label_f_hour, @version.spent_hours)) %></td>
19 19 </tr>
20 20 <% end %>
21 21 </table>
22 22 </fieldset>
23 23 <% end %>
24 24
25 25 <div id="status_by">
26 26 <%= render_issue_status_by(@version, params[:status_by]) if @version.fixed_issues.count > 0 %>
27 27 </div>
28 28 </div>
29 29
30 30 <div id="roadmap">
31 31 <%= render :partial => 'versions/overview', :locals => {:version => @version} %>
32 32 <%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %>
33 33
34 34 <% issues = @version.fixed_issues.find(:all,
35 35 :include => [:status, :tracker],
36 36 :order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") %>
37 37 <% if issues.size > 0 %>
38 38 <fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
39 39 <ul>
40 40 <% issues.each do |issue| -%>
41 <li class="issue <%= 'closed' if issue.closed? %>"><%= link_to_issue(issue) %>: <%=h issue.subject %></li>
41 <li><%= link_to_issue(issue) %>: <%=h issue.subject %></li>
42 42 <% end -%>
43 43 </ul>
44 44 </fieldset>
45 45 <% end %>
46 46 </div>
47 47
48 48 <% html_title @version.name %>
@@ -1,614 +1,614
1 1 body { font-family: Verdana, sans-serif; font-size: 12px; color:#484848; margin: 0; padding: 0; min-width: 900px; }
2 2
3 3 h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, sans-serif;}
4 4 h1 {margin:0; padding:0; font-size: 24px;}
5 5 h2, .wiki h1 {font-size: 20px;padding: 2px 10px 1px 0px;margin: 0 0 10px 0; border-bottom: 1px solid #bbbbbb; color: #444;}
6 6 h3, .wiki h2 {font-size: 16px;padding: 2px 10px 1px 0px;margin: 0 0 10px 0; border-bottom: 1px solid #bbbbbb; color: #444;}
7 7 h4, .wiki h3 {font-size: 13px;padding: 2px 10px 1px 0px;margin-bottom: 5px; border-bottom: 1px dotted #bbbbbb; color: #444;}
8 8
9 9 /***** Layout *****/
10 10 #wrapper {background: white;}
11 11
12 12 #top-menu {background: #2C4056; color: #fff; height:1.8em; font-size: 0.8em; padding: 2px 2px 0px 6px;}
13 13 #top-menu ul {margin: 0; padding: 0;}
14 14 #top-menu li {
15 15 float:left;
16 16 list-style-type:none;
17 17 margin: 0px 0px 0px 0px;
18 18 padding: 0px 0px 0px 0px;
19 19 white-space:nowrap;
20 20 }
21 21 #top-menu a {color: #fff; padding-right: 8px; font-weight: bold;}
22 22 #top-menu #loggedas { float: right; margin-right: 0.5em; color: #fff; }
23 23
24 24 #account {float:right;}
25 25
26 26 #header {height:5.3em;margin:0;background-color:#507AAA;color:#f8f8f8; padding: 4px 8px 0px 6px; position:relative;}
27 27 #header a {color:#f8f8f8;}
28 28 #quick-search {float:right;}
29 29
30 30 #main-menu {position: absolute; bottom: 0px; left:6px; margin-right: -500px;}
31 31 #main-menu ul {margin: 0; padding: 0;}
32 32 #main-menu li {
33 33 float:left;
34 34 list-style-type:none;
35 35 margin: 0px 2px 0px 0px;
36 36 padding: 0px 0px 0px 0px;
37 37 white-space:nowrap;
38 38 }
39 39 #main-menu li a {
40 40 display: block;
41 41 color: #fff;
42 42 text-decoration: none;
43 43 font-weight: bold;
44 44 margin: 0;
45 45 padding: 4px 10px 4px 10px;
46 46 }
47 47 #main-menu li a:hover {background:#759FCF; color:#fff;}
48 48 #main-menu li a.selected, #main-menu li a.selected:hover {background:#fff; color:#555;}
49 49
50 50 #main {background-color:#EEEEEE;}
51 51
52 52 #sidebar{ float: right; width: 17%; position: relative; z-index: 9; min-height: 600px; padding: 0; margin: 0;}
53 53 * html #sidebar{ width: 17%; }
54 54 #sidebar h3{ font-size: 14px; margin-top:14px; color: #666; }
55 55 #sidebar hr{ width: 100%; margin: 0 auto; height: 1px; background: #ccc; border: 0; }
56 56 * html #sidebar hr{ width: 95%; position: relative; left: -6px; color: #ccc; }
57 57
58 58 #content { width: 80%; background-color: #fff; margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; z-index: 10; height:600px; min-height: 600px;}
59 59 * html #content{ width: 80%; padding-left: 0; margin-top: 0px; padding: 6px 10px 10px 10px;}
60 60 html>body #content { height: auto; min-height: 600px; overflow: auto; }
61 61
62 62 #main.nosidebar #sidebar{ display: none; }
63 63 #main.nosidebar #content{ width: auto; border-right: 0; }
64 64
65 65 #footer {clear: both; border-top: 1px solid #bbb; font-size: 0.9em; color: #aaa; padding: 5px; text-align:center; background:#fff;}
66 66
67 67 #login-form table {margin-top:5em; padding:1em; margin-left: auto; margin-right: auto; border: 2px solid #FDBF3B; background-color:#FFEBC1; }
68 68 #login-form table td {padding: 6px;}
69 69 #login-form label {font-weight: bold;}
70 70
71 71 .clear:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden; }
72 72
73 73 /***** Links *****/
74 74 a, a:link, a:visited{ color: #2A5685; text-decoration: none; }
75 75 a:hover, a:active{ color: #c61a1a; text-decoration: underline;}
76 76 a img{ border: 0; }
77 77
78 a.issue.closed, .issue.closed a { text-decoration: line-through; }
78 a.issue.closed { text-decoration: line-through; }
79 79
80 80 /***** Tables *****/
81 81 table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; }
82 82 table.list th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; }
83 83 table.list td { vertical-align: top; }
84 84 table.list td.id { width: 2%; text-align: center;}
85 85 table.list td.checkbox { width: 15px; padding: 0px;}
86 86
87 87 table.list.issues { margin-top: 10px; }
88 88 tr.issue { text-align: center; white-space: nowrap; }
89 89 tr.issue td.subject, tr.issue td.category { white-space: normal; }
90 90 tr.issue td.subject { text-align: left; }
91 91 tr.issue td.done_ratio table.progress { margin-left:auto; margin-right: auto;}
92 92
93 93 tr.entry { border: 1px solid #f8f8f8; }
94 94 tr.entry td { white-space: nowrap; }
95 95 tr.entry td.filename { width: 30%; }
96 96 tr.entry td.size { text-align: right; font-size: 90%; }
97 97 tr.entry td.revision, tr.entry td.author { text-align: center; }
98 98 tr.entry td.age { text-align: right; }
99 99
100 100 tr.entry span.expander {background-image: url(../images/bullet_toggle_plus.png); padding-left: 8px; margin-left: 0; cursor: pointer;}
101 101 tr.entry.open span.expander {background-image: url(../images/bullet_toggle_minus.png);}
102 102 tr.entry.file td.filename a { margin-left: 16px; }
103 103
104 104 tr.changeset td.author { text-align: center; width: 15%; }
105 105 tr.changeset td.committed_on { text-align: center; width: 15%; }
106 106
107 107 tr.message { height: 2.6em; }
108 108 tr.message td.last_message { font-size: 80%; }
109 109 tr.message.locked td.subject a { background-image: url(../images/locked.png); }
110 110 tr.message.sticky td.subject a { background-image: url(../images/sticky.png); font-weight: bold; }
111 111
112 112 tr.user td { width:13%; }
113 113 tr.user td.email { width:18%; }
114 114 tr.user td { white-space: nowrap; }
115 115 tr.user.locked, tr.user.registered { color: #aaa; }
116 116 tr.user.locked a, tr.user.registered a { color: #aaa; }
117 117
118 118 tr.time-entry { text-align: center; white-space: nowrap; }
119 119 tr.time-entry td.subject, tr.time-entry td.comments { text-align: left; white-space: normal; }
120 120 td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; }
121 121 td.hours .hours-dec { font-size: 0.9em; }
122 122
123 123 table.list tbody tr:hover { background-color:#ffffdd; }
124 124 table td {padding:2px;}
125 125 table p {margin:0;}
126 126 .odd {background-color:#f6f7f8;}
127 127 .even {background-color: #fff;}
128 128
129 129 .highlight { background-color: #FCFD8D;}
130 130 .highlight.token-1 { background-color: #faa;}
131 131 .highlight.token-2 { background-color: #afa;}
132 132 .highlight.token-3 { background-color: #aaf;}
133 133
134 134 .box{
135 135 padding:6px;
136 136 margin-bottom: 10px;
137 137 background-color:#f6f6f6;
138 138 color:#505050;
139 139 line-height:1.5em;
140 140 border: 1px solid #e4e4e4;
141 141 }
142 142
143 143 div.square {
144 144 border: 1px solid #999;
145 145 float: left;
146 146 margin: .3em .4em 0 .4em;
147 147 overflow: hidden;
148 148 width: .6em; height: .6em;
149 149 }
150 150 .contextual {float:right; white-space: nowrap; line-height:1.4em;margin-top:5px; padding-left: 10px; font-size:0.9em;}
151 151 .contextual input {font-size:0.9em;}
152 152
153 153 .splitcontentleft{float:left; width:49%;}
154 154 .splitcontentright{float:right; width:49%;}
155 155 form {display: inline;}
156 156 input, select {vertical-align: middle; margin-top: 1px; margin-bottom: 1px;}
157 157 fieldset {border: 1px solid #e4e4e4; margin:0;}
158 158 legend {color: #484848;}
159 159 hr { width: 100%; height: 1px; background: #ccc; border: 0;}
160 160 blockquote { font-style: italic; border-left: 3px solid #e0e0e0; padding-left: 0.6em; margin-left: 2.4em;}
161 161 blockquote blockquote { margin-left: 0;}
162 162 textarea.wiki-edit { width: 99%; }
163 163 li p {margin-top: 0;}
164 164 div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;}
165 165 p.breadcrumb { font-size: 0.9em; margin: 4px 0 4px 0;}
166 166 p.subtitle { font-size: 0.9em; margin: -6px 0 12px 0; font-style: italic; }
167 167
168 168 fieldset#filters { padding: 0.7em; }
169 169 fieldset#filters p { margin: 1.2em 0 0.8em 2px; }
170 170 fieldset#filters .buttons { font-size: 0.9em; }
171 171 fieldset#filters table { border-collapse: collapse; }
172 172 fieldset#filters table td { padding: 0; vertical-align: middle; }
173 173 fieldset#filters tr.filter { height: 2em; }
174 174 fieldset#filters td.add-filter { text-align: right; vertical-align: top; }
175 175
176 176 div#issue-changesets {float:right; width:45%; margin-left: 1em; margin-bottom: 1em; background: #fff; padding-left: 1em; font-size: 90%;}
177 177 div#issue-changesets .changeset { padding: 4px;}
178 178 div#issue-changesets .changeset { border-bottom: 1px solid #ddd; }
179 179 div#issue-changesets p { margin-top: 0; margin-bottom: 1em;}
180 180
181 181 div#activity dl, #search-results { margin-left: 2em; }
182 182 div#activity dd, #search-results dd { margin-bottom: 1em; padding-left: 18px; font-size: 0.9em; }
183 183 div#activity dt, #search-results dt { margin-bottom: 0px; padding-left: 20px; line-height: 18px; background-position: 0 50%; background-repeat: no-repeat; }
184 184 div#activity dt.me .time { border-bottom: 1px solid #999; }
185 185 div#activity dt .time { color: #777; font-size: 80%; }
186 186 div#activity dd .description, #search-results dd .description { font-style: italic; }
187 187 div#activity span.project:after, #search-results span.project:after { content: " -"; }
188 188 #search-results dd { margin-bottom: 1em; padding-left: 20px; margin-left:0px;}
189 189 div#activity dd span.description, #search-results dd span.description { display:block; }
190 190
191 191 dt.issue { background-image: url(../images/ticket.png); }
192 192 dt.issue-edit { background-image: url(../images/ticket_edit.png); }
193 193 dt.issue-closed { background-image: url(../images/ticket_checked.png); }
194 194 dt.issue-note { background-image: url(../images/ticket_note.png); }
195 195 dt.changeset { background-image: url(../images/changeset.png); }
196 196 dt.news { background-image: url(../images/news.png); }
197 197 dt.message { background-image: url(../images/message.png); }
198 198 dt.reply { background-image: url(../images/comments.png); }
199 199 dt.wiki-page { background-image: url(../images/wiki_edit.png); }
200 200 dt.attachment { background-image: url(../images/attachment.png); }
201 201 dt.document { background-image: url(../images/document.png); }
202 202 dt.project { background-image: url(../images/projects.png); }
203 203
204 204 div#roadmap fieldset.related-issues { margin-bottom: 1em; }
205 205 div#roadmap fieldset.related-issues ul { margin-top: 0.3em; margin-bottom: 0.3em; }
206 206 div#roadmap .wiki h1:first-child { display: none; }
207 207 div#roadmap .wiki h1 { font-size: 120%; }
208 208 div#roadmap .wiki h2 { font-size: 110%; }
209 209
210 210 div#version-summary { float:right; width:380px; margin-left: 16px; margin-bottom: 16px; background-color: #fff; }
211 211 div#version-summary fieldset { margin-bottom: 1em; }
212 212 div#version-summary .total-hours { text-align: right; }
213 213
214 214 table#time-report td.hours, table#time-report th.period, table#time-report th.total { text-align: right; padding-right: 0.5em; }
215 215 table#time-report tbody tr { font-style: italic; color: #777; }
216 216 table#time-report tbody tr.last-level { font-style: normal; color: #555; }
217 217 table#time-report tbody tr.total { font-style: normal; font-weight: bold; color: #555; background-color:#EEEEEE; }
218 218 table#time-report .hours-dec { font-size: 0.9em; }
219 219
220 220 ul.properties {padding:0; font-size: 0.9em; color: #777;}
221 221 ul.properties li {list-style-type:none;}
222 222 ul.properties li span {font-style:italic;}
223 223
224 224 .total-hours { font-size: 110%; font-weight: bold; }
225 225 .total-hours span.hours-int { font-size: 120%; }
226 226
227 227 .autoscroll {overflow-x: auto; padding:1px; margin-bottom: 1.2em;}
228 228 #user_firstname, #user_lastname, #user_mail, #my_account_form select { width: 90%; }
229 229
230 230 .pagination {font-size: 90%}
231 231 p.pagination {margin-top:8px;}
232 232
233 233 /***** Tabular forms ******/
234 234 .tabular p{
235 235 margin: 0;
236 236 padding: 5px 0 8px 0;
237 237 padding-left: 180px; /*width of left column containing the label elements*/
238 238 height: 1%;
239 239 clear:left;
240 240 }
241 241
242 242 html>body .tabular p {overflow:hidden;}
243 243
244 244 .tabular label{
245 245 font-weight: bold;
246 246 float: left;
247 247 text-align: right;
248 248 margin-left: -180px; /*width of left column*/
249 249 width: 175px; /*width of labels. Should be smaller than left column to create some right
250 250 margin*/
251 251 }
252 252
253 253 .tabular label.floating{
254 254 font-weight: normal;
255 255 margin-left: 0px;
256 256 text-align: left;
257 257 width: 200px;
258 258 }
259 259
260 260 input#time_entry_comments { width: 90%;}
261 261
262 262 #preview fieldset {margin-top: 1em; background: url(../images/draft.png)}
263 263
264 264 .tabular.settings p{ padding-left: 300px; }
265 265 .tabular.settings label{ margin-left: -300px; width: 295px; }
266 266
267 267 .required {color: #bb0000;}
268 268 .summary {font-style: italic;}
269 269
270 270 #attachments_fields input[type=text] {margin-left: 8px; }
271 271
272 272 div.attachments p { margin:4px 0 2px 0; }
273 273 div.attachments img { vertical-align: middle; }
274 274 div.attachments span.author { font-size: 0.9em; color: #888; }
275 275
276 276 p.other-formats { text-align: right; font-size:0.9em; color: #666; }
277 277 .other-formats span + span:before { content: "| "; }
278 278
279 279 a.feed { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; }
280 280
281 281 /***** Flash & error messages ****/
282 282 #errorExplanation, div.flash, .nodata, .warning {
283 283 padding: 4px 4px 4px 30px;
284 284 margin-bottom: 12px;
285 285 font-size: 1.1em;
286 286 border: 2px solid;
287 287 }
288 288
289 289 div.flash {margin-top: 8px;}
290 290
291 291 div.flash.error, #errorExplanation {
292 292 background: url(../images/false.png) 8px 5px no-repeat;
293 293 background-color: #ffe3e3;
294 294 border-color: #dd0000;
295 295 color: #550000;
296 296 }
297 297
298 298 div.flash.notice {
299 299 background: url(../images/true.png) 8px 5px no-repeat;
300 300 background-color: #dfffdf;
301 301 border-color: #9fcf9f;
302 302 color: #005f00;
303 303 }
304 304
305 305 .nodata, .warning {
306 306 text-align: center;
307 307 background-color: #FFEBC1;
308 308 border-color: #FDBF3B;
309 309 color: #A6750C;
310 310 }
311 311
312 312 #errorExplanation ul { font-size: 0.9em;}
313 313
314 314 /***** Ajax indicator ******/
315 315 #ajax-indicator {
316 316 position: absolute; /* fixed not supported by IE */
317 317 background-color:#eee;
318 318 border: 1px solid #bbb;
319 319 top:35%;
320 320 left:40%;
321 321 width:20%;
322 322 font-weight:bold;
323 323 text-align:center;
324 324 padding:0.6em;
325 325 z-index:100;
326 326 filter:alpha(opacity=50);
327 327 opacity: 0.5;
328 328 }
329 329
330 330 html>body #ajax-indicator { position: fixed; }
331 331
332 332 #ajax-indicator span {
333 333 background-position: 0% 40%;
334 334 background-repeat: no-repeat;
335 335 background-image: url(../images/loading.gif);
336 336 padding-left: 26px;
337 337 vertical-align: bottom;
338 338 }
339 339
340 340 /***** Calendar *****/
341 341 table.cal {border-collapse: collapse; width: 100%; margin: 8px 0 6px 0;border: 1px solid #d7d7d7;}
342 342 table.cal thead th {width: 14%;}
343 343 table.cal tbody tr {height: 100px;}
344 344 table.cal th { background-color:#EEEEEE; padding: 4px; }
345 345 table.cal td {border: 1px solid #d7d7d7; vertical-align: top; font-size: 0.9em;}
346 346 table.cal td p.day-num {font-size: 1.1em; text-align:right;}
347 347 table.cal td.odd p.day-num {color: #bbb;}
348 348 table.cal td.today {background:#ffffdd;}
349 349 table.cal td.today p.day-num {font-weight: bold;}
350 350
351 351 /***** Tooltips ******/
352 352 .tooltip{position:relative;z-index:24;}
353 353 .tooltip:hover{z-index:25;color:#000;}
354 354 .tooltip span.tip{display: none; text-align:left;}
355 355
356 356 div.tooltip:hover span.tip{
357 357 display:block;
358 358 position:absolute;
359 359 top:12px; left:24px; width:270px;
360 360 border:1px solid #555;
361 361 background-color:#fff;
362 362 padding: 4px;
363 363 font-size: 0.8em;
364 364 color:#505050;
365 365 }
366 366
367 367 /***** Progress bar *****/
368 368 table.progress {
369 369 border: 1px solid #D7D7D7;
370 370 border-collapse: collapse;
371 371 border-spacing: 0pt;
372 372 empty-cells: show;
373 373 text-align: center;
374 374 float:left;
375 375 margin: 1px 6px 1px 0px;
376 376 }
377 377
378 378 table.progress td { height: 0.9em; }
379 379 table.progress td.closed { background: #BAE0BA none repeat scroll 0%; }
380 380 table.progress td.done { background: #DEF0DE none repeat scroll 0%; }
381 381 table.progress td.open { background: #FFF none repeat scroll 0%; }
382 382 p.pourcent {font-size: 80%;}
383 383 p.progress-info {clear: left; font-style: italic; font-size: 80%;}
384 384
385 385 /***** Tabs *****/
386 386 #content .tabs {height: 2.6em; border-bottom: 1px solid #bbbbbb; margin-bottom:1.2em; position:relative;}
387 387 #content .tabs ul {margin:0; position:absolute; bottom:-2px; padding-left:1em;}
388 388 #content .tabs>ul { bottom:-1px; } /* others */
389 389 #content .tabs ul li {
390 390 float:left;
391 391 list-style-type:none;
392 392 white-space:nowrap;
393 393 margin-right:8px;
394 394 background:#fff;
395 395 }
396 396 #content .tabs ul li a{
397 397 display:block;
398 398 font-size: 0.9em;
399 399 text-decoration:none;
400 400 line-height:1.3em;
401 401 padding:4px 6px 4px 6px;
402 402 border: 1px solid #ccc;
403 403 border-bottom: 1px solid #bbbbbb;
404 404 background-color: #eeeeee;
405 405 color:#777;
406 406 font-weight:bold;
407 407 }
408 408
409 409 #content .tabs ul li a:hover {
410 410 background-color: #ffffdd;
411 411 text-decoration:none;
412 412 }
413 413
414 414 #content .tabs ul li a.selected {
415 415 background-color: #fff;
416 416 border: 1px solid #bbbbbb;
417 417 border-bottom: 1px solid #fff;
418 418 }
419 419
420 420 #content .tabs ul li a.selected:hover {
421 421 background-color: #fff;
422 422 }
423 423
424 424 /***** Diff *****/
425 425 .diff_out { background: #fcc; }
426 426 .diff_in { background: #cfc; }
427 427
428 428 /***** Wiki *****/
429 429 div.wiki table {
430 430 border: 1px solid #505050;
431 431 border-collapse: collapse;
432 432 margin-bottom: 1em;
433 433 }
434 434
435 435 div.wiki table, div.wiki td, div.wiki th {
436 436 border: 1px solid #bbb;
437 437 padding: 4px;
438 438 }
439 439
440 440 div.wiki .external {
441 441 background-position: 0% 60%;
442 442 background-repeat: no-repeat;
443 443 padding-left: 12px;
444 444 background-image: url(../images/external.png);
445 445 }
446 446
447 447 div.wiki a.new {
448 448 color: #b73535;
449 449 }
450 450
451 451 div.wiki pre {
452 452 margin: 1em 1em 1em 1.6em;
453 453 padding: 2px;
454 454 background-color: #fafafa;
455 455 border: 1px solid #dadada;
456 456 width:95%;
457 457 overflow-x: auto;
458 458 }
459 459
460 460 div.wiki div.toc {
461 461 background-color: #ffffdd;
462 462 border: 1px solid #e4e4e4;
463 463 padding: 4px;
464 464 line-height: 1.2em;
465 465 margin-bottom: 12px;
466 466 margin-right: 12px;
467 467 display: table
468 468 }
469 469 * html div.wiki div.toc { width: 50%; } /* IE6 doesn't autosize div */
470 470
471 471 div.wiki div.toc.right { float: right; margin-left: 12px; margin-right: 0; width: auto; }
472 472 div.wiki div.toc.left { float: left; margin-right: 12px; margin-left: 0; width: auto; }
473 473
474 474 div.wiki div.toc a {
475 475 display: block;
476 476 font-size: 0.9em;
477 477 font-weight: normal;
478 478 text-decoration: none;
479 479 color: #606060;
480 480 }
481 481 div.wiki div.toc a:hover { color: #c61a1a; text-decoration: underline;}
482 482
483 483 div.wiki div.toc a.heading2 { margin-left: 6px; }
484 484 div.wiki div.toc a.heading3 { margin-left: 12px; font-size: 0.8em; }
485 485
486 486 /***** My page layout *****/
487 487 .block-receiver {
488 488 border:1px dashed #c0c0c0;
489 489 margin-bottom: 20px;
490 490 padding: 15px 0 15px 0;
491 491 }
492 492
493 493 .mypage-box {
494 494 margin:0 0 20px 0;
495 495 color:#505050;
496 496 line-height:1.5em;
497 497 }
498 498
499 499 .handle {
500 500 cursor: move;
501 501 }
502 502
503 503 a.close-icon {
504 504 display:block;
505 505 margin-top:3px;
506 506 overflow:hidden;
507 507 width:12px;
508 508 height:12px;
509 509 background-repeat: no-repeat;
510 510 cursor:pointer;
511 511 background-image:url('../images/close.png');
512 512 }
513 513
514 514 a.close-icon:hover {
515 515 background-image:url('../images/close_hl.png');
516 516 }
517 517
518 518 /***** Gantt chart *****/
519 519 .gantt_hdr {
520 520 position:absolute;
521 521 top:0;
522 522 height:16px;
523 523 border-top: 1px solid #c0c0c0;
524 524 border-bottom: 1px solid #c0c0c0;
525 525 border-right: 1px solid #c0c0c0;
526 526 text-align: center;
527 527 overflow: hidden;
528 528 }
529 529
530 530 .task {
531 531 position: absolute;
532 532 height:8px;
533 533 font-size:0.8em;
534 534 color:#888;
535 535 padding:0;
536 536 margin:0;
537 537 line-height:0.8em;
538 538 }
539 539
540 540 .task_late { background:#f66 url(../images/task_late.png); border: 1px solid #f66; }
541 541 .task_done { background:#66f url(../images/task_done.png); border: 1px solid #66f; }
542 542 .task_todo { background:#aaa url(../images/task_todo.png); border: 1px solid #aaa; }
543 543 .milestone { background-image:url(../images/milestone.png); background-repeat: no-repeat; border: 0; }
544 544
545 545 /***** Icons *****/
546 546 .icon {
547 547 background-position: 0% 40%;
548 548 background-repeat: no-repeat;
549 549 padding-left: 20px;
550 550 padding-top: 2px;
551 551 padding-bottom: 3px;
552 552 }
553 553
554 554 .icon22 {
555 555 background-position: 0% 40%;
556 556 background-repeat: no-repeat;
557 557 padding-left: 26px;
558 558 line-height: 22px;
559 559 vertical-align: middle;
560 560 }
561 561
562 562 .icon-add { background-image: url(../images/add.png); }
563 563 .icon-edit { background-image: url(../images/edit.png); }
564 564 .icon-copy { background-image: url(../images/copy.png); }
565 565 .icon-del { background-image: url(../images/delete.png); }
566 566 .icon-move { background-image: url(../images/move.png); }
567 567 .icon-save { background-image: url(../images/save.png); }
568 568 .icon-cancel { background-image: url(../images/cancel.png); }
569 569 .icon-file { background-image: url(../images/file.png); }
570 570 .icon-folder { background-image: url(../images/folder.png); }
571 571 .open .icon-folder { background-image: url(../images/folder_open.png); }
572 572 .icon-package { background-image: url(../images/package.png); }
573 573 .icon-home { background-image: url(../images/home.png); }
574 574 .icon-user { background-image: url(../images/user.png); }
575 575 .icon-mypage { background-image: url(../images/user_page.png); }
576 576 .icon-admin { background-image: url(../images/admin.png); }
577 577 .icon-projects { background-image: url(../images/projects.png); }
578 578 .icon-logout { background-image: url(../images/logout.png); }
579 579 .icon-help { background-image: url(../images/help.png); }
580 580 .icon-attachment { background-image: url(../images/attachment.png); }
581 581 .icon-index { background-image: url(../images/index.png); }
582 582 .icon-history { background-image: url(../images/history.png); }
583 583 .icon-time { background-image: url(../images/time.png); }
584 584 .icon-stats { background-image: url(../images/stats.png); }
585 585 .icon-warning { background-image: url(../images/warning.png); }
586 586 .icon-fav { background-image: url(../images/fav.png); }
587 587 .icon-fav-off { background-image: url(../images/fav_off.png); }
588 588 .icon-reload { background-image: url(../images/reload.png); }
589 589 .icon-lock { background-image: url(../images/locked.png); }
590 590 .icon-unlock { background-image: url(../images/unlock.png); }
591 591 .icon-checked { background-image: url(../images/true.png); }
592 592 .icon-details { background-image: url(../images/zoom_in.png); }
593 593 .icon-report { background-image: url(../images/report.png); }
594 594
595 595 .icon22-projects { background-image: url(../images/22x22/projects.png); }
596 596 .icon22-users { background-image: url(../images/22x22/users.png); }
597 597 .icon22-tracker { background-image: url(../images/22x22/tracker.png); }
598 598 .icon22-role { background-image: url(../images/22x22/role.png); }
599 599 .icon22-workflow { background-image: url(../images/22x22/workflow.png); }
600 600 .icon22-options { background-image: url(../images/22x22/options.png); }
601 601 .icon22-notifications { background-image: url(../images/22x22/notifications.png); }
602 602 .icon22-authent { background-image: url(../images/22x22/authent.png); }
603 603 .icon22-info { background-image: url(../images/22x22/info.png); }
604 604 .icon22-comment { background-image: url(../images/22x22/comment.png); }
605 605 .icon22-package { background-image: url(../images/22x22/package.png); }
606 606 .icon22-settings { background-image: url(../images/22x22/settings.png); }
607 607 .icon22-plugin { background-image: url(../images/22x22/plugin.png); }
608 608
609 609 /***** Media print specific styles *****/
610 610 @media print {
611 611 #top-menu, #header, #main-menu, #sidebar, #footer, .contextual, .other-formats { display:none; }
612 612 #main { background: #fff; }
613 613 #content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; }
614 614 }
General Comments 0
You need to be logged in to leave comments. Login now