{% 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')}) }}
{% endif %}
{{ session.id[:15] }}…
{{ session.last_activity.format(__('Y-m-d H:i:s')) }} {% if session.id != current_session %}
{{ csrf() }} {{ f.hidden('id', session.id[:15]) }} {{ f.submit( ' ', {'name': 'delete', 'btn_type': 'danger', 'size': 'sm', 'icon_left': 'trash'} ) }}
{% else %} {{ __('settings.sessions.current') }} {% endif %}
{% endblock %}