Rework post version view

- Added a changes column explicitly listing all of the changes
-- This makes it more in line with the other views now
This commit is contained in:
BrokenEagle
2020-02-08 08:57:26 +00:00
parent 7b1efd1204
commit 8ff00cfc7d
5 changed files with 18 additions and 15 deletions

View File

@@ -1,8 +1,4 @@
module PostVersionsHelper
def post_versions_listing_type
params.dig(:search, :post_id).present? ? :revert : :standard
end
def post_version_diff(post_version)
diff = post_version.diff(post_version.previous)
html = '<span class="diff-list">'