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

@@ -108,6 +108,15 @@ class PostArchive < ApplicationRecord
post&.visible?
end
def self.status_fields
{
tags: "Tags",
rating: "Rating",
parent_id: "Parent",
source: "Source",
}
end
def diff(version = nil)
if post.nil?
latest_tags = tag_array