fixes #199
This commit is contained in:
@@ -3,13 +3,13 @@ module PostVersionsHelper
|
||||
diff = post_version.diff(post_version.previous)
|
||||
html = []
|
||||
diff[:added_tags].each do |tag|
|
||||
html << '<ins>' + tag + '</ins>'
|
||||
html << '<ins>' + link_to(tag, posts_path(:tags => tag)) + '</ins>'
|
||||
end
|
||||
diff[:removed_tags].each do |tag|
|
||||
html << '<del>' + tag + '</del>'
|
||||
html << '<del>' + link_to(tag, posts_path(:tags => tag)) + '</del>'
|
||||
end
|
||||
diff[:unchanged_tags].each do |tag|
|
||||
html << '<span>' + tag + '</span>' unless tag =~ /^(?:rating|source):/
|
||||
html << '<span>' + link_to(tag, posts_path(:tags => tag)) + '</span>' unless tag =~ /^(?:rating|source):/
|
||||
end
|
||||
return html.join(" ").html_safe
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user