Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4bd6fb5d
authored
Feb 10, 2014
by
Oláh István Gergely
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
node-detail: fixed node details
parent
8f9aa778
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
168 deletions
+16
-168
circle/dashboard/templates/dashboard/node-detail-resources.html
+11
-168
circle/dashboard/templates/dashboard/node-detail.html
+5
-0
No files found.
circle/dashboard/templates/dashboard/node-detail-resources.html
View file @
4bd6fb5d
{% load i18n %}
<form
id=
"vm-details-resources-form"
method=
"POST"
action=
""
>
{% csrf_token %}
<dl
class=
"dl-horizontal"
>
<dt>
Name:
</dt><dd>
{{ node.name }}
</dd>
<dt>
Number of cores:
</dt><dd>
{{ node.num_cores }}
</dd>
<dt>
Memory:
</dt>
<dd>
{% widthratio node.ram_size 1048576 1 %} MB
</dd>
<dt>
Architecture:
</td><dd>
{{ record.arch }}
</dd>
<dt>
IPv4 address:
</dt><dd>
{{ node.host.ipv4 }}
</dd>
<dt>
IPv6 address:
</dt><dd>
{{ node.host.ipv6 }}
</dd>
<dt>
Enabled:
</dt><dd>
{{ node.enabled }}
</dd>
<dt>
Host online:
</dt><dd>
{{ node.online }}
</dd>
<dt>
Priority:
</dt><dd>
{{ node.priority }}
</dd>
<dt>
Host owner:
</dt><dd>
{{ node.host.owner }}
</dd>
<dt>
Vlan:
</dt><dd>
{{ node.host.vlan }}
</dd>
<dt>
Hostname:
</dt><dd>
{{ node.host.hostname }}
</dd>
<dt>
{% trans "Node name" %}:
</dt><dd>
{{ node.name }}
</dd>
<dt>
{% trans "CPU cores" %}:
</dt><dd>
{{ node.num_cores }}
</dd>
<dt>
{% trans "RAM size" %}:
</dt>
<dd>
{% widthratio node.ram_size 1048576 1 %} MB
</dd>
<dt>
{% trans "Architecture" %}:
</td><dd>
{{ node.arch }}
</dd>
<dt>
{% trans "Host IP" %}:
</dt><dd>
{{ node.host.ipv4 }}
</dd>
<dt>
{% trans "Enabled" %}:
</dt><dd>
{{ node.enabled }}
</dd>
<dt>
{% trans "Host online" %}:
</dt><dd>
{{ node.online }}
</dd>
<dt>
{% trans "Priority" %}:
</dt><dd>
{{ node.priority }}
</dd>
<dt>
{% trans "Host owner" %}:
</dt><dd>
{{ node.host.owner }}
</dd>
<dt>
{% trans "Vlan" %}:
</dt><dd>
{{ node.host.vlan }}
</dd>
<dt>
{% trans "Host name" %}:
</dt><dd>
{{ node.host.hostname }}
</dd>
</dl>
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"cpu-count-slider"
><i
class=
"icon-cogs"
></i>
{% trans "Enabled" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<label
>
{{ node.enabled }}
</label>
</div>
</p>
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"cpu-count-slider"
><i
class=
"icon-cogs"
></i>
{% trans "Priority" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<label
>
{{ node.priority }}
</label>
</div>
</p>
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"cpu-count-slider"
><i
class=
"icon-cogs"
></i>
{% trans "CPU cores" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<label
>
{{ node.num_cores }}
</label>
</div>
</p>
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"cpu-count-slider"
><i
class=
"icon-cogs"
></i>
{% trans "RAM size" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<label
>
{% widthratio node.ram_size 1024000 1 %} MB
</label>
</div>
</p>
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"cpu-count-slider"
><i
class=
"icon-cogs"
></i>
{% trans "Traits" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<label
>
{{ node.traits.all }}
</label>
</div>
</p>
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"cpu-count-slider"
><i
class=
"icon-cogs"
></i>
{% trans "Tags" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<label
>
{{ node.tags.all }}
</label>
</div>
</p>
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"cpu-count-slider"
><i
class=
"icon-cogs"
></i>
{% trans "Host owner" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<label
>
{{ node.host.owner }}
</label>
</div>
</p>
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"cpu-count-slider"
><i
class=
"icon-cogs"
></i>
{% trans "Host IP" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<label
>
{{ node.host.ipv4 }}
</label>
</div>
</p>
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"cpu-count-slider"
><i
class=
"icon-cogs"
></i>
{% trans "Shared IP" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<label
>
{{ node.host.shared_ip }}
</label>
</div>
</p>
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"cpu-count-slider"
><i
class=
"icon-cogs"
></i>
{% trans "Host vlan" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<label
>
{{ node.host.vlan }}
</label>
</div>
</p>
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"cpu-count-slider"
><i
class=
"icon-cogs"
></i>
{% trans "Host name" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<label
>
{{ node.host.groups.all }}
</label>
</div>
</p>
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"cpu-count-slider"
><i
class=
"icon-cogs"
></i>
{% trans "Host name" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<label
>
{{ node.host.hostname }}
</label>
</div>
</p>
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"cpu-count-slider"
><i
class=
"icon-cogs"
></i>
{% trans "Host name" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<label
>
{{ node.host.hostname }}
</label>
</div>
</p>
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"cpu-count-slider"
><i
class=
"icon-cogs"
></i>
{% trans "Host online" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<label
>
{{ node.online }}
</label>
</div>
</p>
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"ram-slider"
><i
class=
"icon-ticket"
></i>
{% trans "RAM amount" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<input
name=
"ram-size"
type=
"text"
id=
"vm-ram-size-slider"
class=
"vm-slider"
value=
"{{ instance.ram_size }}"
data-slider-min=
"128"
data-slider-max=
"4096"
data-slider-step=
"128"
data-slider-value=
"{{ instance.ram_size }}"
data-slider-orientation=
"horizontal"
data-slider-handle=
"square"
data-slider-tooltip=
"hide"
/>
MiB
</div>
</p>
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"cpu-count-slider"
><i
class=
"icon-cogs"
></i>
{% trans "CPU count" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<label
>
{{ node.host }}
</label>
</div>
</p>
<p
class=
"row"
>
<div
class=
"col-sm-12"
>
<button
type=
"submit"
class=
"btn btn-success btn-sm"
id=
"vm-details-resources-save"
><i
class=
"icon-save"
></i>
{% trans "Save resources" %}
</button>
</div>
</p>
</form>
{% block extra_js %}
<style>
label
{
padding-top
:
6px
;}
...
...
circle/dashboard/templates/dashboard/node-detail.html
View file @
4bd6fb5d
...
...
@@ -52,6 +52,11 @@
</div>
</div>
</div>
<style>
.popover
{
max-width
:
600px
;
}
</style>
{% endblock %}
{% block extra_js %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment