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:
Toshi MARUYAMA 2012-09-10 22:56:56 +00:00
parent 0cd08ed08c
commit b75afd49de
1 changed files with 3 additions and 1 deletions

View File

@ -664,7 +664,9 @@ module Redmine
def html_subject(params, subject, options={})
style = "position: absolute;top:#{params[:top]}px;left:#{params[:indent]}px;"
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
output
end