Sha256: 7dc48c8753141a6682cba43fa3710094da54896a3bae97ddebd57a1387b3f2f1

Contents?: true

Size: 1012 Bytes

Versions: 2

Compression:

Stored size: 1012 Bytes

Contents

.row
  .col-md-12
    = haml :'partials/search'
    %table.table.table-striped.table-bordered.table-hover
      %thead.thead-dark
        %tr
          %th= "User #{sort_ui(:user_id)}"
          %th= "IP Address #{sort_ui(:ip_address)}"
          %th= "Device #{sort_ui(:device)}"
          %th= "Platform #{sort_ui(:platform)}"
          %th= "Browser #{sort_ui(:browser)}"
          %th= "Last Seen #{sort_ui(:updated_at)}"
      %tbody
        - if list.count.positive?
          - list.all.each do |entity|
            %tr
              %td= entity.user&.email || 'Unknown'
              %td
                %a{ href: "#{base_path}/#{entity.display_id}" }= entity.ip_address || 'Unknown'
              %td= entity.device || 'Unknown'
              %td= entity.platform || 'Unknown'
              %td= entity.browser || 'Unknown'
              %td= entity.updated_at
        - else
          %tr
            %td.text-center{ colspan: 6 } No records

=pagination(list, base_path)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ditty-0.10.2 views/user_login_traits/index.haml
ditty-0.10.1 views/user_login_traits/index.haml