闭社主体 forked from https://github.com/tootsuite/mastodon
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.

24 lines
876 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 }<
  14. = fa_icon "#{session_device_icon(session)} fw", 'aria-label' => session_device_icon(session)
  15. = ' '
  16. = t 'sessions.description', browser: t("sessions.browsers.#{session.browser}"), platform: t("sessions.platforms.#{session.platform}")
  17. %td
  18. %samp= session.ip
  19. %td
  20. - if request.session['auth_id'] == session.session_id
  21. = t 'sessions.current_session'
  22. - else
  23. %time.time-ago{ datetime: session.updated_at.iso8601, title: l(session.updated_at) }= l(session.updated_at)