artist versions: rearrange layout to better fit small screens.

* Move group name beneath the artist name.
* Replace 'Active' column with '(deleted)' notice next to artist name.
* Combine updater, updated at, and ip address fields in single column.
* Combine templates for standard listing and revert listing (only
  difference is presense of 'Revert to' column).
This commit is contained in:
evazion
2018-12-09 00:01:26 -06:00
parent c75aef38ed
commit 61f6de5ff3
4 changed files with 35 additions and 84 deletions

View File

@@ -1,4 +1,8 @@
module ArtistVersionsHelper
def artist_versions_listing_type
params.dig(:search, :artist_id).present? && CurrentUser.is_member? ? :revert : :standard
end
def artist_version_other_names_diff(artist_version)
new_names = artist_version.other_names
old_names = artist_version.previous.try(:other_names)