diff --git a/computes/views.py b/computes/views.py index fa25de2..be8558e 100644 --- a/computes/views.py +++ b/computes/views.py @@ -40,7 +40,7 @@ def computes(request): return render(request, 'computes.html', locals()) -def compute(request, compute_id): +def overview(request, compute_id): """ :param request: :return: @@ -67,4 +67,4 @@ def compute(request, compute_id): except libvirtError as lib_err: error_messages.append(lib_err) - return render(request, 'compute.html', locals()) \ No newline at end of file + return render(request, 'overview.html', locals()) \ No newline at end of file diff --git a/templates/compute_block_link.html b/templates/compute_block_link.html index 93a3ecf..ffbaca2 100644 --- a/templates/compute_block_link.html +++ b/templates/compute_block_link.html @@ -1,8 +1,9 @@ {% load i18n %} {% load tags_activebtn %} -{% trans "Storages" %} -{% trans "Networks" %} -{% trans "Interface" %} -{% trans "Secrets" %} +{% trans "Overview" %} +{% trans "Storages" %} +{% trans "Networks" %} +{% trans "Interfaces" %} +{% trans "Secrets" %}
Name | Host | +Status | VCPU | Memory | -Status | Actions | ||
---|---|---|---|---|---|---|---|---|
- {{ vm }} - | -- {{ host.1 }} + | {{ vm }} | +{{ host.1 }} | +{% ifequal info.status 1 %} + {% trans "Active" %} + {% endifequal %} + {% ifequal info.status 5 %} + {% trans "Off" %} + {% endifequal %} + {% ifequal info.status 3 %} + {% trans "Suspend" %} + {% endifequal %} | {{ info.vcpu }} | {{ info.memory }} {% trans "MB" %} | -{% ifequal info.status 1 %} - {% trans "Running" %} - {% endifequal %} - {% ifequal info.status 5 %} - {% trans "Shutoff" %} - {% endifequal %} - {% ifequal info.status 3 %} - {% trans "Suspend" %} - {% endifequal %} - |