Fix current session not being displayed in sessions list (#4424)

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
Eugen Rochko 2017-07-28 15:30:06 +02:00 committed by GitHub
parent 12874eafa6
commit 8c0dd33ce4
1 changed files with 2 additions and 2 deletions

View File

@ -19,10 +19,10 @@
%td
%samp= session.ip
%td
- if request.session['auth_id'] == session.session_id
- if current_session.session_id == session.session_id
= t 'sessions.current_session'
- else
%time.time-ago{ datetime: session.updated_at.iso8601, title: l(session.updated_at) }= l(session.updated_at)
%td
- if request.session['auth_id'] != session.session_id
- if current_session.session_id != session.session_id
= table_link_to 'times', t('sessions.revoke'), settings_session_path(session), method: :delete