debian-mirror-gitlab/app/views/profiles/active_sessions/_active_session.html.haml
2020-08-09 17:41:57 +05:30

32 lines
1 KiB
Text

- is_current_session = active_session.current?(session)
%li.list-group-item
.float-left.gl-mr-3{ data: { toggle: 'tooltip' }, title: active_session.human_device_type }
= active_session_device_type_icon(active_session)
.description.float-left
%div
%strong= active_session.ip_address
- if is_current_session
%div
= _('This is your current session')
- else
%div
= _('Last accessed on')
= l(active_session.updated_at, format: :short)
%div
%strong= active_session.browser
= s_('ProfileSession|on')
%strong= active_session.os
%div
%strong= _('Signed in')
= s_('ProfileSession|on')
= l(active_session.created_at, format: :short)
- unless is_current_session
.float-right
= link_to profile_active_session_path(active_session.public_id), data: { confirm: _('Are you sure? The device will be signed out of GitLab.') }, method: :delete, class: "btn btn-danger gl-ml-3" do
%span.sr-only= _('Revoke')
= _('Revoke')