{% extends 'base.html' %} {% load i18n user_agent %} {% block content %}
{% translate "Unknown" as unknown %}

{% translate "Active Sessions" %}

{% for session in sessions %} {% with ua=session.device %} {% endwith %} {% endfor %}
{% translate "Location" %} {% translate "Device" %} {% translate "Last Activity" %}
{{ session.location|default_if_none:unknown }} ({{ session.ip|default_if_none:unknown }}) {% ua_str ua %} {% if session.session_key == session_key %} {% blocktranslate with time=session.updated_at|timesince %}{{ time }} ago (this session){% endblocktranslate %} {% else %} {% blocktranslate with time=session.updated_at|timesince %}{{ time }} ago{% endblocktranslate %} {% endif %}
{% if sessions.count > 1 %}
{% csrf_token %}

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

{% endif %}
{% endblock %}