{% extends "server/base.html" %} {% from 'magpie/parts.html' import failure %} {% block title %}{{ t.text('magpie.title') }}{% endblock %} {% block root %} class="filled magpie"{% endblock %} {% block head %} {% endblock %} {% block top %}

{{ t.text('magpie.title') }}

{% if selected %}
{% endif %}
{% if account.allows('magpie.manage') %}{% include 'magpie/icons/plus.svg' %}{{ t.text('magpie.add_gateway') }}{% endif %}
{% endblock %} {% block body %} {% if selected %} {% endif %} {% if selected and not unavailable %} {% include 'magpie/' ~ tab ~ '.html' %} {% elif unavailable %}
{{ failure(('unreachable', 0), t) }}
{% else %}

{{ t.text('magpie.no_gateways') }}

{{ t.text('magpie.empty_hint') }}

{% endif %} {% if gateway_edit %}{% include 'magpie/gateway.html' %}{% endif %} {% endblock %}