Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
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
db8431d6
authored
Apr 04, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: hide IPv6, if not available
parent
7ca871df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
15 deletions
+5
-15
one/templates/show.html
+2
-2
one/templates/vm-credentials.html
+3
-13
No files found.
one/templates/show.html
View file @
db8431d6
...
...
@@ -163,12 +163,12 @@
{% endif %}
</td>
{% if not i.is_ipv6 %}
<td
rowspan=
"2"
>
<td>
<a
href=
"{% url one.views.vm_port_del i.id port.proto port.private %}"
>
{% trans "Delete" %}
</a>
</td>
{% endif %}
</tr>
<tr
{%
if
not
i
.
is_ipv6
%}
class=
"faded
"
{%
endif
%}
>
<tr
{%
if
not
i
.
is_ipv6
%}
style=
"display: none
"
{%
endif
%}
>
<td>
{{port.private}}/{{port.proto}}6
</td>
<td
style=
"white-space: nowrap;"
>
{% if port.private == 80 or port.private == 8080 or port.private == 8000 %}
...
...
one/templates/vm-credentials.html
View file @
db8431d6
...
...
@@ -38,22 +38,12 @@
</tr>
<tr
{%
if
i
.
is_ipv6
%}
class=
"faded"
{%
endif
%}
>
<th>
{% trans "IPv4 Host" %}{% if i.is_ipv6 %} ({% trans "You are using IPv6" %}){% endif %}:
</th>
<td>
{{ i.hostname_v4 }}
</td>
<td>
{{ i.hostname_v4 }}
:{{i.port_v4}}
</td>
</tr>
<tr
{%
if
not
i
.
is_ipv6
%}
class=
"faded
"
{%
endif
%}
>
<tr
{%
if
not
i
.
is_ipv6
%}
style=
"display: none
"
{%
endif
%}
>
<th>
{% trans "IPv6 Host" %}{% if not i.is_ipv6 %} ({% trans "You are using IPv4" %}){% endif %}:
</th>
<td>
{{ i.hostname_v6 }}
</td>
<td>
{{ i.hostname_v6 }}
:{{ i.port_v6 }}
</td>
</tr>
{% if i.nat %}
<tr>
<th>
{% trans "IPv4 Port" %}:
</th>
<td>
{{ i.port_v4 }}
</td>
</tr>
<tr>
<th>
{% trans "IPv6 Port" %}:
</th>
<td>
{{ i.port_v6 }}
</td>
</tr>
{% endif %}
<tr>
<th>
{% trans "Username" %}:
</th>
<td>
cloud
</td>
...
...
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