Sha256: e00feedd8d5110d5e28c2e6694fc1333ffbb4e8da2c2e04b667cc9cdb52c119c

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

.row
  .col-md-12
    .panel.panel-default
      .panel-body
        = haml :'partials/search'
      %table.table.table-striped
        %thead
          %tr
            %th User email
            %th Action
            %th Details
            %th IP Address
            %th Browser
            %th Device
            %th Platform
            %th Created at
        %tbody
          - if list.count > 0
            - list.all.each do |entity|
              %tr
                %td
                  -if entity.user
                    %a{ href: "#{settings.map_path}/users/#{entity.user.id}" }= entity.user.email
                  -else
                    None
                %td= entity.action
                %td= entity.details
                %td= entity.ip_address || 'Unknown'
                %td= entity.browser || 'Unknown'
                %td= entity.device || 'Unknown'
                %td= entity.platform || 'Unknown'
                %td= entity.created_at&.strftime('%Y-%m-%d %H:%M:%S') || 'Unknown'
          - else
            %tr
              %td.text-center{ colspan: 4 } No records

=pagination(list, base_path)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ditty-0.8.0 views/audit_logs/index.haml