##// END OF EJS Templates
Merged r4782 from trunk....
Jean-Philippe Lang -
r4663:77c4667dbc19
parent child
Show More
@@ -60,7 +60,7 end
60 60 # Width of the entire chart
61 61 g_width = (@gantt.date_to - @gantt.date_from + 1)*zoom
62 62
63 @gantt.render(:top => headers_height + 8, :zoom => zoom, :g_width => g_width, :subject_width => subject_width)
63 @gantt.render(:top => headers_height + 8, :zoom => zoom, :g_width => g_width)
64 64
65 65 g_height = [(20 * (@gantt.number_of_rows + 6))+150, 206].max
66 66 t_height = g_height + headers_height
@@ -263,7 +263,7 module Redmine
263 263 def subject_for_project(project, options)
264 264 case options[:format]
265 265 when :html
266 subject = "<span class='gantt_subject-text icon icon-projects #{project.overdue? ? 'project-overdue' : ''}'>"
266 subject = "<span class='icon icon-projects #{project.overdue? ? 'project-overdue' : ''}'>"
267 267 subject << view.link_to_project(project)
268 268 subject << '</span>'
269 269 html_subject(options, subject, :css => "project-name")
@@ -301,7 +301,7 module Redmine
301 301 def subject_for_version(version, options)
302 302 case options[:format]
303 303 when :html
304 subject = "<span class='gantt_subject-text icon icon-package #{version.behind_schedule? ? 'version-behind-schedule' : ''} #{version.overdue? ? 'version-overdue' : ''}'>"
304 subject = "<span class='icon icon-package #{version.behind_schedule? ? 'version-behind-schedule' : ''} #{version.overdue? ? 'version-overdue' : ''}'>"
305 305 subject << view.link_to_version(version)
306 306 subject << '</span>'
307 307 html_subject(options, subject, :css => "version-name")
@@ -345,7 +345,7 module Redmine
345 345
346 346 output = case options[:format]
347 347 when :html
348 css_classes = 'gantt_subject-text'
348 css_classes = ''
349 349 css_classes << ' issue-overdue' if issue.overdue?
350 350 css_classes << ' issue-behind-schedule' if issue.behind_schedule?
351 351 css_classes << ' icon icon-issue' unless Setting.gravatar_enabled? && issue.assigned_to
@@ -357,7 +357,7 module Redmine
357 357 end
358 358 subject << view.link_to_issue(issue)
359 359 subject << '</span>'
360 html_subject(options, subject, :css => 'issue-subject') + "\n"
360 html_subject(options, subject, :css => "issue-subject") + "\n"
361 361 when :image
362 362 image_subject(options, issue.subject)
363 363 when :pdf
@@ -709,7 +709,7 module Redmine
709 709 end
710 710
711 711 def html_subject(params, subject, options={})
712 output = "<div class='gantt_subject #{options[:css] }' style='top:#{params[:top]}px;left:#{params[:indent]}px;width:#{params[:subject_width]-params[:indent]}px;'>"
712 output = "<div class=' #{options[:css] }' style='position: absolute;line-height:1.2em;height:16px;top:#{params[:top]}px;left:#{params[:indent]}px;overflow:hidden;'>"
713 713 output << subject
714 714 output << "</div>"
715 715 @subjects << output
@@ -783,8 +783,6 background-image:url('../images/close_hl.png');
783 783 }
784 784
785 785 .gantt_subjects { font-size: 0.8em; }
786 .gantt_subject { position: absolute; line-height: 1.2em; height: 16px; overflow: hidden; text-overflow: ellipsis; }
787 .gantt_subject-text { float: left; white-space: nowrap; }
788 786
789 787 .task {
790 788 position: absolute;
General Comments 0
You need to be logged in to leave comments. Login now