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
fd386b6e
authored
Feb 13, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: old vm-list replaced
parent
0723519a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
104 deletions
+1
-104
one/templates/home.html
+1
-104
No files found.
one/templates/home.html
View file @
fd386b6e
{% extends "base.html" %}
{% load i18n %}
{% load l10n %}
{% get_current_language as LANGUAGE_CODE %}
{% block content %}
<div
class=
"boxes"
>
<div
class=
"contentblock"
id=
"state"
>
<h2>
{% trans "Virtual machines" %}
</h2>
<ul
class=
"wm-list"
>
{% include "box-vmlist.html" %}
<li
id=
"new-wm-button"
class=
"wm new"
>
<div
class=
"summary"
>
<div
class=
"name"
>
{% trans "Start new machine" %}
</div>
<div
class=
"clear"
></div>
</div>
</li>
<li
id=
"new-wm"
style=
"display: none"
>
<h2>
{% trans "Available shares" %}
</h2>
<p>
{% trans "Choose one of the following shared templates to launch." %}
</p>
<div
class=
"container"
>
<ul
class=
"wm-list modal"
>
{% for s in shares %}
<li
class=
"wm"
>
<div
class=
"summary"
>
<div
class=
"quota"
>
<div
class=
"used"
style=
"width:{% if s.running_shared >= s.per_user_limit %}100%{% else %}{{ s.get_instance_pc|unlocalize }}%{% endif %}"
/>
</div>
</div>
<div
class=
"name wm-on"
>
{{s.name}} - {{ s.group.name }} ({{ s.running_shared }}/{{ s.per_user_limit }})
</div>
<div
class=
"status"
>
{{s.get_running}}/{{s.instance_limit}}
</div>
<div
class=
"clear"
></div>
</div>
<div
class=
"details"
>
<div
class=
"details-container"
>
<ul>
<li
class=
"os-{{s.template.os_type}}"
>
{% trans "System" %}:
<span
class=
"value"
>
{{s.template.system}}
</span>
<div
class=
"clear"
></div>
</li>
<li
class=
"type"
>
{% trans "Size" %}:
<span
class=
"value"
>
{{s.template.instance_type.name}}
<span
class=
"cpu"
>
{{s.template.instance_type.CPU}}
</span>
<span
class=
"memory"
>
{{s.template.instance_type.RAM}}
</span>
<span
class=
"credit"
>
{{s.template.instance_type.credit}}
</span>
</span>
</li>
<li
class=
"share-type"
>
{% trans "Type" %}:
<span
class=
"value"
>
{{s.type }}
</span>
({% if s.get_type.suspend %}
<span
class=
"suspend"
title=
"{% blocktrans with time=s.get_type.suspend %}Suspend after {{time}}.{%endblocktrans%}"
>
{{s.get_type.suspendx|timeuntil}}
</span>
{%endif%}{% if s.get_type.delete %}
<span
class=
"delete"
title=
"{% blocktrans with time=s.get_type.delete %}Delete after {{time}}.{%endblocktrans%}"
>
{{s.get_type.deletex|timeuntil}}
</span>
{%endif%})
</li>
<li
class=
"description"
>
{% trans "Description" %}:
<span
class=
"value"
>
{{s.description}}
</span>
<div
class=
"clear"
></div>
</li>
<li>
<span
class=
"value"
>
<form
method=
"POST"
action=
"/vm/new/s{{s.pk}}/"
>
{% csrf_token %}
<input
{%
if
s
.
running_shared
>
= s.per_user_limit or s.get_running >= s.instance_limit%}disabled="disabled" value="{% trans "Quota reached" %}" {%else%}value="{% trans "Launch" %}"{% endif %} type="submit" />
</form>
</span>
<div
class=
"clear"
></div>
</li>
</ul>
</div>
</div>
</li>
{% endfor %}
</ul>
</div>
</li>
<li
class=
"wm small"
>
<div
class=
"summary"
>
<div
class=
"quota"
>
<div
class=
"used"
style=
"background-color: rgba(0,255,0,0.2); width: {{userdetails.get_instance_pc|unlocalize}}%"
></div>
</div>
<div
class=
"name"
>
{% blocktrans with used=userdetails.get_weighted_instance_count all=userdetails.instance_quota %}Personal quota: {{used}}/{{all}}{% endblocktrans %}
</div>
<div
class=
"clear"
></div>
</div>
</li>
</ul>
</div>
{% for box in boxes %}
{% if forloop.counter0|divisibleby:2 %}
<div
class=
"contentblock"
>
<h2>
{{ box.title }}
</h2>
<div
class=
"content"
>
{{ box.text|safe }}
</div>
</div>
{% endif %}
{% endfor %}
{% include "box/box-vm.html" %}
{% if userdetails.share_quota %}
{% include "box-templatelist.html" %}
...
...
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