From b297a87e38da2b4ab2f972b5ff74ffb833cbfec9 Mon Sep 17 00:00:00 2001 From: Tzu-Mainn Chen Date: Thu, 24 Jul 2014 23:29:53 +0200 Subject: [PATCH] updated for latest node details template --- .../infrastructure/nodes/details.html | 233 +++++++++--------- 1 file changed, 119 insertions(+), 114 deletions(-) diff --git a/tuskar_sat_ui/templates/infrastructure/nodes/details.html b/tuskar_sat_ui/templates/infrastructure/nodes/details.html index 8e7ab76..71cfc53 100644 --- a/tuskar_sat_ui/templates/infrastructure/nodes/details.html +++ b/tuskar_sat_ui/templates/infrastructure/nodes/details.html @@ -1,9 +1,9 @@ {% extends 'infrastructure/base.html' %} {% load i18n %} -{% block title %}{% trans 'Node Details' %}{% endblock %} +{% block title %}{{ title }}{% endblock %} {% block page_header %} - {% include 'horizon/common/_page_header.html' with title=_('Node Details') %} + {% include 'horizon/common/_page_header.html' with title=title %} {% endblock page_header %} {% block js %} @@ -13,42 +13,14 @@ {% endblock %} {% block main %} -
-
-
-
{% trans "Power state" %}
-
{{ node.power_state|default:"—" }}
+
+
+
+ {% trans "Powered" %} {{ node.power_state|default:"—" }}
-
-
-
-

{% trans "Inventory" %}

-
-
{% trans "Node UUID" %}
-
{{ node.uuid|default:"—" }}
-
{% trans "Driver" %}
-
- {{ node.driver|default:"—" }}
- IP Address: {{ node.driver_info.ipmi_address|default:"—" }}
- IPMI User: {{ node.driver_info.ipmi_username|default:"—" }} -
-
{% trans "Network Cards" %}
-
- {{ node.addresses|length }}
- {% for address in node.addresses %} - {{ address }}
- {% endfor %} -
-
{% trans "Registered HW" %}
-
- {{ node.cpus|default:"—" }} {% trans "CPU" %}
- {{ node.memory_mb|default:"—" }} {% trans "RAM (MB)" %}
- {{ node.local_gb|default:"—" }} {% trans "HDD (GB)" %} -
-
-
-
+ +

{% trans "Deployment" %}

{% trans "Deployment Role" %}
@@ -59,10 +31,10 @@ {% endif %}
{% trans "Provisioning" %}
- {{ node.provisioning_status|default:"—" }} - {% if node.instance_uuid %} -
{{ node.instance.created }} - {% endif %} + {{ node.provisioning_status|default:"—" }} + {% if node.instance_uuid %} +
{{ node.instance.created }} + {% endif %}
{% trans "Image" %}
{{ node.image_name|default:"—" }}
@@ -70,76 +42,104 @@
{{ node.instance_uuid|default:"—" }}
-
-{% if node.uuid %} -
-

{% trans "Content" %}

-
-
+
+

{% trans "Inventory" %}

+
+
{% trans "Node UUID" %}
+
{{ node.uuid|default:"—" }}
+
{% trans "Driver" %}
+ +
{% trans "Network Cards" %}
+ +
{% trans "Registered HW" %}
+
+ {{ node.cpus|default:"—" }} {% trans "CPU" %}
+ {{ node.memory_mb|default:"—" }} {% trans "RAM (MB)" %}
+ {{ node.local_gb|default:"—" }} {% trans "HDD (GB)" %} +
+
-
-{% endif %} -

{% trans "Performance and Capacity" %}

+
+

{% trans "Performance and Capacity" %}

{% if meter_conf %}
{% url 'horizon:infrastructure:nodes:performance' node.uuid as node_perf_url %} -
-
-
- -
- + + - + +
-
-
- -
- +
+ +
+ +
-
-
- -
- +
+ +
+ +
-
- -
+ +
- + -
-
- - {% for meter_label, url_part in meter_conf %} - {% if forloop.counter == 1 or forloop.counter == 4 %} - - {% endif %} - - {% if forloop.counter == 3 or forloop.counter == 5 %} - - {% endif %} +
+ {% for meter_label, url_part, y_max in meter_conf %} +
+ {% include "infrastructure/_performance_chart.html" with label=meter_label y_max=y_max url=node_perf_url|add:"?"|add:url_part only %} +
{% endfor %} -
- {% include "infrastructure/_performance_chart.html" with label=meter_label url=node_perf_url|add:"?"|add:url_part only %} -
+ + {% else %} + {% trans 'Metering service is not enabled.' %} + {% endif %} +
+
+ +{% if node.uuid %} +
+
+
+

{% trans "Errata" %}

+
+
+
-{% else %} - Metering service is not enabled. {% endif %} + {% endblock %}