{% extends "operator/base.html" %} {% load i18n %} {% block op_title %}{{ phone.name }}{% endblock %} {% block op_content %}

{{ phone.name }}

{% translate "Status" %}
{% if phone.enabled %}{% translate "active" %}{% else %}{% translate "blocked" %}{% if phone.disabled_at %} {% blocktranslate trimmed with time=phone.disabled_at|date:"SHORT_DATETIME_FORMAT" %}since {{ time }}{% endblocktranslate %}{% endif %}{% endif %}
{% translate "Tunnel address" %}
{{ phone.address }}
{% translate "Access" %}
{{ phone.get_access_display }}
{% translate "Gateway" %}
{{ gateway.name }}{% if not gateway.is_active %} {% translate "blocked" %}{% endif %}
https://{{ gateway.fqdn }}
{% translate "Customer" %}
{{ org.name }}
{% translate "Created" %}
{{ phone.created|date:"SHORT_DATETIME_FORMAT" }}{% if phone.created_by %} {% blocktranslate trimmed with user=phone.created_by.get_username %}by {{ user }}{% endblocktranslate %}{% endif %}
{% translate "Last seen" %}
{% if phone.last_handshake %}{{ phone.last_handshake|date:"SHORT_DATETIME_FORMAT" }}{% else %}{% translate "never connected" %}{% endif %}
{% translate "Data volume" %}
{% blocktranslate trimmed with rx=phone.rx_bytes|filesizeformat tx=phone.tx_bytes|filesizeformat %}received {{ rx }} · sent {{ tx }}{% endblocktranslate %}
{% translate "Identifier" %}
{{ phone.peer_id }}
{% translate "Public key" %}
{{ phone.public_key }}
{% include "gateways/_phone_setup.html" %}

{% translate "Manage" %}

{% translate "Rename" %}

{% if phone.enabled %}

{% translate "Block …" %} {% translate "The phone is cut off immediately." %}

{% elif gateway.is_active %}
{% csrf_token %}

{% endif %} {% if gateway.is_active %}

{% translate "Set up again (new key) …" %}

{% endif %}

{% translate "Remove …" %}

{% endblock %}