Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dbb37bcf
authored
Nov 18, 2013
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: network tab in vm details
parent
2b12660d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
circle/dashboard/templates/dashboard/vm-detail-network.html
+11
-7
circle/dashboard/templates/dashboard/vm-detail.html
+1
-1
No files found.
circle/dashboard/templates/dashboard/vm-detail-network.html
View file @
dbb37bcf
...
...
@@ -3,13 +3,18 @@
Interfaces
</h2>
<h3
class=
"list-group-item-heading"
><i
class=
"icon-globe"
></i>
vmnet
</h3>
{% for i in instance.interface_set.all %}
<h3
class=
"list-group-item-heading"
>
<i
class=
"icon-{% if i.host %}globe{% else %}link{% endif %}"
></i>
{{ i.vlan }}
{% if not i.host %}(unmanaged)
<a
href=
"#"
class=
"btn btn-danger btn-xs"
>
remove
</a>
{% endif %}
</h3>
{% if i.host %}
<div
class=
"row"
>
<div
class=
"col-md-5"
>
<dl>
<dt>
IPv4 address:
</dt>
<dd>
10.9.8.7
</dd>
<dt>
IPv6 address:
</dt>
<dd>
2001:2001:2001:2001:2001:2001::
</dd>
<dt>
DNS name:
</dt>
<dd>
550.vm.ik.bme.hu
</dd>
<dt>
IPv4 address:
</dt>
<dd>
{{ i.host.ipv4 }}
</dd>
<dt>
IPv6 address:
</dt>
<dd>
{{ i.host.ipv6 }}
</dd>
<dt>
DNS name:
</dt>
<dd>
{{ i.host.get_fqdn }}
</dd>
</dl>
</div>
<div
class=
"col-md-7"
>
...
...
@@ -78,6 +83,5 @@ Interfaces</h2>
</div>
</div>
</div>
<h3
class=
"list-group-item-heading"
><i
class=
"icon-link"
></i>
grid (unmanaged)
<a
href=
"#"
class=
"btn btn-danger btn-xs"
>
remove
</a></h3>
<h3
class=
"list-group-item-heading"
><i
class=
"icon-link"
></i>
asdasd (unmanaged)
<a
href=
"#"
class=
"btn btn-danger btn-xs"
>
remove
</a></h3>
{% endif %}
{% endfor %}
circle/dashboard/templates/dashboard/vm-detail.html
View file @
dbb37bcf
...
...
@@ -4,7 +4,7 @@
{% block content %}
<div
class=
"body-content"
>
<div
class=
"page-header"
>
<h1>
{{ instance.name }}
<small>
{{ instance.
pk }}.vm.ik.bme.hu
</small></h1>
<h1>
{{ instance.name }}
<small>
{{ instance.
get_connect_host }}
</small></h1>
</div>
<div
class=
"row"
>
<div
class=
"col-md-4"
id=
"vm-info-pane"
>
...
...
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