{% extends 'account/base.html.twig' %} {% block title %} {{ 'Access history' | trans }} {% endblock %} {% set selected = "sessions" %} {% block content_account %}
{% set end_activity = "End Activity"|trans %} {% set button = ' '~end_activity~' '|raw %}   {{ "If you notice any unfamiliar devices or locations, click on button %button% to end the session." | trans({'%button%': button}) }}
{% for session in sessions %} {% set row = session['session'] %} {% endfor %}
{{ 'Date de connexion' | trans }} {{ 'Dernier access' | trans }} {{ 'IP' | trans }} {{ 'Browser' | trans }}
{% if app['session'].get('session_id') != row.Id() %} {{ "End Activity" | trans() }} {% else %} {{ 'Current session' | trans }} {% endif %} {{ app['date-formatter'].getDate(row.getCreated()) }} {{ app['date-formatter'].getDate(row.getUpdated()) }} {{ row.getIpAddress() }} {{ session['info'] }} {{ row.getBrowserName() }} {{ row.getBrowserVersion() }}
{% endblock %}