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
This commit is contained in:
parent
0cd9149e7a
commit
bcd8ce2de2
|
@ -245,9 +245,12 @@ module Redmine
|
||||||
def subject_for_project(project, options)
|
def subject_for_project(project, options)
|
||||||
case options[:format]
|
case options[:format]
|
||||||
when :html
|
when :html
|
||||||
subject = "<span class='icon icon-projects #{project.overdue? ? 'project-overdue' : ''}'>".html_safe
|
html_class = ""
|
||||||
subject << view.link_to_project(project).html_safe
|
html_class << 'icon icon-projects '
|
||||||
subject << '</span>'.html_safe
|
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")
|
html_subject(options, subject, :css => "project-name")
|
||||||
when :image
|
when :image
|
||||||
image_subject(options, project.name)
|
image_subject(options, project.name)
|
||||||
|
|
Loading…
Reference in New Issue