diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-01 11:45:18 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-01 11:45:18 +0000 |
commit | b67353fdb59a42074380e811c44b225a19994feb (patch) | |
tree | 7e550d481470b9e2c7b1956ebc3828b40162f618 /app | |
parent | 56ca36ede13ddfc4d585476cef04cffc3238a34e (diff) | |
download | redmine-b67353fdb59a42074380e811c44b225a19994feb.tar.gz redmine-b67353fdb59a42074380e811c44b225a19994feb.zip |
Rails3: helper: html_safe for IssuesHelper render_issue_tooltip method
Contributed by Sylvain Utard.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8454 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/issues_helper.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 03bc60355..49d734452 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -48,13 +48,13 @@ module IssuesHelper @cached_label_priority ||= l(:field_priority) @cached_label_project ||= l(:field_project) - (link_to_issue(issue) + "<br /><br />" + - "<strong>#{@cached_label_project}</strong>: #{link_to_project(issue.project)}<br />" + - "<strong>#{@cached_label_status}</strong>: #{h(issue.status.name)}<br />" + - "<strong>#{@cached_label_start_date}</strong>: #{format_date(issue.start_date)}<br />" + - "<strong>#{@cached_label_due_date}</strong>: #{format_date(issue.due_date)}<br />" + - "<strong>#{@cached_label_assigned_to}</strong>: #{h(issue.assigned_to)}<br />" + - "<strong>#{@cached_label_priority}</strong>: #{h(issue.priority.name)}").html_safe + link_to_issue(issue) + "<br /><br />".html_safe + + "<strong>#{@cached_label_project}</strong>: #{link_to_project(issue.project)}<br />".html_safe + + "<strong>#{@cached_label_status}</strong>: #{h(issue.status.name)}<br />".html_safe + + "<strong>#{@cached_label_start_date}</strong>: #{format_date(issue.start_date)}<br />".html_safe + + "<strong>#{@cached_label_due_date}</strong>: #{format_date(issue.due_date)}<br />".html_safe + + "<strong>#{@cached_label_assigned_to}</strong>: #{h(issue.assigned_to)}<br />".html_safe + + "<strong>#{@cached_label_priority}</strong>: #{h(issue.priority.name)}".html_safe end def issue_heading(issue) |