summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-11 02:16:32 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-11 02:16:32 +0000
commitbcd8ce2de2b5c234777674f72247296ade97852f (patch)
tree168bcba208c9fde6056f6fcf215ef1ddf8e64bdf /lib
parent0cd9149e7a6f2ece3ffeae7436ea77a7d53a85e8 (diff)
downloadredmine-bcd8ce2de2b5c234777674f72247296ade97852f.tar.gz
redmine-bcd8ce2de2b5c234777674f72247296ade97852f.zip
gantt: use content_tag instead of html tag at subject for project
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10359 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/helpers/gantt.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index 510da8735..763342345 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -245,9 +245,12 @@ module Redmine
def subject_for_project(project, options)
case options[:format]
when :html
- subject = "<span class='icon icon-projects #{project.overdue? ? 'project-overdue' : ''}'>".html_safe
- subject << view.link_to_project(project).html_safe
- subject << '</span>'.html_safe
+ html_class = ""
+ html_class << 'icon icon-projects '
+ html_class << (project.overdue? ? 'project-overdue' : '')
+ s = view.link_to_project(project).html_safe
+ subject = view.content_tag(:span, s,
+ :class => html_class).html_safe
html_subject(options, subject, :css => "project-name")
when :image
image_subject(options, project.name)