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.

23 lines
804 B

  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. %tbody
  10. - @sessions.each do |session|
  11. %tr
  12. %td
  13. %span{ title: session.user_agent }= fa_icon session_device_icon(session)
  14. = ' '
  15. = t 'sessions.description', browser: t("sessions.browsers.#{session.browser}"), platform: t("sessions.platforms.#{session.platform}")
  16. %td
  17. %samp= session.ip
  18. %td
  19. - if request.session['auth_id'] == session.session_id
  20. = t 'sessions.current_session'
  21. - else
  22. %time.time-ago{ datetime: session.updated_at.iso8601, title: l(session.updated_at) }= l(session.updated_at)