{% extends 'pages/settings/settings.twig' %} {% import 'macros/form.twig' as f %} {% import 'macros/base.twig' as m %} {% block title %}{{ __('settings.sessions') }}{% endblock %} {% block row_content %}
{{ m.info(__('settings.sessions.info')) }}
{% for session in sessions %} {% endfor %}
{{ __('settings.sessions.id') }} {{ __('settings.sessions.last_activity') }} {% if sessions|length > 1 %}
{{ csrf() }} {{ f.hidden('id', 'all') }} {{ f.delete(__('form.delete_all'), {'size': 'sm', 'confirm_title': __('form.delete_all'), 'title': ''}) }}
{% endif %}
{{ session.id[:15] }}…
{{ session.last_activity.format(__('general.datetime')) }} {% if session.id != current_session %}
{{ csrf() }} {{ f.hidden('id', session.id[:15]) }} {{ f.submit( ' ', {'name': 'delete', 'btn_type': 'danger', 'size': 'sm', 'icon_left': 'trash', 'title': __('form.delete'),} ) }}
{% else %} {{ __('settings.sessions.current') }} {% endif %}
{% endblock %}