fixes #900 (both + and -)
This commit is contained in:
@@ -3,10 +3,10 @@ module PostVersionsHelper
|
||||
diff = post_version.diff(post_version.previous)
|
||||
html = []
|
||||
diff[:added_tags].each do |tag|
|
||||
html << '<ins>' + link_to(tag, posts_path(:tags => tag)) + '</ins>'
|
||||
html << '<ins>+' + link_to(tag, posts_path(:tags => tag)) + '</ins>'
|
||||
end
|
||||
diff[:removed_tags].each do |tag|
|
||||
html << '<del>' + link_to(tag, posts_path(:tags => tag)) + '</del>'
|
||||
html << '<del>-' + link_to(tag, posts_path(:tags => tag)) + '</del>'
|
||||
end
|
||||
diff[:unchanged_tags].each do |tag|
|
||||
html << '<span>' + link_to(tag, posts_path(:tags => tag)) + '</span>'
|
||||
|
||||
Reference in New Issue
Block a user