logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

_sessions.html.haml (1197B)


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