{% from "macros/local_datetime.html" import local_datetime %}
{% if not device.trusted %}

{{ _("This device no longer has access. Pair again to restore it.") }}

{% endif %}
{{ device.device_id }}
{% if device.paired_at %} {{ local_datetime(device.paired_at, "known-device-meta") }} {% else %} {{ _("Unknown") }} {% endif %}
{% if device.last_seen_at %} {{ local_datetime(device.last_seen_at, "known-device-meta") }} {% else %} {{ _("Never") }} {% endif %}
{# Shares granted to this device are listed (and revoked) in the sidebar's "Shared With Others"; this panel only adds new ones. #}

{{ _("Add Shared") }}

{% if device.trusted %} {% if media_dirs %} {% else %}

{{ _("Add a media directory in Settings before sharing folders with this device.") }}

{% endif %} {% else %}

{{ _("This device is revoked. Pair it again before sharing folders with it.") }}

{% endif %}