{% extends "daisy/base.html" %} {% load humanize %} {% load humanize_short %} {% block title %} Session {{ session.uid }} - {{ request.site.name }} {% endblock title %} {% block content-header %}

Session {{ session.uid }} {% if user.is_staff %} {% endif %}

{% endblock content-header %} {% block content %}

Overview

User
{{ session.user.fullname }} {{ session.user.username }}
{{ session.user.email }}
{% if user.is_staff %} {% else %} {% endif %}
Machine
{{ session.machine }}
{{ session.machine.fqdn }}
State
{% if session.cur_state == "disconnected" %}
Disconnected {% elif session.cur_state == "active" %}
Active {% else %}
Finished {% endif %}
{{ session_properties.last.t_change | naturaltime }}

Details

Session Age
{{ session.t_start | naturaltime | cut:" ago" }}
{% if session.cur_state != "ended" %}
{% endif %}
Total Fees {% if session.cur_state != "ended" %}
Accumulated fees until now,
session is still running!
Running
{% else %}
Session has ended,
amount is final.
Final
{% endif %}
CHF {{ session.current_fees | floatformat:2 }}
{% if session.cur_state == "disconnected" %}
Since Disconnect
CHF {{ session.fees_since_disconnect | floatformat:2 }}
{% elif session.cur_state == "ended" and session.last_running_state == "disconnected" %}
Fees accumulated by not properly finishing
the session but letting it run disconnected
until being terminated automatically.
Orphaned Costs
Stale
CHF {{ session.fees_since_disconnect | floatformat:2 }}
{% endif %}

Actions

State History {% if user.is_staff %} {% endif %}

{% for history in session_properties %} {% endfor %}
Change State Client Address Client Name Client Version
{{ history.t_change }} ({{ history.t_change | naturaltime_short }}) {{ history.state }} {{ history.client_address }} {{ history.client_name }} {{ history.client_version }}
{% if session_notifications %}

Notifications

{% for notification in session_notifications %} {% if not notification.t_sent %} {% else %} {% endif %} {% endfor %}
Created Sent Method Subject Body
{{ notification.t_created | naturaltime_short }} Never {{ notification.t_sent | naturaltime_short }}{{ notification.method }} {{ notification.subject }} {% if notification.body|length >= 50 %}
{{ notification.body | truncatechars:50 }}
{{ notification.body }}
{% else %} {% comment %} "collapse-title" as a hack for consistent styling: {% endcomment %}
{{ notification.body }}
{% endif %}
{% endif %} {% endblock content %}