{% extends "base.html" %} {% import "_macros.html" as ui %} {% block title %}{{ row.machine.hostname }} · Lab RDP{% endblock %} {% block page %}detail{% endblock %} {% block content %} {% set m = row.machine %} {% set t = m.target %} {{ icon('arrow-left', 14) }}Machines
{{ icon('monitor', 21) }}

{{ m.hostname }}

{{ m.ip }}{% if m.location %} · {{ m.location }}{% endif %}{% if m.owner_team %} · {{ m.owner_team }}{% endif %}

{% if current_user.is_admin %} {{ icon('pencil', 14) }}Edit {{ ui.kebab(row, 18) }} {% endif %} {{ ui.connect_button(row, current_user, csrf_token) }}
{% include "machines/_live.html" %}
{% if m.status == 'maintenance' %}
{{ icon('wrench', 15) }}In maintenance until {{ m.maintenance_until|localtime }}, by {{ m.maintenance_by }}. Direct RDP is open from {{ m.maintenance_ip }}. Reason: {{ m.maintenance_reason }}
{% endif %}

Machine

MAC
{{ m.mac or '–' }}
Windows
{{ m.windows_edition or '–' }}{% if m.windows_build %}, build {{ m.windows_build }}{% endif %}
Location
{{ m.location or '–' }}
Owner team
{{ m.owner_team or '–' }}
Tags
{% for tag in m.tag_list %}{{ tag }}{% else %}–{% endfor %}
Allowed groups
{{ m.group_list|join(', ') or 'All users' }}
Session limit
{% if m.max_session_minutes %}{{ m.max_session_minutes }} minutes{% else %}None{% endif %}
Notes
{{ m.notes or '–' }}

Infotainment target

{% if t %}
Platform
{{ t.platform or '–' }}
Variant
{{ t.variant or '–' }}
Hardware rev.
{{ t.hw_revision or '–' }}
Serial number
{{ t.serial_number or '–' }}
Software build
{{ t.software_build or '–' }}
Connection
{{ t.connection_type or '–' }}
Notes
{{ t.notes or '–' }}
{% if current_user.is_admin and destinations %}
{% endif %} {% else %}

No target recorded for this PC.

{% endif %}

Recent sessions

{% if history %}
{% for s in history %} {% endfor %}
UserLaptop IPStartedDurationEnded byTraffic
{{ s.username }}{{ s.laptop_ip }}{{ s.started_at|localtime }}{{ s.duration_seconds|duration }}{{ s.end_reason }}{{ s.bytes_up|filesize }} up, {{ s.bytes_down|filesize }} down
{% else %}

No finished sessions yet.

{% endif %}
{% if current_user.is_admin %} {% endif %}
{% endblock %}