{% block content %} {% if perms.ssheepdog.change_login %} edit login {% endif %}
Username: {{ login.username }}
Machine: {{ login.machine }} {% if perms.ssheepdog.change_machine %} edit machine {% endif %}
{% with login.get_client as client %} {% if client %}
Client: {{ client }} {% if client.description %} ({{ client.description }}) {% endif %} {% if perms.ssheepdog.change_client %} edit client {% endif %}
{% endif %} {% endwith %}
ssh {{ login.get_address }} -p {{ login.machine.port }}

{% if login.machine.manual and perms.ssheepdog.can_sync and login.is_dirty %}
{% csrf_token %}
{% endif %}
{% with log=login.get_last_log %} {% if log %}

Last activity {{ log.date }}
{{ log.message }} {% if log.stderr %}
{{ log.stderr|linebreaks }}
{% endif %} {% if log.stdout %}
{{ log.stdout|linebreaks }}
{% endif %}
{% endif %} {% endwith %} {% endblock %}