Commit 4d997f08 authored by tmaruyama's avatar tmaruyama

Rails3: helper: use html_safe at render_changes_tree(tree) of RepositoriesHelper

Contributed by Sylvain Utard.

git-svn-id: https://svn.redmine.org/redmine/trunk@7545 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 80645bc2
......@@ -103,17 +103,17 @@ module RepositoriesHelper
:path => path_param,
:rev => @changeset.identifier) unless c.action == 'D'
text << " - #{h(c.revision)}" unless c.revision.blank?
text << ' (' + link_to(l(:label_diff), :controller => 'repositories',
text << ' ('.html_safe + link_to(l(:label_diff), :controller => 'repositories',
:action => 'diff',
:id => @project,
:path => path_param,
:rev => @changeset.identifier) + ') ' if c.action == 'M'
text << ' ' + content_tag('span', h(c.from_path), :class => 'copied-from') unless c.from_path.blank?
:rev => @changeset.identifier) + ') '.html_safe if c.action == 'M'
text << ' '.html_safe + content_tag('span', h(c.from_path), :class => 'copied-from') unless c.from_path.blank?
output << "<li class='#{style}'>#{text}</li>"
end
end
output << '</ul>'
output
output.html_safe
end
def to_utf8(str)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment