From 567f7335761f3a9aef9c010157a5bc77c3dd360e Mon Sep 17 00:00:00 2001 From: Dmitry Date: Fri, 27 Jan 2017 16:36:50 +0000 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=BD=D1=91=D1=81=20?= =?UTF-8?q?=D0=BF=D0=BE=D1=80=D1=82=D1=8B=20=D0=B2=D0=B2=D0=B5=D1=80=D1=85?= =?UTF-8?q?,=20=D0=B8=20=D0=B2=D1=8B=D0=B2=D0=B5=D0=BB=20=D0=BE=D0=BF?= =?UTF-8?q?=D0=B8=D1=81=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=BE=D1=80=D1=82?= =?UTF-8?q?=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/devapp/ports.html | 261 ++++++++++++++++++++---------------- 1 file changed, 143 insertions(+), 118 deletions(-) diff --git a/templates/devapp/ports.html b/templates/devapp/ports.html index 5513fb0..01d998a 100644 --- a/templates/devapp/ports.html +++ b/templates/devapp/ports.html @@ -2,130 +2,155 @@ {% block content %}
-
-
-
-

Лог устройства

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IDуровеньописаниедата
1Err:Disableport Eth1 state Down21 Dec 12:14:55
2Err:bugport Eth1 state Up21 Dec 12:15:23
3Err:Otherport Eth1 state Up21 Dec 12:15:45
1Err:Disableport Eth1 state Down21 Dec 12:14:55
1Err:Disableport Eth1 state Down21 Dec 12:14:55
1Err:Disableport Eth1 state Down21 Dec 12:14:55
1Err:Disableport Eth1 state Down21 Dec 12:14:55
1Err:Disableport Eth1 state Down21 Dec 12:14:55
1Err:Disableport Eth1 state Down21 Dec 12:14:55
-
-
-
-
-
-
-

Что-то ещё

-
-
-

тут содержимое чего-то ещё

+
+
+
+
{{ dev.get_devtype_display|default:'Название типа свича' }}, без + перезагрузки {{ uptime }}
+
+
+ + {% for port in ports %} + {% if port.st %} + {% if port.sp == 10 %} +
+ {% elif port.sp == 100 %} +
+ {% elif port.sp == 1000 %} +
+ {% else %} +
+ {% endif %} + {% else %} +
+ {% endif %} + + + {{ port.num }} + + +
+ {% empty %} +

Инфа не получена, проверьте настройки :(

+ {% endfor %} + +
-
-
-
-

{{ dev.get_devtype_display|default:'Название типа свича' }}, без перезагрузки {{ uptime }}

- - {% for port in ports %} - {% if port.st %} - {% if port.sp == 10 %} -
- {% elif port.sp == 100 %} -
- {% elif port.sp == 1000 %} -
- {% else %} -
- {% endif %} - {% else %} -
- {% endif %} - - - {{ port.num }} - -
- - - - - - +
+
+
+

Лог устройства

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
IDуровеньописаниедата
1Err:Disableport Eth1 state Down21 Dec 12:14:55
2Err:bugport Eth1 state Up21 Dec 12:15:23
3Err:Otherport Eth1 state Up21 Dec 12:15:45
1Err:Disableport Eth1 state Down21 Dec 12:14:55
1Err:Disableport Eth1 state Down21 Dec 12:14:55
1Err:Disableport Eth1 state Down21 Dec 12:14:55
1Err:Disableport Eth1 state Down21 Dec 12:14:55
1Err:Disableport Eth1 state Down21 Dec 12:14:55
1Err:Disableport Eth1 state Down21 Dec 12:14:55
- {% empty %} -

Инфа не получена, проверьте настройки :(

- {% endfor %} - -
-
+
+
+
+
+

Комментарии портов

+
+
+ + + + + + + + + {% for port in ports %} + + + + + {% empty %} + + + + {% endfor %} + +
ПортНазвание
{{ port.num }}{{ port.nm|default:"<не назначен>" }}
инфа о портах не получена
+
+
+
+ {% endblock %} \ No newline at end of file