{% extends request.is_ajax|yesno:'nullcont.htm,devapp/ext.htm' %} {% load i18n %} {% block content %}
{% with uptime=dev_manager.uptime %}
{{ dev.get_devtype_display|default:_('Title of the type of switch') }}. {% if uptime %} {% trans 'Uptime' %} {{ uptime }} {% endif %}
{% endwith %}
{% for port in ports %} {% if port.st %} {% if port.sp == 10000000 %}
10 mbps {{ port.uptime_str }} {% elif port.sp == 100000000 %}
100 mbps {{ port.uptime_str }} {% elif port.sp == 1000000000 %}
1 gbps {{ port.uptime_str }} {% elif port.sp == 10000000000 %}
10 gbps {{ port.uptime_str }} {% else %}
{% endif %} {% else %}
{% endif %} {{ port.num }} {% if port.writable %} {% if port.st %} {% else %} {% endif %} {% else %} {% endif %}
{% empty %}

{% trans 'We have not received info, please check options :(' %}

{% endfor %}

{% trans 'Ports management' %}

{% with gid=dev.group.pk did=dev.pk can_del_port=perms.devapp.delete_port can_edit_port=perms.devapp.change_port %} {% for port in ports_db %} {% if port.num_abons > 1 %} {% url 'devapp:fix_port_conflict' gid did port.id as fixurl %} {% else %} {% endif %} {% empty %} {% endfor %} {% endwith %}
{% trans 'Number' %} {% trans 'Description' %} {% trans 'Count of subscribers' %} #
{{ port.num }} {{ port.descr|default:'-' }}{{ port.num_abons }}. {% blocktrans with furl=fixurl %}Port should not have more than one subscriber, fix that{% endblocktrans %}{{ port.num_abons }} {% if can_del_port %} {% endif %} {% if can_edit_port %} {% endif %}
{% trans 'Ports not found' %}
{% if perms.devapp.add_port %} {% if ports %} {% trans 'Add ports' %} {% else %} {% trans 'Add ports' %} {% endif %} {% endif %}

{% trans 'Ports comment' %}

{% for port in ports %} {% empty %} {% endfor %}
{% trans 'Port' %} {% trans 'Title' %}
{{ port.num }} {{ port.nm|default:'-' }}
{% trans 'We have not received info for ports' %}
{% endblock %}