You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.0 KiB

  1. %h6= t 'sessions.title'
  2. %p.muted-hint= t 'sessions.explanation'
  3. %table.table.inline-table
  4. %thead
  5. %tr
  6. %th= t 'sessions.browser'
  7. %th= t 'sessions.ip'
  8. %th= t 'sessions.activity'
  9. %td
  10. %tbody
  11. - @sessions.each do |session|
  12. %tr
  13. %td
  14. %span{ title: session.user_agent }<
  15. = fa_icon "#{session_device_icon(session)} fw", 'aria-label' => session_device_icon(session)
  16. = ' '
  17. = t 'sessions.description', browser: t("sessions.browsers.#{session.browser}"), platform: t("sessions.platforms.#{session.platform}")
  18. %td
  19. %samp= session.ip
  20. %td
  21. - if request.session['auth_id'] == session.session_id
  22. = t 'sessions.current_session'
  23. - else
  24. %time.time-ago{ datetime: session.updated_at.iso8601, title: l(session.updated_at) }= l(session.updated_at)
  25. %td
  26. - if request.session['auth_id'] != session.session_id
  27. = table_link_to 'times', t('sessions.revoke'), settings_session_path(session), method: :delete