@@ -105,8 +105,8 @@
- {% endifequal %}
- {% ifequal compute.type 2 %}
+ {% endif %}
+ {% if compute.type == 2 %}
- {% endifequal %}
- {% ifequal compute.type 3 %}
+ {% endif %}
+ {% if compute.type == 3 %}
diff --git a/create/templates/create_instance_w2.html b/create/templates/create_instance_w2.html
index 7186cd2..cd12449 100644
--- a/create/templates/create_instance_w2.html
+++ b/create/templates/create_instance_w2.html
@@ -140,7 +140,7 @@
{% endfor %}
{% else %}
-
{{ vm.name }} {{ vm.title }} |
- {% ifequal vm.status 1 %}
+ | {% if vm.status == 1 %}
{% trans "Active" %}
- {% endifequal %}
- {% ifequal vm.status 5 %}
+ {% endif %}
+ {% if vm.status == 5 %}
{% trans "Off" %}
- {% endifequal %}
- {% ifequal vm.status 3 %}
+ {% endif %}
+ {% if vm.status == 3 %}
{% trans "Suspend" %}
- {% endifequal %}
+ {% endif %}
|
{{ vm.vcpu }} |
{{ vm.memory }} {% trans "MB" %} |
diff --git a/instances/templates/allinstances_index_grouped.html b/instances/templates/allinstances_index_grouped.html
index feb9b7d..40ed8b0 100644
--- a/instances/templates/allinstances_index_grouped.html
+++ b/instances/templates/allinstances_index_grouped.html
@@ -23,9 +23,9 @@
|
- {% ifequal host.2 1 %}{% trans "Active" %}{% endifequal %}
- {% ifequal host.2 2 %}{% trans "Not Active" %}{% endifequal %}
- {% ifequal host.2 3 %}{% trans "Connection Failed" %}{% endifequal %}
+ {% if host.2 == 1 %}{% trans "Active" %}{% endif %}
+ {% if host.2 == 2 %}{% trans "Not Active" %}{% endif %}
+ {% if host.2 == 3 %}{% trans "Connection Failed" %}{% endif %}
|
{{ host.3 }} |
{{ host.4|filesizeformat }} |
@@ -53,9 +53,9 @@
- {% ifequal vm.status 1 %}{% trans "Active" %}{% endifequal %}
- {% ifequal vm.status 5 %}{% trans "Off" %}{% endifequal %}
- {% ifequal vm.status 3 %}{% trans "Suspend" %}{% endifequal %}
+ {% if vm.status == 1 %}{% trans "Active" %}{% endif %}
+ {% if vm.status == 5 %}{% trans "Off" %}{% endif %}
+ {% if vm.status == 3 %}{% trans "Suspend" %}{% endif %}
|
{{ vm.vcpu }} |
{{ vm.memory |filesizeformat }} |
diff --git a/instances/templates/allinstances_index_nongrouped.html b/instances/templates/allinstances_index_nongrouped.html
index 76dad7b..a8f9da4 100644
--- a/instances/templates/allinstances_index_nongrouped.html
+++ b/instances/templates/allinstances_index_nongrouped.html
@@ -17,9 +17,9 @@
{{ inst }} {{ info.title }} |
{{ host.1 }} {% if info.userinstances.count > 0 %}{{ info.userinstances.first_user.user.username }}{% if info.userinstances.count > 1 %} (+{{ info.userinstances.count|add:"-1" }}){% endif %}{% endif %} |
- {% ifequal vm.status 1 %}{% trans "Active" %}{% endifequal %}
- {% ifequal vm.status 5 %}{% trans "Off" %}{% endifequal %}
- {% ifequal vm.status 3 %}{% trans "Suspend" %}{% endifequal %}
+ {% if vm.status == 1 %}{% trans "Active" %}{% endif %}
+ {% if vm.status == 5 %}{% trans "Off" %}{% endif %}
+ {% if vm.status == 3 %}{% trans "Suspend" %}{% endif %}
|
{{ vm.vcpu }} |
{{ vm.memory|filesizeformat }} |
diff --git a/instances/templates/instance_actions.html b/instances/templates/instance_actions.html
index 4ebc224..4a7f832 100644
--- a/instances/templates/instance_actions.html
+++ b/instances/templates/instance_actions.html
@@ -2,7 +2,7 @@
\ No newline at end of file
diff --git a/instances/templates/instances.html b/instances/templates/instances.html
index e910798..20ebeae 100644
--- a/instances/templates/instances.html
+++ b/instances/templates/instances.html
@@ -82,9 +82,9 @@
{{ inst }} {{ vm.title }} |
{% if vm.userinstances.count > 0 %}{{ vm.userinstances.first_user.user.username }}{% if vm.userinstances.count > 1 %} (+{{ vm.userinstances.count|add:"-1" }}){% endif %}{% endif %} |
- {% ifequal vm.status 1 %}{% trans "Active" %}{% endifequal %}
- {% ifequal vm.status 5 %}{% trans "Off" %}{% endifequal %}
- {% ifequal vm.status 3 %}{% trans "Suspend" %}{% endifequal %}
+ {% if vm.status == 1 %}{% trans "Active" %}{% endif %}
+ {% if vm.status == 5 %}{% trans "Off" %}{% endif %}
+ {% if vm.status == 3 %}{% trans "Suspend" %}{% endif %}
|
{{ vm.vcpu }} |
{{ vm.memory|filesizeformat }} |
diff --git a/interfaces/templates/interface.html b/interfaces/templates/interface.html
index 39779e1..62436f8 100644
--- a/interfaces/templates/interface.html
+++ b/interfaces/templates/interface.html
@@ -39,36 +39,36 @@
- {% trans "Interface" %}
- {{ iface }}
- - {% trans "IPv4" %} ({% ifequal ipv4 None %}{% trans 'None' %}{% else %}{{ ipv4_type }}{% endifequal %})
+ - {% trans "IPv4" %} ({% if ipv4 == None %}{% trans 'None' %}{% else %}{{ ipv4_type }}{% endif %})
- {{ ipv4 }}
- - {% trans "IPv6" %} ({% ifequal ipv6 None %}{% trans 'None' %}{% else %}{{ ipv6_type }}{% endifequal %})
+ - {% trans "IPv6" %} ({% if ipv6 == None %}{% trans 'None' %}{% else %}{{ ipv6_type }}{% endif %})
- {{ ipv6 }}
- {% trans "MAC" %}
- {{ mac }}
- {% trans "Interface Type" %}
- {{ itype }}
- {% ifequal itype 'bridge' %}
+ {% if itype == 'bridge' %}
- {% trans "Bridge Device" %}
- {{ bridge }}
- {% endifequal %}
+ {% endif %}
- {% trans "Boot Mode" %}
- {{ start_mode }}
- {% trans "State" %}
-
{% trans 'Slaves' %}
- {% ifequal itype 'bridge' %}
+ {% if itype == 'bridge' %}
@@ -91,7 +91,7 @@
{% endfor %}
- {% endifequal %}
+ {% endif %}
diff --git a/interfaces/templates/interfaces.html b/interfaces/templates/interfaces.html
index beab622..b6221cc 100644
--- a/interfaces/templates/interfaces.html
+++ b/interfaces/templates/interfaces.html
@@ -50,8 +50,8 @@
{% else %}
{% for iface in ifaces_all %}