From 75dbf5831129f21177c11187419fff9351d8f07e Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Fri, 15 Jan 2021 14:32:21 -0500 Subject: [PATCH] Added IP address column to sessions table in settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Added: - IP address column to sessions table in settings --- app/views/auth/registrations/_sessions.html.haml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/auth/registrations/_sessions.html.haml b/app/views/auth/registrations/_sessions.html.haml index c6fb1692..96010923 100644 --- a/app/views/auth/registrations/_sessions.html.haml +++ b/app/views/auth/registrations/_sessions.html.haml @@ -7,6 +7,7 @@ %tr %th= t 'sessions.browser' %th= t 'sessions.activity' + %th IP Address %th %tbody - @sessions.each do |session| @@ -21,6 +22,8 @@ = t 'sessions.current_session' - else %time.time-ago{ datetime: session.updated_at.iso8601, title: l(session.updated_at) }= l(session.updated_at) + %td + %span= current_session.ip %td - if current_session.session_id != session.session_id = table_link_to 'times', t('sessions.revoke'), settings_session_path(session), method: :delete