Sha256: aadf27f22b1bab80e3b8adfeba690c9792ea36497b58feef32d0276cee919125

Contents?: true

Size: 857 Bytes

Versions: 5

Compression:

Stored size: 857 Bytes

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 Created at
        %tbody
          - if list.count > 0
            - list.all.each do |entity|
              %tr
                %td
                  -if entity.user
                    %a{ href: "/users/#{entity.user.id}" }= entity.user.email
                  -else
                    None
                %td
                  = entity.action
                %td
                  = entity.details
                %td
                  = entity.created_at.strftime('%Y-%m-%d %H:%M:%S')
          - else
            %tr
              %td.text-center{ colspan: 4 } No records

=pagination(list, base_path)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ditty-0.4.1 views/audit_logs/index.haml
ditty-0.4.0 views/audit_logs/index.haml
ditty-0.3.3 views/audit_logs/index.haml
ditty-0.3.2 views/audit_logs/index.haml
ditty-0.3.1 views/audit_logs/index.haml