{# Source code of the Ubuntu-it website # Copyright (C) 2018 Pietro Albini # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; witout even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #} {% extends "layout.html" %} {% from "actions/macros.html" import render_actions with context %} {% block title %}Dettagli sessione{% endblock %} {% block content %}

Dettagli sessione

Nome utente {{ session.nickname }}
Stato {% if session.active -%} Attiva {%- else -%} Scaduta {%- endif %}
Indirizzo IP {{ session.ip }}
Inizio {{ session.created_at|format_timestamp }}
{% if session.active %}Scadenza{% else %}Fine{% endif %} {{ session.expires_at|format_timestamp }}
Team {% for team in session.teams %} ~{{ team -}} {%- if not loop.last %},{% endif %} {% endfor %}
{% if g.auth_id != session.id and session.active %} Disabilita sessione {% endif %}
{% if others %}
{% if session.active %}

Altre sessioni dell'utente

{% else %}

Sessioni correnti dell'utente

{% endif %}
{% for session in others %} {% endfor %}
Indirizzo IP Inizio Scadenza
{{ session.ip }} {{ session.created_at|format_timestamp }} {{ session.expires_at|format_timestamp }} Dettagli {% if session.id == g.auth_id %} Sessione corrente {% else %} Disabilita sessione {% endif %}
{% endif %}
{% if permission("actions.show") and actions %}

Azioni eseguite in questa sessione

{{ render_actions(actions, own=True) }}
{% endif %} {% endblock %}