Sha256: e77a6249c131856a7cd6b7e371bf7d44af6ddff731309d5d41f088e8e8231c48

Contents?: true

Size: 778 Bytes

Versions: 4

Compression:

Stored size: 778 Bytes

Contents

- if additional_objects_changes.any?
  h3 Related object changes
  table.diff
    thead: tr
      th Attribute
      th Removed
      th Added
    tbody
      - additional_objects_changes.each do |attr, changes|
        - added = changes['+']
        - removed = changes['-']

        - old_class, new_class = versions_diff_classes(removed, added)

        tr
          td.attr-name = attr.humanize
          td class=old_class
            - if removed
              ul
                - removed.each do |removed_item|
                  li = pretty_version_attribute_value(attr, removed_item)
          td class=new_class
            - if added
              ul
                - added.each do |added_item|
                  li = pretty_version_attribute_value(attr, added_item)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activeadmin-audit-0.1.4 app/views/admin/content_versions/_additional_objects_changes.html.slim
activeadmin-audit-0.1.2 app/views/admin/content_versions/_additional_objects_changes.html.slim
activeadmin-audit-0.1.1 app/views/admin/content_versions/_additional_objects_changes.html.slim
activeadmin-audit-0.1.0 app/views/admin/content_versions/_additional_objects_changes.html.slim