{% extends "base.html" %} {% block content %}

Управление сессиями

{% for s in sessions %} {% set style_col = "" %} {% if "red" in s.color_flags %} {% set style_col = style_col + "color: #f00;" %} {% endif %} {% if "yellow" in s.color_flags %} {% set style_col = style_col + " background-color: #ffec99;" %} {% endif %} {% if "orange" in s.color_flags %} {% set style_col = style_col + " border: 2px solid orange;" %} {% endif %} {% endfor %}
ID Cookie Username IP User-Agent Color Active? Created Updated Blocked until Deactivate
{{ s.id }} {{ s.session_cookie }} {{ s.username }} {{ s.user_ip }} {{ s.user_agent }} {{ s.color_flags }} {{ 'Yes' if s.is_active == 1 else 'No' }} {{ s.created_at }} {{ s.updated_at }} {{ s.blocked_until if s.blocked_until else '' }} {% if s.is_active == 1 %}
{% else %} Уже деактивирована {% endif %}
{% endblock %}