{% if not view %}

Connection closed

This connection has ended

The session finished, or nobody connected in time. The machine is free again unless someone else has taken it.

Back to machines {% elif view.state == 'armed' %}

{{ view.hostname }} is reserved for you

Connect with the Remote Desktop app

{{ view.seconds_left }} seconds left to connect

{% if view.last_error %}
{{ view.last_error }}
{% endif %}

Press Win + R, type mstsc and press Enter. Then connect to this address{% if view.port_code %}, including the port{% endif %}:

{{ view.address }}
{% elif view.state == 'grace' %}

{{ view.hostname }}

Connection dropped. The machine is held for you

{{ view.seconds_left }} seconds left to reconnect from this laptop

{% if view.last_error %}
{{ view.last_error }}
{% endif %}
{{ icon('zap', 15) }}Reconnect
{% else %}

{{ view.hostname }}

Connected

You can close this page.

Started
{{ view.started_at|localtime('%H:%M:%S') if view.started_at else 'Connecting' }}
Traffic
{{ view.bytes_up|filesize }} up, {{ view.bytes_down|filesize }} down
{% if view.reconnects %}
Reconnects
{{ view.reconnects }}
{% endif %}
Back to machines {% endif %}