This commit is contained in:
Toks
2013-04-04 12:10:58 -04:00
parent 83901514e8
commit aa3c5cd794

View File

@@ -9,6 +9,6 @@ module PoolVersionsHelper
added = current.post_id_array - prev.post_id_array
removed = prev.post_id_array - current.post_id_array
(added.map {|x| '<ins><a href="/posts/' + x.to_s + '">' + x.to_s + '</a></ins>'}.join(" ") + removed.map {|x| '<del><a href="/posts/' + x.to_s + '">' + x.to_s + '</a></del>'}.join(" ")).html_safe
(added.map {|x| '<ins><a href="/posts/' + x.to_s + '">' + x.to_s + '</a></ins>'}.join(" ") + " " + removed.map {|x| '<del><a href="/posts/' + x.to_s + '">' + x.to_s + '</a></del>'}.join(" ")).html_safe
end
end