From 25aeb4c3d366c2cfacf498915973fa85c3633c42 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 10 Sep 2012 22:57:24 +0000 Subject: [PATCH] gantt: use content_tag instead of html tag at subject gravatar git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10348 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/helpers/gantt.rb | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 7fa27b72d..eff5ffed3 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -328,14 +328,18 @@ module Redmine css_classes << ' issue-overdue' if issue.overdue? css_classes << ' issue-behind-schedule' if issue.behind_schedule? css_classes << ' icon icon-issue' unless Setting.gravatar_enabled? && issue.assigned_to - subject = "".html_safe + s = "".html_safe if issue.assigned_to.present? assigned_string = l(:field_assigned_to) + ": " + issue.assigned_to.name - subject << view.avatar(issue.assigned_to, :class => 'gravatar icon-gravatar', :size => 10, :title => assigned_string).to_s.html_safe + s << view.avatar(issue.assigned_to, + :class => 'gravatar icon-gravatar', + :size => 10, + :title => assigned_string).to_s.html_safe end - subject << view.link_to_issue(issue).html_safe - subject << ''.html_safe - html_subject(options, subject, :css => "issue-subject", :title => issue.subject) + "\n" + s << view.link_to_issue(issue).html_safe + subject = view.content_tag(:span, s, :class => css_classes).html_safe + html_subject(options, subject, :css => "issue-subject", + :title => issue.subject) + "\n" when :image image_subject(options, issue.subject) when :pdf