diff --git a/templates/network.html b/templates/network.html new file mode 100644 index 0000000..33799ec --- /dev/null +++ b/templates/network.html @@ -0,0 +1,187 @@ +{% extends "base.html" %} +{% load i18n %} +{% block title %}{% trans "Networks" %} - {{ compute.name }}{% endblock %} +{% block content %} + +
{% trans "Network name:" %}
+{% trans "Device:" %}
+{% trans "State" %}
+{% trans "Autostart" %}
+{{ pool }}
+{{ device }}
++
+ ++
+ +{% trans "IPv4 Forwarding:" %}
+{% trans "Network:" %}
+{% trans "DHCP:" %}
+ {% if ipv4_dhcp_range_start and ipv4_dhcp_range_end %} +{% trans "Start:" %}
+{% trans "End:" %}
+ {% endif %} ++ {% ifequal ipv4_forward.0 'nat' %} + {% trans "NAT" %} + {% endifequal %} + {% ifequal ipv4_forward.0 'route' %} + {% trans "ROUTE" %} + {% endifequal %} + {% ifequal ipv4_forward.0 'bridge' %} + {% trans "BRIDGE" %} + {% endifequal %} + {% if not ipv4_forward.0 %} + {% trans "ISOLATE" %} + {% endif %} +
+{{ ipv4_network }}
++ {% if ipv4_dhcp_range_start and ipv4_dhcp_range_end %} + {% trans "ON" %} + {% else %} + {% trans "OFF" %} + {% endif %} +
+ {% if ipv4_dhcp_range_start and ipv4_dhcp_range_end %} +{{ ipv4_dhcp_range_start }}
+{{ ipv4_dhcp_range_end }}
+ {% endif %} +{% trans "Address" %} | +{% trans "MAC" %} | +
---|---|
{{ fix.host }} | +{{ fix.mac }} | +
{% trans "Pool type:" %}
{% trans "Pool path:" %}
{% trans "Pool status:" %}
-{% trans "Size" %} ({{ size|filesizeformat }} / {{ used|filesizeformat }})
-{% trans "State" %}
-{% trans "Autostart" %}
+{% trans "Size:" %} ({{ size|filesizeformat }} / {{ used|filesizeformat }})
+{% trans "State:" %}
+{% trans "Autostart:" %}
{{ pool }}
{% if not type %}{% trans "None" %}{% else %}{{ type }}{% endif %}
{% if not path %}{% trans "None" %}{% else %}{{ path }}{% endif %}
{% if not status %}{% trans "None" %}{% else %}{{ status }}{% endif %}
-{% trans "Usage" %}: {{ percent }}%
+{% trans "Usage:" %} {{ percent }}%