Browse Source

interface alpha version

Roberto Berto 5 years ago
parent
commit
4da4dfbada
1 changed files with 9 additions and 10 deletions
  1. 9 10
      vygui/device/templates/device/interface.html

+ 9 - 10
vygui/device/templates/device/interface.html

@@ -1,16 +1,15 @@
 {% if interface %}
-    {{ interface }}
+<h2>Interface</h2>
+
+{{ interface }}
     <table border="1" width="100%">
-    <tr><th>type</th><th>name</th><th>address</th></tr>
+    <tr>
+    <th>address</th> <td>{{ interface.address }}</td>
+    </tr>
 
-    {% for key, value in interface.items %}
-        <tr><td>{{ key }}</td>
-        {% for ifkey, ifvaluekey in value.items %}
-            <td>{% url 'device-views-interface' key ifkey as url_interface %}
-            <a href="{{ url_interface }}">{{ ifkey }}</a></td><td>{{ ifvalue.address }}</td>
-        {% endfor %}
-        </tr>
-    {% endfor %}
+    <tr>
+    <th>mtu</th> <td>{{ interface.mtu }}</td>
+    </tr>
 
     </table>
 {% else %}