Sha256: 83425ad5532bd032652b8e4faf223c83cd1a5c4bb9874e2dfe9b7bf803f2bfe7

Contents?: true

Size: 864 Bytes

Versions: 2

Compression:

Stored size: 864 Bytes

Contents

.card
  .card-header
    %i.fas.fa-microchip
    = t('activerecord.models.audits')
  .card-body
    %table.table.table-striped.table-bordered
      %thead
        %tr
          %th{scope: 'col'}= t('activerecord.attributes.audit.action')
          %th{scope: 'col'}= t('view.previous_value')
          %th{scope: 'col'}= t('view.current_value')
      %tbody
        - @audit.audited_changes.each_key do |key|
          %tr
            - if @audit.try(:auditable_type).present?
              %th{scope: 'row'}= t("activerecord.attributes.#{@audit.try(:auditable_type).try(:underscore)}.#{key}")
            - if @audit.audited_changes[key].is_a?(Array)
              %td= @audit.audited_changes[key][0]
              %td= @audit.audited_changes[key][1]
            - else
              %td= @audit.audited_changes[key]
              %td= @audit.audited_changes[key]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cybele-2.3.2 templates/app_files/app/views/hq/audits/show.html.haml
cybele-2.3.1 templates/app_files/app/views/hq/audits/show.html.haml