{% extends "user_sessions/_base.html" %} {% load user_sessions i18n future %} {% block content %}

{% trans "Active Sessions" %}

{% for object in object_list %} {% endfor %}
{% trans "Location" %} {% trans "Device" %} {% trans "Last Activity" %} {% trans "End Session" %}
{{ object.ip|location }} ({{ object.ip }}) {{ object.user_agent|device }} {% if object.session_key == session_key %} {% blocktrans with time=object.last_activity|timesince %}{{ time }} ago (this session){% endblocktrans %} {% else %} {% blocktrans with time=object.last_activity|timesince %}{{ time }} ago{% endblocktrans %} {% endif %}
{% csrf_token %} {% if object.session_key == session_key %} {% else %} {% endif %}
{% if object_list.count > 1 %}
{% csrf_token %}

{% blocktrans %}You can also end all other sessions but the current. This will log you out on all other devices.{% endblocktrans %}

{% endif %} {% endblock %}