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:
@@ -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">'
|
||||
|
||||
Reference in New Issue
Block a user