{% 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' %}
| {% trans 'Number' %} |
{% trans 'Description' %} |
{% trans 'Count of subscribers' %} |
# |
{% 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 %}
| {{ port.num }} |
{{ port.descr|default:'-' }} |
{% if port.num_abons > 1 %}
{% url 'devapp:fix_port_conflict' gid did port.id as fixurl %}
{{ port.num_abons }}. {% blocktrans with furl=fixurl %}Port should not have more than one subscriber, fix that{% endblocktrans %} |
{% else %}
{{ port.num_abons }} |
{% endif %}
{% if can_del_port %}
{% endif %}
{% if can_edit_port %}
{% endif %}
|
{% empty %}
| {% trans 'Ports not found' %} |
{% endfor %}
{% endwith %}
|
{% if perms.devapp.add_port %}
{% if ports %}
{% trans 'Add ports' %}
{% else %}
{% trans 'Add ports' %}
{% endif %}
{% endif %}
|
{% trans 'Ports comment' %}
| {% trans 'Port' %} |
{% trans 'Title' %} |
{% for port in ports %}
| {{ port.num }} |
{{ port.nm|default:'-' }} |
{% empty %}
| {% trans 'We have not received info for ports' %} |
{% endfor %}
{% endblock %}