From b98084b7ee00a6aa22c5324f96fbc7e75d9fa369 Mon Sep 17 00:00:00 2001 From: Retspen Date: Fri, 13 Mar 2015 17:30:09 +0200 Subject: [PATCH] Day is over --- static/css/webvirtcloud.css | 4 ++++ templates/instance.html | 39 +++++++++++++++++-------------------- vrtManager/instance.py | 3 ++- 3 files changed, 24 insertions(+), 22 deletions(-) diff --git a/static/css/webvirtcloud.css b/static/css/webvirtcloud.css index 7679d8c..a3cb74e 100644 --- a/static/css/webvirtcloud.css +++ b/static/css/webvirtcloud.css @@ -10,6 +10,10 @@ body { background-color: #FFF; } +#max-width-page { + max-width: 768px; +} + .side-nav { background-color: #FFF; font-size: 1.2em; diff --git a/templates/instance.html b/templates/instance.html index 5ffbdb0..7c135c4 100644 --- a/templates/instance.html +++ b/templates/instance.html @@ -12,31 +12,28 @@ {% include 'errors_block.html' %} -
+
- Status: - {% ifequal status 5 %} - {% trans "Off" %} - {% endifequal %} - {% ifequal status 1 %} - {% trans "Active" %} - {% endifequal %} - {% ifequal status 3 %} - {% trans "Suspend" %} - {% endifequal %} + {% ifequal status 5 %} + {% trans "Off" %} + {% endifequal %} + {% ifequal status 1 %} + {% trans "Active" %} + {% endifequal %} + {% ifequal status 3 %} + {% trans "Suspend" %} + {% endifequal %} - Vcpu: {% if cur_vcpu %}{{ cur_vcpu }}{% else %}{{ vcpu }}{% endif %} - Ram: {{ cur_memory }}{% trans "MB" %} - {% ifnotequal description 'None' %} - {{ description }} - {% endifnotequal %} + {% if cur_vcpu %}{{ cur_vcpu }}{% else %}{{ vcpu }}{% endif %} {% trans "Vcpu" %} + {{ cur_memory }}{% trans "MB" %} {% trans "Ram" %} + {% for disk in disks %} + {{ disk.size|filesizeformat }} {% trans "Disk" %} + {% endfor %} + + {{ description }} +
-
-
-
-
-