2018-05-02 08:08:16 +00:00
|
|
|
- is_current_session = active_session.current?(session)
|
|
|
|
|
2018-05-25 16:57:01 +00:00
|
|
|
%li.list-group-item
|
2020-07-15 09:09:34 +00:00
|
|
|
.float-left.gl-mr-3{ data: { toggle: 'tooltip' }, title: active_session.human_device_type }
|
2018-05-02 08:08:16 +00:00
|
|
|
= active_session_device_type_icon(active_session)
|
|
|
|
|
2018-05-29 23:54:05 +00:00
|
|
|
.description.float-left
|
2018-05-02 08:08:16 +00:00
|
|
|
%div
|
|
|
|
%strong= active_session.ip_address
|
|
|
|
- if is_current_session
|
2019-05-30 10:41:56 +00:00
|
|
|
%div
|
|
|
|
= _('This is your current session')
|
2018-05-02 08:08:16 +00:00
|
|
|
- else
|
|
|
|
%div
|
2019-05-30 10:41:56 +00:00
|
|
|
= _('Last accessed on')
|
2018-05-02 08:08:16 +00:00
|
|
|
= l(active_session.updated_at, format: :short)
|
|
|
|
|
|
|
|
%div
|
|
|
|
%strong= active_session.browser
|
2019-05-30 10:41:56 +00:00
|
|
|
= s_('ProfileSession|on')
|
2018-05-02 08:08:16 +00:00
|
|
|
%strong= active_session.os
|
|
|
|
|
|
|
|
%div
|
2019-05-30 10:41:56 +00:00
|
|
|
%strong= _('Signed in')
|
|
|
|
= s_('ProfileSession|on')
|
2018-05-02 08:08:16 +00:00
|
|
|
= l(active_session.created_at, format: :short)
|
2020-01-03 09:07:33 +00:00
|
|
|
|
|
|
|
- unless is_current_session
|
|
|
|
.float-right
|
2020-10-01 18:10:20 +00:00
|
|
|
= link_to(revoke_session_path(active_session),
|
|
|
|
{ data: { confirm: _('Are you sure? The device will be signed out of GitLab and all remember me tokens revoked.') },
|
|
|
|
method: :delete,
|
2020-10-19 12:09:20 +00:00
|
|
|
class: "gl-button btn btn-danger gl-ml-3" }) do
|
2020-01-03 09:07:33 +00:00
|
|
|
%span.sr-only= _('Revoke')
|
|
|
|
= _('Revoke')
|