Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d7e47e81
authored
Feb 07, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: show.html reindent
parent
49339f20
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
104 additions
and
30 deletions
+104
-30
one/templates/show.html
+104
-30
No files found.
one/templates/show.html
View file @
d7e47e81
...
@@ -26,53 +26,88 @@
...
@@ -26,53 +26,88 @@
<h2>
{{name}}
</h2>
<h2>
{{name}}
</h2>
<div
class=
"content"
>
<div
class=
"content"
>
{% if state == "PENDING" or state == "ACTIVE" and booting %}
{% if state == "PENDING" or state == "ACTIVE" and booting %}
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
><img
src=
"/static/load-2.gif"
/>
Gép indítása..
</p>
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
<form
action=
"{% url vm_delete id %}"
method=
"post"
onsubmit=
"return confirm('Biztosan törli a gépet?')"
>
{% csrf_token %}
<input
type=
"submit"
class=
"icon-delete"
value=
"Törlés"
/></form>
<img
src=
"/static/load-2.gif"
/>
<a
href=
"/"
><img
src=
"/static/icons/Go-home.png"
alt=
"<-"
/></a>
Gép indítása..
</p>
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
<form
action=
"{% url vm_delete id %}"
method=
"post"
onsubmit=
"return confirm('Biztosan törli a gépet?')"
>
{% csrf_token %}
<input
type=
"submit"
class=
"icon-delete"
value=
"Törlés"
/>
</form>
<a
href=
"/"
>
<img
src=
"/static/icons/Go-home.png"
alt=
"<-"
/>
</a>
</p>
</p>
{% endif %}
{% endif %}
{% if state == "ACTIVE" and not booting %}
{% if state == "ACTIVE" and not booting %}
{% if age
<
15
%}
{% if age
<
p
id=
"wait"
style=
"font-size:25px; line-height:2em;text-align:center;"
><img
src=
"/static/load-2.gif"
/>
Gép indítása...
</p>
<
15
%}
<
p
id=
"wait"
style=
"font-size:25px; line-height:2em;text-align:center;"
>
<img
src=
"/static/load-2.gif"
/>
Gép indítása...
</p>
<p
id=
"connect"
style=
"display:none; font-size:25px; line-height:2em;text-align:center;"
>
<p
id=
"connect"
style=
"display:none; font-size:25px; line-height:2em;text-align:center;"
>
<a
href=
"{{uri}}"
class=
"button"
onclick=
"return connectbutton();"
>
<a
href=
"{{uri}}"
class=
"button"
onclick=
"return connectbutton();"
>
<img
src=
"/static/load-1.gif"
id=
"connecting"
style=
"display:none;"
/>
Csatlakozás
<img
src=
"/static/load-1.gif"
id=
"connecting"
style=
"display:none;"
/>
Csatlakozás
</a>
</a>
</p>
</p>
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
<form
action=
"{% url vm_delete id %}"
method=
"post"
onsubmit=
"return confirm('Biztosan törli a gépet?')"
>
{% csrf_token %}
<input
type=
"submit"
class=
"icon-delete"
value=
"Törlés"
/></form>
<form
action=
"{% url vm_delete id %}"
method=
"post"
onsubmit=
"return confirm('Biztosan törli a gépet?')"
>
<a
href=
"/"
><img
src=
"/static/icons/Go-home.png"
alt=
"<-"
/></a>
{% csrf_token %}
<input
type=
"submit"
class=
"icon-delete"
value=
"Törlés"
/>
</form>
<a
href=
"/"
>
<img
src=
"/static/icons/Go-home.png"
alt=
"<-"
/>
</a>
</p>
</p>
{% else %}
{% else %}
<p
id=
"connect"
style=
"font-size:25px; line-height:2em;text-align:center;"
>
<p
id=
"connect"
style=
"font-size:25px; line-height:2em;text-align:center;"
>
<a
href=
"{{uri}}"
class=
"button"
onclick=
"return connectbutton();"
>
<a
href=
"{{uri}}"
class=
"button"
onclick=
"return connectbutton();"
>
<img
src=
"/static/load-1.gif"
id=
"connecting"
style=
"display:none;"
/>
Csatlakozás
<img
src=
"/static/load-1.gif"
id=
"connecting"
style=
"display:none;"
/>
Csatlakozás
</a>
</a>
</p>
</p>
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
<form
action=
"{% url vm_delete id %}"
method=
"post"
onsubmit=
"return confirm('Biztosan törli a gépet?')"
>
{% csrf_token %}
<input
type=
"submit"
class=
"icon-delete"
value=
"Törlés"
/></form>
<form
action=
"{% url vm_delete id %}"
method=
"post"
onsubmit=
"return confirm('Biztosan törli a gépet?')"
>
<a
href=
"/"
><img
src=
"/static/icons/Go-home.png"
alt=
"<-"
/></a>
{% csrf_token %}
<input
type=
"submit"
class=
"icon-delete"
value=
"Törlés"
/>
</form>
<a
href=
"/"
>
<img
src=
"/static/icons/Go-home.png"
alt=
"<-"
/>
</a>
</p>
</p>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% if state == "DONE" %}
{% if state == "DONE" %}
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
A gép törölve van!
</p>
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
A gép törölve van!
</p>
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
<a
href=
"/"
><img
src=
"/static/icons/Go-home.png"
alt=
"⌫"
/></a>
<a
href=
"/"
>
<img
src=
"/static/icons/Go-home.png"
alt=
"⌫"
/>
</a>
</p>
</p>
{% endif %}
{% endif %}
{% if state == "FAILED" %}
{% if state == "FAILED" %}
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
Váratlan hiba lépett fel.
</p>
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
Váratlan hiba lépett fel.
</p>
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
<form
action=
"{% url vm_delete id %}"
method=
"post"
onsubmit=
"return confirm('Biztosan törli a gépet?')"
>
{% csrf_token %}
<input
type=
"submit"
class=
"icon-delete"
value=
"Törlés"
/></form>
<form
action=
"{% url vm_delete id %}"
method=
"post"
onsubmit=
"return confirm('Biztosan törli a gépet?')"
>
<a
href=
"/"
><img
src=
"/static/icons/Go-home.png"
alt=
"⌫"
/></a>
{% csrf_token %}
<input
type=
"submit"
class=
"icon-delete"
value=
"Törlés"
/>
</form>
<a
href=
"/"
>
<img
src=
"/static/icons/Go-home.png"
alt=
"⌫"
/>
</a>
</p>
</p>
{% endif %}
{% endif %}
{% if state == "SUSPENDED" %}
{% if state == "SUSPENDED" %}
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
<a
href=
"/vm/suspend/{{i.id}}/"
><img
src=
"/static/icons/Media-playback-start.png"
alt=
">"
/></a>
<a
href=
"/vm/suspend/{{i.id}}/"
>
<a
href=
"/"
><img
src=
"/static/icons/Go-home.png"
alt=
"⌫"
/></a>
<img
src=
"/static/icons/Media-playback-start.png"
alt=
">"
/>
</a>
<a
href=
"/"
>
<img
src=
"/static/icons/Go-home.png"
alt=
"⌫"
/>
</a>
</p>
</p>
{% endif %}
{% endif %}
</div>
</div>
...
@@ -80,11 +115,27 @@
...
@@ -80,11 +115,27 @@
<div
class=
"contentblock"
id=
"state"
>
<div
class=
"contentblock"
id=
"state"
>
<h2>
Bejelentkezési adatok
</h2>
<h2>
Bejelentkezési adatok
</h2>
<div
class=
"content"
>
<div
class=
"content"
>
<table><tr><th>
Protokoll:
</th><td>
{{i.template.access_type|upper}}
</td></tr>
<table>
<tr><th>
IP:
</th><td>
{{ i.firewall_host.pub_ipv4}}
</td></tr>
<tr>
<tr><th>
Port:
</th><td>
{{ i.get_port}}
</td></tr>
<th>
Protokoll:
</th>
<tr><th>
Felhasználónév:
</th><td>
cloud
</td></tr>
<td>
{{i.template.access_type|upper}}
</td>
<tr><th>
Jelszó:
</th><td>
{{ i.pw }}
</td></tr>
</tr>
<tr>
<th>
IP:
</th>
<td>
{{ i.firewall_host.pub_ipv4}}
</td>
</tr>
<tr>
<th>
Port:
</th>
<td>
{{ i.get_port}}
</td>
</tr>
<tr>
<th>
Felhasználónév:
</th>
<td>
cloud
</td>
</tr>
<tr>
<th>
Jelszó:
</th>
<td>
{{ i.pw }}
</td>
</tr>
</table>
</table>
</div>
</div>
</div>
</div>
...
@@ -93,14 +144,39 @@
...
@@ -93,14 +144,39 @@
<div
class=
"content"
>
<div
class=
"content"
>
<form
action=
"{% url vm_port_add i.id %}"
method=
"post"
>
<form
action=
"{% url vm_port_add i.id %}"
method=
"post"
>
{% csrf_token %}
{% csrf_token %}
<table><tr><th>
Protokoll
</th><th>
Külső port
</th><th>
Belső port
</th></tr>
<table>
<tr>
<th>
Protokoll
</th>
<th>
Külső port
</th>
<th>
Belső port
</th>
</tr>
{% for port in ports %}
{% for port in ports %}
<tr><td>
{{port.proto}}
</td><td>
{{port.public}}
</td><td>
{{port.private}}
</td><td><a
href=
"/vm/port_del/{{i.id}}/{{port.proto}}/{{port.public}}/"
>
Törlés
</a></td></tr>
<tr>
<td>
{{port.proto}}
</td>
<td>
{{port.public}}
</td>
<td>
{{port.private}}
</td>
<td>
<a
href=
"/vm/port_del/{{i.id}}/{{port.proto}}/{{port.public}}/"
>
Törlés
</a>
</td>
</tr>
{% endfor %}
{% endfor %}
<tr><td><select
style=
"min-width:50px;"
name=
proto
><option
value=
"tcp"
>
tcp
</option><option
value=
"udp"
>
udp
</option></select></td>
<tr>
<td><input
style=
"min-width:70px;width:70px;"
type=
"text"
name=
"public"
/></td>
<td>
<td><input
style=
"min-width:70px;width:70px;"
type=
"text"
name=
"private"
/></td>
<select
style=
"min-width:50px;"
name=
proto
>
<td><input
type=
"submit"
value=
"Hozzáadás"
/></td></tr>
<option
value=
"tcp"
>
tcp
</option>
<option
value=
"udp"
>
udp
</option>
</select>
</td>
<td>
<input
style=
"min-width:70px;width:70px;"
type=
"text"
name=
"public"
/>
</td>
<td>
<input
style=
"min-width:70px;width:70px;"
type=
"text"
name=
"private"
/>
</td>
<td>
<input
type=
"submit"
value=
"Hozzáadás"
/>
</td>
</tr>
</table>
</table>
</form>
</form>
</div>
</div>
...
@@ -109,9 +185,7 @@
...
@@ -109,9 +185,7 @@
<div
class=
"boxes"
>
<div
class=
"boxes"
>
<div
class=
"contentblock"
id=
"state"
>
<div
class=
"contentblock"
id=
"state"
>
<h2>
Virtuális gépek
</h2>
<h2>
Virtuális gépek
</h2>
<ul
class=
"wm-list"
>
<ul
class=
"wm-list"
>
{% include "box-vmlist.html" %}
</ul>
{% include "box-vmlist.html" %}
</ul>
</div>
</div>
</div>
</div>
{% endblock %}
{% endblock %}
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