{% set connected_since = session.get('connected_since').strftime(datetime_format) %} {% set last_seen = session.get('last_seen').strftime(datetime_format) %} {% set total_connected_time = session.get('connected_since') | get_total_connected_time %} {% set bytes_recv = session.get('bytes_recv') %} {% set bytes_sent = session.get('bytes_sent') %} {% set username = session.get('username') %} {% set local_ip = session.get('local_ip') %} {% set remote_ip = session.get('remote_ip') %} {% set port = session.get('port') %} {% set client_id = session.get('client_id') %} {% set location = session.get('location') %} {% set full_location = session | get_full_location %} {% set flag = session | get_flag %} {{ username }} {{ local_ip }} {{ remote_ip }} {% if location %} {{ full_location }} {{ full_location }} {% else %} Unknown {% endif %} {{ bytes_recv }} ({{ bytes_recv | get_naturalsize }}) {{ bytes_sent }} ({{ bytes_sent | get_naturalsize }}) {{ connected_since }} {% if session.get('last_seen') %} {{ last_seen }} {% else %} Unknown {% endif %} {{ total_connected_time }} {% if show_disconnect %}
{% if remote_ip is defined and port is defined %} {% endif %} {% if client_id is defined %} {% endif %}
{% endif %}