{% extends "gateways/base.html" %}{% load i18n %} {% block title %}{{ phone.name }} – Rivet{% endblock %} {% block breadcrumbs %}{% include "gateways/_crumbs_phone.html" with current=phone.name %}{% endblock %} {% block content %}

{{ phone.name }}

{% translate "Status" %}
{% if phone.enabled %}{% translate "active" %}{% else %}{% translate "blocked" %}{% if phone.disabled_at %} {% blocktranslate trimmed with when=phone.disabled_at|date:"SHORT_DATETIME_FORMAT" %}since {{ when }}{% endblocktranslate %}{% endif %}{% endif %}
{% translate "Tunnel address" %}
{{ phone.address }}
{% translate "Access" %}
{{ phone.get_access_display }}
{% translate "Gateway" %}
{{ gateway.name }}
https://{{ gateway.fqdn }} {% if gateway.revoked or not gateway.zone.enabled %}{% translate "blocked" %}{% endif %}
{% translate "Created" %}
{{ phone.created|date:"SHORT_DATETIME_FORMAT" }}{% if phone.created_by %} {% blocktranslate trimmed with who=phone.created_by.get_username %}by {{ who }}{% 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 "Public key" %}
{{ phone.public_key }}
{% include "gateways/_phone_setup.html" %}

{% translate "Manage" %}

{% translate "Rename" %}

{% if phone.enabled %} {% blocktranslate trimmed with name=phone.name|safe asvar t_confirm %}Block phone “{{ name }}”?{% endblocktranslate %}
{% csrf_token %}

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

{% else %} {% if not gateway.revoked and gateway.zone.enabled %}
{% csrf_token %}

{% translate "The phone may connect again." %}

{% endif %} {% endif %} {% if not gateway.revoked and gateway.zone.enabled %}

{% translate "Set up again (new key)" %}
{% translate "For a new or reset phone. The tunnel address stays." %}

{% endif %}

{% translate "Remove …" %}

{% endblock %} {% block head %}{% endblock %}