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
7ca871df
authored
Apr 04, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: fade unused IP protocol
parent
4eacfcf2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
one/static/style/box.less
+4
-0
one/templates/show.html
+7
-3
one/templates/vm-credentials.html
+2
-2
No files found.
one/static/style/box.less
View file @
7ca871df
...
@@ -560,6 +560,10 @@
...
@@ -560,6 +560,10 @@
.content {
.content {
padding: 15px;
padding: 15px;
}
}
.faded {
color: #666;
font-size: 0.8em;
}
}
}
table {
table {
...
...
one/templates/show.html
View file @
7ca871df
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
<th
colspan=
"2"
>
{% trans "Access" %}
</th>
<th
colspan=
"2"
>
{% trans "Access" %}
</th>
</tr>
</tr>
{% for port in ports %}
{% for port in ports %}
<tr>
<tr
{%
if
i
.
is_ipv6
%}
class=
"faded"
{%
endif
%}
>
<td>
{{port.private}}/{{port.proto}}
</td>
<td>
{{port.private}}/{{port.proto}}
</td>
<td
style=
"white-space: nowrap;"
>
<td
style=
"white-space: nowrap;"
>
{% if port.private == 80 or port.private == 8080 or port.private == 8000 %}
{% if port.private == 80 or port.private == 8080 or port.private == 8000 %}
...
@@ -162,11 +162,13 @@
...
@@ -162,11 +162,13 @@
{{port.ipv4.host}}:{{port.ipv4.port}}
{{port.ipv4.host}}:{{port.ipv4.port}}
{% endif %}
{% endif %}
</td>
</td>
<td>
{% if not i.is_ipv6 %}
<td
rowspan=
"2"
>
<a
href=
"{% url one.views.vm_port_del i.id port.proto port.private %}"
>
{% trans "Delete" %}
</a>
<a
href=
"{% url one.views.vm_port_del i.id port.proto port.private %}"
>
{% trans "Delete" %}
</a>
</td>
</td>
{% endif %}
</tr>
</tr>
<tr>
<tr
{%
if
not
i
.
is_ipv6
%}
class=
"faded"
{%
endif
%}
>
<td>
{{port.private}}/{{port.proto}}6
</td>
<td>
{{port.private}}/{{port.proto}}6
</td>
<td
style=
"white-space: nowrap;"
>
<td
style=
"white-space: nowrap;"
>
{% if port.private == 80 or port.private == 8080 or port.private == 8000 %}
{% if port.private == 80 or port.private == 8080 or port.private == 8000 %}
...
@@ -181,9 +183,11 @@
...
@@ -181,9 +183,11 @@
{{port.ipv6.host}}:{{port.ipv6.port}}
{{port.ipv6.host}}:{{port.ipv6.port}}
{% endif %}
{% endif %}
</td>
</td>
{% if i.is_ipv6 %}
<td>
<td>
<a
href=
"{% url one.views.vm_port_del i.id port.proto port.private %}"
>
{% trans "Delete" %}
</a>
<a
href=
"{% url one.views.vm_port_del i.id port.proto port.private %}"
>
{% trans "Delete" %}
</a>
</td>
</td>
{% endif %}
</tr>
</tr>
{% endfor %}
{% endfor %}
<tr>
<tr>
...
...
one/templates/vm-credentials.html
View file @
7ca871df
...
@@ -36,11 +36,11 @@
...
@@ -36,11 +36,11 @@
{{i.template.access_type|upper}}
{{i.template.access_type|upper}}
</td>
</td>
</tr>
</tr>
<tr>
<tr
{%
if
i
.
is_ipv6
%}
class=
"faded"
{%
endif
%}
>
<th>
{% trans "IPv4 Host" %}{% if i.is_ipv6 %} ({% trans "You are using IPv6" %}){% endif %}:
</th>
<th>
{% trans "IPv4 Host" %}{% if i.is_ipv6 %} ({% trans "You are using IPv6" %}){% endif %}:
</th>
<td>
{{ i.hostname_v4 }}
</td>
<td>
{{ i.hostname_v4 }}
</td>
</tr>
</tr>
<tr>
<tr
{%
if
not
i
.
is_ipv6
%}
class=
"faded"
{%
endif
%}
>
<th>
{% trans "IPv6 Host" %}{% if not i.is_ipv6 %} ({% trans "You are using IPv4" %}){% endif %}:
</th>
<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 }}
</td>
</tr>
</tr>
...
...
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