Make the post versions more like the old format

- "Current" is now most like the old format
-- It is therefore now the default for post versions
- Only show the actual edits in their own column
- Show the current state at that version in another column
- On the "previous" view, don't double-show full list of tags for
  the first post versions, so leave edits blank
This commit is contained in:
BrokenEagle
2020-03-28 03:23:13 +00:00
parent cbfa8c4904
commit 6aa0adb738
7 changed files with 86 additions and 39 deletions

View File

@@ -42,8 +42,8 @@ class ApplicationController < ActionController::Base
super
end
def set_version_comparison
params[:type] = %w[previous subsequent current].include?(params[:type]) ? params[:type] : "previous"
def set_version_comparison(default_type = "previous")
params[:type] = %w[previous subsequent current].include?(params[:type]) ? params[:type] : default_type
end
def model_name