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
cd5cb5cd
authored
Feb 07, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: new-wm markup fixed
parent
7dae3c8d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
one/templates/home.html
+14
-6
No files found.
one/templates/home.html
View file @
cd5cb5cd
...
@@ -24,8 +24,10 @@
...
@@ -24,8 +24,10 @@
<ul
class=
"wm-list modal"
>
<ul
class=
"wm-list modal"
>
{% for m in templates %}
{% for m in templates %}
<li
class=
"wm"
>
<li
class=
"wm"
>
<form
method=
"POST"
action=
"/vm/new/{{m.pk}}/"
>
{% csrf_token %}
<div
class=
"summary"
>
<div
class=
"summary"
>
<div
class=
"quota"
>
<div
class=
"used"
style=
"width: 40%"
></div>
</div>
<div
class=
"name wm-on"
>
{{m.name}}
</div>
<div
class=
"name wm-on"
>
{{m.name}}
</div>
<div
class=
"status"
>
<div
class=
"status"
>
3/10
3/10
...
@@ -33,19 +35,25 @@
...
@@ -33,19 +35,25 @@
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
</div>
</div>
<div
class=
"details"
>
<div
class=
"details"
>
<h3>
<div
class=
"details-container"
>
{% trans "Details" %}
</h3>
<ul>
<ul>
<li
class=
"name"
>
{% trans "System" %}:
<span
class=
"value"
>
{{m.disk.name}}
</span></li>
<li
class=
"name"
>
{% trans "System" %}:
<span
class=
"value"
>
{{m.disk.name}}
</span></li>
<li
class=
"type"
>
{% trans "Size" %}:
<span
class=
"value"
>
{{m.instance_type.name}}
</span></li>
<li
class=
"type"
>
{% trans "Size" %}:
<span
class=
"value"
>
{{m.instance_type.name}}
</span></li>
<li
class=
"memory"
>
{% trans "Memory" %}:
<li
class=
"memory"
>
{% trans "Memory" %}:
<span
class=
"value"
>
{% blocktrans with m=m.instance_type.RAM %}{{m}} MiB{% endblocktrans %}
</span></li>
<span
class=
"value"
>
{% blocktrans with m=m.instance_type.RAM %}{{m}} MiB{% endblocktrans %}
</span></li>
<li
class=
"cpu"
>
{% trans "CPU cores" %}:
<span
class=
"value"
>
{{m.instance_type.CPU}}
</span></li>
<li
class=
"cpu"
>
{% trans "CPU cores" %}:
<span
class=
"value"
>
{{m.instance_type.CPU}}
</span></li>
<li>
<span
class=
"value"
><input
type=
"submit"
value=
"{% trans "
Launch
"
%}"
/></span></li>
<li>
<span
class=
"value"
>
<form
method=
"POST"
action=
"/vm/new/{{m.pk}}/"
>
{% csrf_token %}
<input
type=
"submit"
value=
"{% trans "
Launch
"
%}"
/>
</form>
</span>
<div
class=
"clear"
></div>
</li>
</ul>
</ul>
</div>
</div>
</
form
>
</
div
>
</li>
</li>
{% endfor %}
{% endfor %}
</ul>
</ul>
...
...
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