mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 16:39:55 +02:00
Merge branch 'story/115762063--show-historical-nested' into staging
# Conflicts: # app/models/domain.rb # app/views/admin/domains/partials/_version.haml # config/locales/en.yml
This commit is contained in:
commit
f69c4ef919
7 changed files with 155 additions and 86 deletions
|
@ -72,4 +72,15 @@ module ApplicationHelper
|
|||
|
||||
link_to(title, url_for(sort: {param_name => order}), class: "sort_link #{order}")
|
||||
end
|
||||
|
||||
def changing_css_class(version, *attrs)
|
||||
return unless version
|
||||
css_class = "text-warning"
|
||||
|
||||
if attrs.size == 1
|
||||
version.object_changes.to_h[attrs.first] && css_class
|
||||
else
|
||||
version.object_changes.to_h.slice(*attrs).any? && css_class
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue