gantt: code layout cleanup html_subject method of lib/redmine/helpers/gantt.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10347 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0cd08ed08c
commit
b75afd49de
|
@ -664,7 +664,9 @@ module Redmine
|
||||||
def html_subject(params, subject, options={})
|
def html_subject(params, subject, options={})
|
||||||
style = "position: absolute;top:#{params[:top]}px;left:#{params[:indent]}px;"
|
style = "position: absolute;top:#{params[:top]}px;left:#{params[:indent]}px;"
|
||||||
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 = view.content_tag 'div', subject, :class => options[:css], :style => style, :title => options[:title]
|
output = view.content_tag('div', subject,
|
||||||
|
:class => options[:css], :style => style,
|
||||||
|
:title => options[:title])
|
||||||
@subjects << output
|
@subjects << output
|
||||||
output
|
output
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue