Adds full subject as gantt subject title (#7280).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4914 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
07092b890a
commit
3a8f66116f
|
@ -361,7 +361,7 @@ module Redmine
|
||||||
end
|
end
|
||||||
subject << view.link_to_issue(issue)
|
subject << view.link_to_issue(issue)
|
||||||
subject << '</span>'
|
subject << '</span>'
|
||||||
html_subject(options, subject, :css => "issue-subject") + "\n"
|
html_subject(options, subject, :css => "issue-subject", :title => issue.subject) + "\n"
|
||||||
when :image
|
when :image
|
||||||
image_subject(options, issue.subject)
|
image_subject(options, issue.subject)
|
||||||
when :pdf
|
when :pdf
|
||||||
|
@ -716,9 +716,7 @@ module Redmine
|
||||||
style = "position: absolute;line-height:1.2em;height:16px;top:#{params[:top]}px;left:#{params[:indent]}px;overflow:hidden;white-space:nowrap;text-overflow: ellipsis;"
|
style = "position: absolute;line-height:1.2em;height:16px;top:#{params[:top]}px;left:#{params[:indent]}px;overflow:hidden;white-space:nowrap;text-overflow: ellipsis;"
|
||||||
style << "width:#{params[:subject_width] - params[:indent]}px;" if params[:subject_width]
|
style << "width:#{params[:subject_width] - params[:indent]}px;" if params[:subject_width]
|
||||||
|
|
||||||
output = "<div class='#{options[:css]}' style='#{style}'>"
|
output = view.content_tag 'div', subject, :class => options[:css], :style => style, :title => options[:title]
|
||||||
output << subject
|
|
||||||
output << "</div>"
|
|
||||||
@subjects << output
|
@subjects << output
|
||||||
output
|
output
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue