Move shared version partials to views/shared
This commit is contained in:
parent
c80f37f3ff
commit
0a3466ca7c
4 changed files with 5 additions and 5 deletions
|
|
@ -31,6 +31,6 @@
|
||||||
= "(#{version.created_at.strftime('%B %-d, %Y %H:%M')})"
|
= "(#{version.created_at.strftime('%B %-d, %Y %H:%M')})"
|
||||||
|
|
||||||
%br
|
%br
|
||||||
= render partial: 'admin/versions/object_changes', locals: { version: version }
|
= render partial: 'shared/object_changes', locals: { version: version }
|
||||||
%td
|
%td
|
||||||
= render partial: 'admin/versions/changelog_actions', locals: { version: version }
|
= render partial: 'shared/changelog_actions', locals: { version: version }
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
= "(#{version.created_at.strftime('%B %-d, %Y %H:%M')})"
|
= "(#{version.created_at.strftime('%B %-d, %Y %H:%M')})"
|
||||||
|
|
||||||
%br
|
%br
|
||||||
= render partial: 'object_changes', locals: { version: version }
|
= render partial: 'shared/object_changes', locals: { version: version }
|
||||||
|
|
||||||
%td.col-md-2
|
%td.col-md-2
|
||||||
= render partial: 'changelog_actions', locals: { version: version }
|
= render partial: 'shared/changelog_actions', locals: { version: version }
|
||||||
|
|
|
||||||
|
|
@ -12,4 +12,4 @@
|
||||||
- version.changeset.reject{ |_, values| values[0].blank? && values[1].blank? }.each do |attribute, values|
|
- version.changeset.reject{ |_, values| values[0].blank? && values[1].blank? }.each do |attribute, values|
|
||||||
%li= link_to attribute, admin_revision_history_revert_attribute_path(id: version.id, attribute: attribute), data: { confirm: "Are you sure you want to revert #{attribute}?" }
|
%li= link_to attribute, admin_revision_history_revert_attribute_path(id: version.id, attribute: attribute), data: { confirm: "Are you sure you want to revert #{attribute}?" }
|
||||||
- else
|
- else
|
||||||
%button.btn.btn-sm.btn-primary.disabled Revert
|
%button.btn.btn-sm.btn-primary.disabled Revert
|
||||||
Loading…
Add table
Add a link
Reference in a new issue