forked from e621ng/e621ng
[Pools] Fix versions index for frozen string literals
This commit is contained in:
parent
5140bea658
commit
19932adc7b
@ -1,17 +1,15 @@
|
||||
module PoolVersionsHelper
|
||||
def pool_version_posts_diff(pool_version)
|
||||
html = ""
|
||||
changes = []
|
||||
|
||||
html << pool_version.added_post_ids.map do |post_id|
|
||||
'<ins><a href="/posts/' + post_id.to_s + '">' + post_id.to_s + '</a></ins>'
|
||||
end.join(" ")
|
||||
pool_version.added_post_ids.each do |post_id|
|
||||
changes << tag.ins(link_to(post_id, post_path(post_id)))
|
||||
end
|
||||
|
||||
html << " "
|
||||
pool_version.removed_post_ids.each do |post_id|
|
||||
changes << tag.del(link_to(post_id, post_path(post_id)))
|
||||
end
|
||||
|
||||
html << pool_version.removed_post_ids.map do |post_id|
|
||||
'<del><a href="/posts/' + post_id.to_s + '">' + post_id.to_s + '</a></del>'
|
||||
end.join(" ")
|
||||
|
||||
return html.html_safe
|
||||
safe_join(changes, " ")
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user