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