_active_session.html.haml 666 Bytes
Newer Older
1 2
- is_current_session = active_session.current?(session)

Clement Ho's avatar
Clement Ho committed
3
%li.list-group-item
4
  .float-left.append-right-10{ data: { toggle: 'tooltip' }, title: active_session.human_device_type }
5 6
    = active_session_device_type_icon(active_session)

7
  .description.float-left
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
    %div
      %strong= active_session.ip_address
    - if is_current_session
      %div This is your current session
    - else
      %div
        Last accessed on
        = l(active_session.updated_at, format: :short)

    %div
      %strong= active_session.browser
      on
      %strong= active_session.os

    %div
      %strong Signed in
      on
      = l(active_session.created_at, format: :short)