{% load i18n %}{# Tunnel zum Server laut forgeiec-rivet-wg (Kernel). Erwartet gw mit gw.uplink (oder None). #} {% if gw.uplink %}{% if gw.uplink.connected %}{% translate "Tunnel up" %}{% else %}{% translate "Tunnel down" %}{% endif %} {% if gw.uplink.seen %}{% if gw.uplink.last_handshake_secs < 60 %}{% blocktranslate trimmed with secs=gw.uplink.last_handshake_secs %}Handshake {{ secs }} s ago{% endblocktranslate %}{% else %}{% blocktranslate trimmed with since=gw.uplink.seen|timesince %}Handshake {{ since }} ago{% endblocktranslate %}{% endif %}{% else %}{% translate "never connected" %}{% endif %} {% if gw.uplink.rx_bytes or gw.uplink.tx_bytes %}· {% blocktranslate trimmed with rx=gw.uplink.rx_bytes|filesizeformat tx=gw.uplink.tx_bytes|filesizeformat %}received {{ rx }} · sent {{ tx }}{% endblocktranslate %}{% endif %} {% else %}{% translate "State of the tunnel unknown" %}{% endif %}