Merge pull request #4 from tzumainn/master
updated for latest node details template
This commit is contained in:
commit
8f04e9c62a
@ -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 %}
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<dl class="clearfix">
|
||||
<dt>{% trans "Power state" %}</dt>
|
||||
<dd>{{ node.power_state|default:"—" }}</dd>
|
||||
<div class="node node-details">
|
||||
<div class="node-title">
|
||||
<dl>
|
||||
<span class="powerstate">{% trans "Powered" %} {{ node.power_state|default:"—" }}</span>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<h4>{% trans "Inventory" %}</h4>
|
||||
<dl class="clearfix">
|
||||
<dt>{% trans "Node UUID" %}</dt>
|
||||
<dd>{{ node.uuid|default:"—" }}</dd>
|
||||
<dt>{% trans "Driver" %}</dt>
|
||||
<dd>
|
||||
{{ node.driver|default:"—" }}<br />
|
||||
<b>IP Address:</b> {{ node.driver_info.ipmi_address|default:"—" }}<br />
|
||||
<b>IPMI User:</b> {{ node.driver_info.ipmi_username|default:"—" }}
|
||||
</dd>
|
||||
<dt>{% trans "Network Cards" %}</dt>
|
||||
<dd>
|
||||
{{ node.addresses|length }}<br />
|
||||
{% for address in node.addresses %}
|
||||
{{ address }}<br />
|
||||
{% endfor %}
|
||||
</dd>
|
||||
<dt>{% trans "Registered HW" %}</dt>
|
||||
<dd>
|
||||
{{ node.cpus|default:"—" }} {% trans "CPU" %}<br />
|
||||
{{ node.memory_mb|default:"—" }} {% trans "RAM (MB)" %}<br />
|
||||
{{ node.local_gb|default:"—" }} {% trans "HDD (GB)" %}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="span6">
|
||||
|
||||
<div class="node node-deployment">
|
||||
<h4>{% trans "Deployment" %}</h4>
|
||||
<dl class="clearfix">
|
||||
<dt>{% trans "Deployment Role" %}</dt>
|
||||
@ -70,24 +42,52 @@
|
||||
<dd>{{ node.instance_uuid|default:"—" }}</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<div class="node node-detail">
|
||||
<h4>{% trans "Inventory" %}</h4>
|
||||
<dl>
|
||||
<dt>{% trans "Node UUID" %}</dt>
|
||||
<dd>{{ node.uuid|default:"—" }}</dd>
|
||||
<dt>{% trans "Driver" %}</dt>
|
||||
<dd class="dropdown">
|
||||
<span class="dropdown-toggle" type="button" data-toggle="dropdown">
|
||||
{{ node.driver|default:"—" }}
|
||||
<span class="caret"></span>
|
||||
</span>
|
||||
<ul class="dropdown-menu">
|
||||
<li><dt>IP Address</dt> <dd>{{ node.driver_info.ipmi_address|default:"—" }}</dd></li>
|
||||
<li><dt>IPMI User</dt> <dd>{{ node.driver_info.ipmi_username|default:"—" }}</dd></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt>{% trans "Network Cards" %}</dt>
|
||||
<dd class="dropdown">
|
||||
<span class="dropdown-toggle" type="button" data-toggle="dropdown">
|
||||
{{ node.addresses|length }}
|
||||
<span class="caret"></span>
|
||||
</span>
|
||||
<ul class="dropdown-menu">
|
||||
{% for address in node.addresses %}
|
||||
<li>{{ address }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</dd>
|
||||
<dt>{% trans "Registered HW" %}</dt>
|
||||
<dd>
|
||||
{{ node.cpus|default:"—" }} {% trans "CPU" %}<br />
|
||||
{{ node.memory_mb|default:"—" }} {% trans "RAM (MB)" %}<br />
|
||||
{{ node.local_gb|default:"—" }} {% trans "HDD (GB)" %}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
{% if node.uuid %}
|
||||
<div>
|
||||
<h2>{% trans "Content" %}</h2>
|
||||
<div ng-controller="ErrataController">
|
||||
<div satellite-errata uuid="'{{ node.uuid }}'"></div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<h2>{% trans "Performance and Capacity" %}</h2>
|
||||
<div id="node-performance" class="node">
|
||||
<h4>{% trans "Performance and Capacity" %}</h4>
|
||||
|
||||
{% if meter_conf %}
|
||||
<br />
|
||||
{% url 'horizon:infrastructure:nodes:performance' node.uuid as node_perf_url %}
|
||||
|
||||
<div id="ceilometer-stats">
|
||||
<div id="ceilometer-stats" class="clearfix">
|
||||
<form class="form-horizontal" id="linechart_general_form">
|
||||
<div class="control-group">
|
||||
<label for="date_options" class="control-label">{% trans "Period" %}: </label>
|
||||
@ -96,8 +96,8 @@
|
||||
id="date_options"
|
||||
name="date_options"
|
||||
class="span2">
|
||||
<option value="1">{% trans "Last day" %}</option>
|
||||
<option value="7" selected="selected">{% trans "Last week" %}</option>
|
||||
<option value="1" selected="selected">{% trans "Last day" %}</option>
|
||||
<option value="7">{% trans "Last week" %}</option>
|
||||
<option value="{% now 'j' %}">{% trans "Month to date" %}</option>
|
||||
<option value="15">{% trans "Last 15 days" %}</option>
|
||||
<option value="30">{% trans "Last 30 days" %}</option>
|
||||
@ -156,23 +156,28 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="clear"></div>
|
||||
<div>
|
||||
<table>
|
||||
{% for meter_label, url_part in meter_conf %}
|
||||
{% if forloop.counter == 1 or forloop.counter == 4 %}
|
||||
<tr>
|
||||
{% endif %}
|
||||
<td>
|
||||
{% include "infrastructure/_performance_chart.html" with label=meter_label url=node_perf_url|add:"?"|add:url_part only %}
|
||||
</td>
|
||||
{% if forloop.counter == 3 or forloop.counter == 5 %}
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</table>
|
||||
<div id="node-charts" class="clearfix">
|
||||
{% for meter_label, url_part, y_max in meter_conf %}
|
||||
<div class="span3">
|
||||
{% include "infrastructure/_performance_chart.html" with label=meter_label y_max=y_max url=node_perf_url|add:"?"|add:url_part only %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
{% else %}
|
||||
Metering service is not enabled.
|
||||
{% trans 'Metering service is not enabled.' %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if node.uuid %}
|
||||
<br />
|
||||
<br />
|
||||
<div>
|
||||
<h4>{% trans "Errata" %}</h4>
|
||||
<div ng-controller="ErrataController">
|
||||
<div satellite-errata uuid="'{{ node.uuid }}'"></div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user