debian-mirror-gitlab/app/views/profiles/active_sessions/_active_session.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.1 KiB
Text
Raw Normal View History

2018-10-15 14:42:47 +05:30
- is_current_session = active_session.current?(session)
2018-11-08 19:23:39 +05:30
%li.list-group-item
2020-07-28 23:09:34 +05:30
.float-left.gl-mr-3{ data: { toggle: 'tooltip' }, title: active_session.human_device_type }
2018-10-15 14:42:47 +05:30
= active_session_device_type_icon(active_session)
2018-11-08 19:23:39 +05:30
.description.float-left
2018-10-15 14:42:47 +05:30
%div
%strong= active_session.ip_address
- if is_current_session
2019-09-04 21:01:54 +05:30
%div
= _('This is your current session')
2018-10-15 14:42:47 +05:30
- else
%div
2019-09-04 21:01:54 +05:30
= _('Last accessed on')
2018-10-15 14:42:47 +05:30
= l(active_session.updated_at, format: :short)
%div
%strong= active_session.browser
2019-09-04 21:01:54 +05:30
= s_('ProfileSession|on')
2018-10-15 14:42:47 +05:30
%strong= active_session.os
%div
2019-09-04 21:01:54 +05:30
%strong= _('Signed in')
= s_('ProfileSession|on')
2018-10-15 14:42:47 +05:30
= l(active_session.created_at, format: :short)
2020-03-13 15:44:24 +05:30
- unless is_current_session
.float-right
2020-10-04 03:57:07 +05:30
= 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,
2021-01-03 14:25:43 +05:30
class: "gl-button btn btn-danger gl-ml-3" }) do
2020-03-13 15:44:24 +05:30
%span.sr-only= _('Revoke')
= _('Revoke')