Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
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
53f0b4ad
authored
Jul 10, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: update fontawesome HTML icons
parent
3fdecc2a
Hide whitespace changes
Inline
Side-by-side
Showing
54 changed files
with
236 additions
and
236 deletions
+236
-236
circle/dashboard/templates/base.html
+1
-1
circle/dashboard/templates/dashboard/_disk-list-element.html
+1
-1
circle/dashboard/templates/dashboard/_notifications-timeline.html
+1
-1
circle/dashboard/templates/dashboard/_vm-create-1.html
+11
-11
circle/dashboard/templates/dashboard/base.html
+5
-5
circle/dashboard/templates/dashboard/group-detail.html
+13
-13
circle/dashboard/templates/dashboard/group-list.html
+2
-2
circle/dashboard/templates/dashboard/group-list/column-actions.html
+1
-1
circle/dashboard/templates/dashboard/group-list/column-admin.html
+1
-1
circle/dashboard/templates/dashboard/group-list/test-one.html
+6
-6
circle/dashboard/templates/dashboard/index-files.html
+10
-10
circle/dashboard/templates/dashboard/index-groups.html
+6
-6
circle/dashboard/templates/dashboard/index-nodes.html
+11
-11
circle/dashboard/templates/dashboard/index-templates.html
+6
-6
circle/dashboard/templates/dashboard/index-vm.html
+12
-12
circle/dashboard/templates/dashboard/lease-create.html
+1
-1
circle/dashboard/templates/dashboard/lease-edit.html
+1
-1
circle/dashboard/templates/dashboard/node-add-trait.html
+1
-1
circle/dashboard/templates/dashboard/node-detail.html
+10
-10
circle/dashboard/templates/dashboard/node-detail/_activity-timeline.html
+2
-2
circle/dashboard/templates/dashboard/node-detail/home.html
+1
-1
circle/dashboard/templates/dashboard/node-list.html
+1
-1
circle/dashboard/templates/dashboard/node-list/column-actions.html
+6
-6
circle/dashboard/templates/dashboard/node-list/column-admin.html
+2
-2
circle/dashboard/templates/dashboard/node-list/column-monitor.html
+2
-2
circle/dashboard/templates/dashboard/node-list/test-one.html
+6
-6
circle/dashboard/templates/dashboard/notifications.html
+1
-1
circle/dashboard/templates/dashboard/operate.html
+1
-1
circle/dashboard/templates/dashboard/profile.html
+6
-6
circle/dashboard/templates/dashboard/profile_form.html
+3
-3
circle/dashboard/templates/dashboard/template-edit.html
+7
-7
circle/dashboard/templates/dashboard/template-list.html
+5
-5
circle/dashboard/templates/dashboard/template-list/column-lease-actions.html
+2
-2
circle/dashboard/templates/dashboard/template-list/column-template-actions.html
+2
-2
circle/dashboard/templates/dashboard/userkey-create.html
+1
-1
circle/dashboard/templates/dashboard/userkey-edit.html
+1
-1
circle/dashboard/templates/dashboard/userkey-list/column-userkey-actions.html
+2
-2
circle/dashboard/templates/dashboard/vm-detail.html
+9
-9
circle/dashboard/templates/dashboard/vm-detail/_activity-timeline.html
+3
-3
circle/dashboard/templates/dashboard/vm-detail/_disk-operations.html
+1
-1
circle/dashboard/templates/dashboard/vm-detail/_network-port-add.html
+1
-1
circle/dashboard/templates/dashboard/vm-detail/_operations.html
+1
-1
circle/dashboard/templates/dashboard/vm-detail/access.html
+3
-3
circle/dashboard/templates/dashboard/vm-detail/console.html
+1
-1
circle/dashboard/templates/dashboard/vm-detail/home.html
+10
-10
circle/dashboard/templates/dashboard/vm-detail/network.html
+15
-15
circle/dashboard/templates/dashboard/vm-detail/resources.html
+4
-4
circle/dashboard/templates/dashboard/vm-list.html
+7
-7
circle/dashboard/templates/dashboard/vm-list/column-actions.html
+4
-4
circle/dashboard/templates/dashboard/vm-list/column-admin.html
+2
-2
circle/dashboard/templates/dashboard/vm-list/test-one.html
+6
-6
circle/dashboard/views.py
+5
-5
circle/vm/models/instance.py
+8
-8
circle/vm/models/node.py
+5
-5
No files found.
circle/dashboard/templates/base.html
View file @
53f0b4ad
...
...
@@ -12,7 +12,7 @@
<link
rel=
"stylesheet"
href=
"//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css"
>
<link
href=
"//
netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome
.css"
rel=
"stylesheet"
>
<link
href=
"//
maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min
.css"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"{{ STATIC_URL }}/template.css"
>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
...
...
circle/dashboard/templates/dashboard/_disk-list-element.html
View file @
53f0b4ad
...
...
@@ -14,6 +14,6 @@
data-disk-pk=
"{{ d.pk }}"
class=
"btn btn-xs btn-danger pull-right disk-remove"
{%
if
not
long_remove
%}
title=
"{% trans "
Remove
"
%}"{%
endif
%}
>
<i
class=
"
icon-remove
"
></i>
{% if long_remove %} {% trans "Remove" %}{% endif %}
<i
class=
"
fa fa-times
"
></i>
{% if long_remove %} {% trans "Remove" %}{% endif %}
</a>
<div
style=
"clear: both;"
></div>
circle/dashboard/templates/dashboard/_notifications-timeline.html
View file @
53f0b4ad
...
...
@@ -2,7 +2,7 @@
{% for n in notifications %}
<li
class=
"notification-message"
>
<span
class=
"notification-message-subject"
>
{% if n.status == "new" %}
<i
class=
"
icon
-envelope-alt"
></i>
{% endif %}
{% if n.status == "new" %}
<i
class=
"
fa fa
-envelope-alt"
></i>
{% endif %}
{{ n.subject }}
</span>
<span
class=
"notification-message-date pull-right"
>
...
...
circle/dashboard/templates/dashboard/_vm-create-1.html
View file @
53f0b4ad
...
...
@@ -6,12 +6,12 @@
<div
class=
"vm-create-template"
>
<div
class=
"vm-create-template-summary"
>
{{ t.name }}
<span
class=
"pull-right"
><i
class=
"
icon
-{{ t.os_type }}"
></i>
{{ t.system }}
</span>
<span
class=
"pull-right"
><i
class=
"
fa fa
-{{ t.os_type }}"
></i>
{{ t.system }}
</span>
</div>
<div
class=
"vm-create-template-details"
>
<ul>
<li>
<i
class=
"
icon
-gears"
></i>
{% trans "CPU" %}
<i
class=
"
fa fa
-gears"
></i>
{% trans "CPU" %}
<div
class=
"progress pull-right"
>
<div
class=
"progress-bar progress-bar-success"
role=
"progressbar"
aria-valuenow=
"{{ t.num_cores }}"
aria-valuemin=
"0"
aria-valuemax=
"8"
style=
"width: 80%"
>
...
...
@@ -20,7 +20,7 @@
</div>
</li>
<li>
<i
class=
"
icon
-ticket"
></i>
{% trans "Memory" %}
<i
class=
"
fa fa
-ticket"
></i>
{% trans "Memory" %}
<div
class=
"progress pull-right"
>
<div
class=
"progress-bar progress-bar-info"
role=
"progressbar"
aria-valuenow=
"{{ t.ram_size }}"
aria-valuemin=
"0"
aria-valuemax=
"4096"
...
...
@@ -30,27 +30,27 @@
</div>
</li>
<li>
<i
class=
"
icon
-file"
></i>
{% trans "Disks" %}
<i
class=
"
fa fa
-file"
></i>
{% trans "Disks" %}
<span
style=
"float: right; text-align: right;"
>
{% for d in t.disks.all %}{{ d.name }} ({% if d.size %}{{ d.size|filesize }}{% endif %}){% if not forloop.last %}, {% endif %}{% endfor %}
</span>
<div
style=
"clear: both;"
></div>
</li>
<li>
<i
class=
"
icon
-globe"
></i>
{% trans "Network" %}
<i
class=
"
fa fa
-globe"
></i>
{% trans "Network" %}
<span
style=
"float: right;"
>
{% for i in t.interface_set.all %}{{ i.vlan.name }}{% if not forloop.last %}, {% endif %}{% endfor %}
</span>
</li>
<li>
<i
class=
"
icon
-tag"
></i>
{% trans "Type" %}: {{ t.lease.name }}
<i
class=
"
fa fa
-tag"
></i>
{% trans "Type" %}: {{ t.lease.name }}
<span
style=
"float: right;"
>
<i
class=
"
icon
-pause"
></i>
{{ t.lease.get_readable_suspend_time }}
<i
class=
"
icon-remove
"
></i>
{{ t.lease.get_readable_delete_time }}
<i
class=
"
fa fa
-pause"
></i>
{{ t.lease.get_readable_suspend_time }}
<i
class=
"
fa fa-times
"
></i>
{{ t.lease.get_readable_delete_time }}
</span>
</li>
<li>
<i
class=
"
icon
-hand-right"
></i>
{% trans "Description" %}:
<i
class=
"
fa fa
-hand-right"
></i>
{% trans "Description" %}:
<span
style=
"float: right; max-width: 350px;"
>
{{ t.description }}
</span>
...
...
@@ -59,13 +59,13 @@
</ul>
<div
style=
"margin-top: 20px; padding: 0 15px; width: 100%"
>
{% if perms.vm_set_resources %}
<a
class=
"btn btn-primary btn-xs customize-vm"
data-template-pk=
"{{ t.pk }}"
href=
"{% url "
dashboard
.
views
.
vm-create
"
%}?
template=
{{
t
.
pk
}}"
><i
class=
"
icon
-wrench"
></i>
{% trans "Customize" %}
</a>
<a
class=
"btn btn-primary btn-xs customize-vm"
data-template-pk=
"{{ t.pk }}"
href=
"{% url "
dashboard
.
views
.
vm-create
"
%}?
template=
{{
t
.
pk
}}"
><i
class=
"
fa fa
-wrench"
></i>
{% trans "Customize" %}
</a>
{% endif %}
<form
class=
"pull-right text-right"
method=
"POST"
action=
"{% url "
dashboard
.
views
.
vm-create
"
%}"
>
{% csrf_token %}
<input
type=
"hidden"
name=
"template"
value=
"{{ t.pk }}"
/>
<button
class=
"btn btn-success btn-xs vm-create-start"
data-template-pk=
"{{ t.pk }}"
type=
"submit"
>
<i
class=
"
icon
-play"
></i>
{% trans "Start" %}
<i
class=
"
fa fa
-play"
></i>
{% trans "Start" %}
</button>
</form>
<div
style=
"clear: both;"
></div>
...
...
circle/dashboard/templates/dashboard/base.html
View file @
53f0b4ad
...
...
@@ -36,19 +36,19 @@
{% if user.is_authenticated and user.pk %}
<a
class=
"navbar-brand pull-right"
href=
"{% url "
logout
"
%}?
next=
{%
url
"
login
"
%}"
style=
"color: white; font-size: 10px;"
>
<i
class=
"
icon-sign
out icon-sign-out"
></i>
{% trans "Log out" %}
<i
class=
"
fa fa-sign-
out icon-sign-out"
></i>
{% trans "Log out" %}
</a>
<a
class=
"navbar-brand pull-right"
href=
"{% url "
dashboard
.
views
.
profile-preferences
"
%}"
title=
"{% trans "
User
profile
"
%}"
style=
"color: white; font-size: 10px;"
>
<i
class=
"
icon
-user"
></i>
<i
class=
"
fa fa
-user"
></i>
{% include "dashboard/_display-name.html" with user=user show_org=True %}
</a>
{% if user.is_superuser %}
<a
class=
"navbar-brand pull-right"
href=
"/network/"
style=
"color: white; font-size: 10px;"
><i
class=
"
icon
-globe"
></i>
{% trans "Network" %}
</a>
<a
class=
"navbar-brand pull-right"
href=
"/admin/"
style=
"color: white; font-size: 10px;"
><i
class=
"
icon
-cogs"
></i>
{% trans "Admin" %}
</a>
<a
class=
"navbar-brand pull-right"
href=
"/network/"
style=
"color: white; font-size: 10px;"
><i
class=
"
fa fa
-globe"
></i>
{% trans "Network" %}
</a>
<a
class=
"navbar-brand pull-right"
href=
"/admin/"
style=
"color: white; font-size: 10px;"
><i
class=
"
fa fa
-cogs"
></i>
{% trans "Admin" %}
</a>
{% endif %}
{% else %}
<a
class=
"navbar-brand pull-right"
href=
"{% url "
login
"
%}?
next=
{%
url
"
dashboard
.
index
"
%}"
style=
"color: white; font-size: 10px;"
><i
class=
"
icon
-sign-in"
></i>
{% trans "Log in " %}
</a>
<a
class=
"navbar-brand pull-right"
href=
"{% url "
login
"
%}?
next=
{%
url
"
dashboard
.
index
"
%}"
style=
"color: white; font-size: 10px;"
><i
class=
"
fa fa
-sign-in"
></i>
{% trans "Log in " %}
</a>
{% endif %}
{% endblock %}
...
...
circle/dashboard/templates/dashboard/group-detail.html
View file @
53f0b4ad
...
...
@@ -6,9 +6,9 @@
<div
class=
"body-content"
>
<div
class=
"page-header"
>
<div
class=
"pull-right"
style=
"padding-top: 15px;"
>
<a
title=
"{% trans "
Rename
"
%}"
href=
"#"
class=
"btn btn-default btn-xs group-details-rename-button"
><i
class=
"
icon
-pencil"
></i></a>
<a
title=
"{% trans "
Delete
"
%}"
data-group-pk=
"{{ group.pk }}"
class=
"btn btn-default btn-xs real-link group-delete"
href=
"{% url "
dashboard
.
views
.
delete-group
"
pk=
group.pk
%}"
><i
class=
"
icon
-trash"
></i></a>
<a
title=
"{% trans "
Help
"
%}"
href=
"#"
class=
"btn btn-default btn-xs group-details-help-button"
><i
class=
"
icon
-question"
></i></a>
<a
title=
"{% trans "
Rename
"
%}"
href=
"#"
class=
"btn btn-default btn-xs group-details-rename-button"
><i
class=
"
fa fa
-pencil"
></i></a>
<a
title=
"{% trans "
Delete
"
%}"
data-group-pk=
"{{ group.pk }}"
class=
"btn btn-default btn-xs real-link group-delete"
href=
"{% url "
dashboard
.
views
.
delete-group
"
pk=
group.pk
%}"
><i
class=
"
fa fa
-trash"
></i></a>
<a
title=
"{% trans "
Help
"
%}"
href=
"#"
class=
"btn btn-default btn-xs group-details-help-button"
><i
class=
"
fa fa
-question"
></i></a>
</div>
<h1>
<div
id=
"group-details-rename"
>
...
...
@@ -62,32 +62,32 @@
{% for i in users %}
<tr>
<td>
<i
class=
"
icon
-user"
></i>
<i
class=
"
fa fa
-user"
></i>
</td>
<td>
<a
href=
"{% url "
dashboard
.
views
.
profile
"
username=
i.username
%}"
title=
"{{ i.username }}"
>
{% include "dashboard/_display-name.html" with user=i show_org=True %}
</a>
</td>
<td>
<a
data-group_pk=
"{{ group.pk }}"
data-member_pk=
"{{i.pk}}"
href=
"{% url "
dashboard
.
views
.
remove-user
"
member_pk=
i.pk
group_pk=
group.pk
%}"
class=
"real-link delete-from-group btn btn-link btn-xs"
><i
class=
"
icon-remove
"
><span
class=
"sr-only"
>
{% trans "remove" %}
</span></i></a>
<a
data-group_pk=
"{{ group.pk }}"
data-member_pk=
"{{i.pk}}"
href=
"{% url "
dashboard
.
views
.
remove-user
"
member_pk=
i.pk
group_pk=
group.pk
%}"
class=
"real-link delete-from-group btn btn-link btn-xs"
><i
class=
"
fa fa-times
"
><span
class=
"sr-only"
>
{% trans "remove" %}
</span></i></a>
</td>
</tr>
{% endfor %}
{% for i in future_users %}
<tr>
<td>
<i
class=
"
icon
-user text-muted"
></i>
<i
class=
"
fa fa
-user text-muted"
></i>
</td>
<td>
{{ i.org_id }}
</td>
<td>
<a
href=
"{% url "
dashboard
.
views
.
remove-future-user
"
member_org_id=
i.org_id
group_pk=
group.pk
%}"
class=
"real-link btn-link btn-xs"
>
<i
class=
"
icon-remove
"
><span
class=
"sr-only"
>
{% trans "remove" %}
</span></i></a>
<i
class=
"
fa fa-times
"
><span
class=
"sr-only"
>
{% trans "remove" %}
</span></i></a>
</td>
</tr>
{% endfor %}
<tr>
<td><i
class=
"
icon
-plus"
></i></td>
<td><i
class=
"
fa fa
-plus"
></i></td>
<td
colspan=
"2"
>
<input
type=
"text"
class=
"form-control"
name=
"list-new-name"
placeholder=
"{% trans "
Name
of
user
"
%}"
>
...
...
@@ -115,7 +115,7 @@
{% for i in acl.users %}
<tr>
<td>
<i
class=
"
icon
-user"
></i>
<i
class=
"
fa fa
-user"
></i>
</td>
<td>
<a
href=
"{% url "
dashboard
.
views
.
profile
"
username=
i.user.username
%}"
title=
"{{ i.user.username }}"
...
...
@@ -128,14 +128,14 @@
{% endfor %}
</select>
</td>
<td
class=
"user-remove"
><a
data-group_pk=
"{{ group.pk }}"
data-member_pk=
"{{i.user.pk }}"
href=
"{% url "
dashboard
.
views
.
remove-acluser
"
member_pk=
i.user.pk
group_pk=
group.pk
%}"
class=
"real-link delete-from-group btn btn-link btn-xs"
><i
class=
"
icon-remove
"
><span
class=
"sr-only"
>
{% trans "remove" %}
</span></i></a></td>
<td
class=
"user-remove"
><a
data-group_pk=
"{{ group.pk }}"
data-member_pk=
"{{i.user.pk }}"
href=
"{% url "
dashboard
.
views
.
remove-acluser
"
member_pk=
i.user.pk
group_pk=
group.pk
%}"
class=
"real-link delete-from-group btn btn-link btn-xs"
><i
class=
"
fa fa-times
"
><span
class=
"sr-only"
>
{% trans "remove" %}
</span></i></a></td>
</tr>
{% endfor %}
{% for i in acl.groups %}
<tr>
<td>
<i
class=
"
icon
-group"
></i>
<i
class=
"
fa fa
-group"
></i>
</td>
<td>
<a
href=
"{% url "
dashboard
.
views
.
group-detail
"
pk=
i.group.pk
%}"
>
{{ i.group }}
</a>
...
...
@@ -147,12 +147,12 @@
{% endfor %}
</select>
</td>
<td
class=
"user-remove"
><a
data-group_pk=
"{{ i.pk }}"
data-member_pk=
"{{i.group.pk }}"
href=
"{% url "
dashboard
.
views
.
remove-aclgroup
"
member_pk=
i.group.pk
group_pk=
group.pk
%}"
class=
"real-link delete-from-group btn btn-link btn-xs"
><i
class=
"
icon-remove
"
><span
class=
"sr-only"
>
{% trans "remove" %}
</span></i></a>
<td
class=
"user-remove"
><a
data-group_pk=
"{{ i.pk }}"
data-member_pk=
"{{i.group.pk }}"
href=
"{% url "
dashboard
.
views
.
remove-aclgroup
"
member_pk=
i.group.pk
group_pk=
group.pk
%}"
class=
"real-link delete-from-group btn btn-link btn-xs"
><i
class=
"
fa fa-times
"
><span
class=
"sr-only"
>
{% trans "remove" %}
</span></i></a>
</td>
</tr>
{% endfor %}
<tr>
<td><i
class=
"
icon
-plus"
></i></td>
<td><i
class=
"
fa fa
-plus"
></i></td>
<td>
<input
type=
"text"
class=
"form-control"
name=
"perm-new-name"
placeholder=
"{% trans "
Name
of
group
or
user
"
%}"
>
...
...
circle/dashboard/templates/dashboard/group-list.html
View file @
53f0b4ad
...
...
@@ -18,13 +18,13 @@
<div
class=
"col-md-12"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h3
class=
"no-margin"
><i
class=
"
icon
-group"
></i>
Your groups
</h3>
<h3
class=
"no-margin"
><i
class=
"
fa fa
-group"
></i>
Your groups
</h3>
</div>
<div
class=
"panel-body group-list-group-control"
>
<p>
<strong>
Group actions
</strong>
<button
id=
"group-list-group-select-all"
class=
"btn btn-info btn-xs"
>
Select all
</button>
<a
id=
"group-list-group-delete"
disabled
href=
"#"
class=
"btn btn-danger btn-xs"
><i
class=
"
icon-remove
"
></i>
Discard
</a>
<a
id=
"group-list-group-delete"
disabled
href=
"#"
class=
"btn btn-danger btn-xs"
><i
class=
"
fa fa-times
"
></i>
Discard
</a>
</p>
</div>
<div
id=
"table_container"
>
...
...
circle/dashboard/templates/dashboard/group-list/column-actions.html
View file @
53f0b4ad
<a
data-group-pk=
"{{ record.pk }}"
class=
"btn btn-danger btn-xs real-link group-delete"
href=
"{% url "
dashboard
.
views
.
delete-group
"
pk=
record.pk
%}?
next=
{{
request
.
path
}}"
><i
class=
"
icon
-trash"
></i></a>
<a
data-group-pk=
"{{ record.pk }}"
class=
"btn btn-danger btn-xs real-link group-delete"
href=
"{% url "
dashboard
.
views
.
delete-group
"
pk=
record.pk
%}?
next=
{{
request
.
path
}}"
><i
class=
"
fa fa
-trash"
></i></a>
circle/dashboard/templates/dashboard/group-list/column-admin.html
View file @
53f0b4ad
<a
id=
"group-list-rename-button"
class=
"btn btn-default btn-xs"
title
data-original-title=
"Rename"
>
<i
class=
"
icon
-pencil"
></i>
<i
class=
"
fa fa
-pencil"
></i>
</a>
circle/dashboard/templates/dashboard/group-list/test-one.html
View file @
53f0b4ad
...
...
@@ -10,10 +10,10 @@
<td>
1 month
</td>
<td>
<a
class=
"btn btn-default btn-xs"
title
data-original-title=
"Migrate"
>
<i
class=
"
icon
-truck"
></i>
<i
class=
"
fa fa
-truck"
></i>
</a>
<a
class=
"btn btn-default btn-xs"
title
data-original-title=
"Rename"
>
<i
class=
"
icon
-pencil"
></i>
<i
class=
"
fa fa
-pencil"
></i>
</a>
<a
href=
"#"
class=
"btn btn-default btn-xs vm-list-connect"
data-toggle=
"popover"
data-content=
'
...
...
@@ -39,11 +39,11 @@
</td>
<td>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-xs btn-warning nojs-dropdown-toogle dropdown-toggle"
data-toggle=
"dropdown"
>
Action
<i
class=
"
icon
-caret-down"
></i></button>
<button
type=
"button"
class=
"btn btn-xs btn-warning nojs-dropdown-toogle dropdown-toggle"
data-toggle=
"dropdown"
>
Action
<i
class=
"
fa fa
-caret-down"
></i></button>
<ul
class=
"nojs-dropdown-menu dropdown-menu"
role=
"menu"
>
<li><a
href=
"#"
><i
class=
"
icon
-refresh"
></i>
Reboot
</a></li>
<li><a
href=
"#"
><i
class=
"
icon
-off"
></i>
Shutdown
</a></li>
<li><a
href=
"#"
><i
class=
"
icon-remove
"
></i>
Discard
</a></li>
<li><a
href=
"#"
><i
class=
"
fa fa
-refresh"
></i>
Reboot
</a></li>
<li><a
href=
"#"
><i
class=
"
fa fa
-off"
></i>
Shutdown
</a></li>
<li><a
href=
"#"
><i
class=
"
fa fa-times
"
></i>
Discard
</a></li>
</ul>
</div>
</td>
...
...
circle/dashboard/templates/dashboard/index-files.html
View file @
53f0b4ad
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<ul
class=
"list-inline pull-right"
>
<li><a
href=
"#vm-graph-view"
class=
"btn btn-default btn-xs"
><i
class=
"
icon
-dashboard"
></i></a></li>
<li><a
href=
"#vm-list-view"
class=
"btn btn-default btn-xs"
><i
class=
"
icon
-list"
></i></a></li>
<li><a
href=
"#vm-graph-view"
class=
"btn btn-default btn-xs"
><i
class=
"
fa fa
-dashboard"
></i></a></li>
<li><a
href=
"#vm-list-view"
class=
"btn btn-default btn-xs"
><i
class=
"
fa fa
-list"
></i></a></li>
</ul>
<h3
class=
"no-margin"
><i
class=
"
icon
-briefcase"
></i>
Files
<h3
class=
"no-margin"
><i
class=
"
fa fa
-briefcase"
></i>
Files
</h3>
</div>
<div
class=
"list-group"
id=
"vm-list-view"
>
<a
href=
"#"
class=
"list-group-item"
>
<i
class=
"
icon-file"
></i>
ALMA
<div
class=
"pull-right"
><i
class=
"icon
-download-alt "
></i></div>
<i
class=
"
fa fa-file"
></i>
ALMA
<div
class=
"pull-right"
><i
class=
"fa fa
-download-alt "
></i></div>
</a>
<a
href=
"#"
class=
"list-group-item"
>
<i
class=
"
icon-file-text"
></i>
ALMA.docx
<div
class=
"pull-right"
><i
class=
"icon
-download-alt "
></i></div>
<i
class=
"
fa fa-file-text"
></i>
ALMA.docx
<div
class=
"pull-right"
><i
class=
"fa fa
-download-alt "
></i></div>
</a>
<a
href=
"#"
class=
"list-group-item"
>
<i
class=
"
icon-file-text"
></i>
ALMA.docx
<div
class=
"pull-right"
><i
class=
"icon
-download-alt "
></i></div>
<i
class=
"
fa fa-file-text"
></i>
ALMA.docx
<div
class=
"pull-right"
><i
class=
"fa fa
-download-alt "
></i></div>
</a>
<a
href=
"#"
class=
"list-group-item"
>
<i
class=
"
icon-file-text"
></i>
ALMA.docx
<div
class=
"pull-right"
><i
class=
"icon
-download-alt "
></i></div>
<i
class=
"
fa fa-file-text"
></i>
ALMA.docx
<div
class=
"pull-right"
><i
class=
"fa fa
-download-alt "
></i></div>
</a>
<a
href=
"#"
class=
"list-group-item"
>
<i
class=
"
icon-file-text"
></i>
ALMA.docx
<div
class=
"pull-right"
><i
class=
"icon
-download-alt "
></i></div>
<i
class=
"
fa fa-file-text"
></i>
ALMA.docx
<div
class=
"pull-right"
><i
class=
"fa fa
-download-alt "
></i></div>
</a>
<div
href=
"#"
class=
"list-group-item list-group-footer text-right"
>
<p>
<a
class=
"btn btn-primary btn-xs"
><i
class=
"
icon-chevron-sign
-right"
></i>
show more
</a>
<a
class=
"btn btn-success btn-xs"
><i
class=
"
icon
-upload-alt"
></i>
upload
</a>
<a
class=
"btn btn-primary btn-xs"
><i
class=
"
fa fa-chevron-circle
-right"
></i>
show more
</a>
<a
class=
"btn btn-success btn-xs"
><i
class=
"
fa fa
-upload-alt"
></i>
upload
</a>
</p>
</div>
</div>
...
...
circle/dashboard/templates/dashboard/index-groups.html
View file @
53f0b4ad
...
...
@@ -2,16 +2,16 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<div
class=
"pull-right toolbar"
>
<span
class=
"btn btn-default btn-xs infobtn"
title=
"{% trans "
List
of
groups
that
you
have
access
to
."
%}"
><i
class=
"
icon-info-sign
"
></i></span>
<span
class=
"btn btn-default btn-xs infobtn"
title=
"{% trans "
List
of
groups
that
you
have
access
to
."
%}"
><i
class=
"
fa fa-info-circle
"
></i></span>
</div>
<h3
class=
"no-margin"
><i
class=
"
icon
-group"
></i>
{% trans "Groups" %}
</h3>
<h3
class=
"no-margin"
><i
class=
"
fa fa
-group"
></i>
{% trans "Groups" %}
</h3>
</div>
<div
class=
"list-group"
id=
"vm-list-view"
>
<div
id=
"dashboard-group-list"
>
{% for i in groups %}
<a
href=
"{% url "
dashboard
.
views
.
group-detail
"
pk=
i.pk
%}"
class=
"list-group-item real-link
{% if forloop.last and groups|length < 5 %} list-group-item-last{% endif %}"
>
<i
class=
"
icon
-group"
></i>
{{ i.name }}
<i
class=
"
fa fa
-group"
></i>
{{ i.name }}
</a>
{% endfor %}
</div>
...
...
@@ -20,12 +20,12 @@
<div
class=
"col-sm-6 col-xs-6 input-group input-group-sm"
>
<input
id=
"dashboard-group-search-input"
type=
"text"
class=
"form-control"
placeholder=
"{% trans "
Search
..."
%}"
/>
<div
class=
"input-group-btn"
>
<button
type=
"submit"
class=
"form-control btn btn-primary"
><i
class=
"
icon
-search"
></i></button>
<button
type=
"submit"
class=
"form-control btn btn-primary"
><i
class=
"
fa fa
-search"
></i></button>
</div>
</div>
<div
class=
"col-sm-6 text-right"
>
<a
class=
"btn btn-primary btn-xs"
href=
"{% url "
dashboard
.
views
.
group-list
"
%}"
>
<i
class=
"
icon-chevron-sign
-right"
></i>
<i
class=
"
fa fa-chevron-circle
-right"
></i>
{% if more_groups > 0 %}
{% blocktrans count more=more_groups %}
<strong>
{{ more }}
</strong>
more
...
...
@@ -36,7 +36,7 @@
{% trans "list" %}
{% endif %}
</a>
<a
class=
"btn btn-success btn-xs group-create"
href=
"{% url "
dashboard
.
views
.
group-create
"
%}"
><i
class=
"
icon-plus-sign
"
></i>
{% trans "new" %}
</a>
<a
class=
"btn btn-success btn-xs group-create"
href=
"{% url "
dashboard
.
views
.
group-create
"
%}"
><i
class=
"
fa fa-plus-circle
"
></i>
{% trans "new" %}
</a>
</div>
</div>
</div>
...
...
circle/dashboard/templates/dashboard/index-nodes.html
View file @
53f0b4ad
...
...
@@ -3,14 +3,14 @@
<div
class=
"panel-heading"
>
<div
class=
"pull-right toolbar"
>
<div
class=
"btn-group"
>
<a
href=
"#index-graph-view"
data-index-box=
"node"
class=
"btn btn-default btn-xs"
><i
class=
"
icon
-dashboard"
></i></a>
<a
href=
"#index-list-view"
data-index-box=
"node"
class=
"btn btn-default btn-xs disabled"
><i
class=
"
icon
-list"
></i></a>
<a
href=
"#index-graph-view"
data-index-box=
"node"
class=
"btn btn-default btn-xs"
><i
class=
"
fa fa
-dashboard"
></i></a>
<a
href=
"#index-list-view"
data-index-box=
"node"
class=
"btn btn-default btn-xs disabled"
><i
class=
"
fa fa
-list"
></i></a>
</div>
<span
class=
"btn btn-default btn-xs infobtn"
title=
"{% trans "
List
of
compute
nodes
,
also
called
worker
nodes
or
hypervisors
,
which
run
the
virtual
machines
."
%}"
><i
class=
"
icon-info-sign
"
></i></span>
<span
class=
"btn btn-default btn-xs infobtn"
title=
"{% trans "
List
of
compute
nodes
,
also
called
worker
nodes
or
hypervisors
,
which
run
the
virtual
machines
."
%}"
><i
class=
"
fa fa-info-circle
"
></i></span>
</div>
<h3
class=
"no-margin"
>
<i
class=
"
icon
-sitemap"
></i>
{% trans "Nodes" %}
<i
class=
"
fa fa
-sitemap"
></i>
{% trans "Nodes" %}
</h3>
</div
>
<div
class=
"list-group"
id=
"node-list-view"
>
...
...
@@ -19,7 +19,7 @@
<a
href=
"{{ i.get_absolute_url }}"
class=
"list-group-item real-link
{% if forloop.last and nodes|length < 5 %} list-group-item-last{% endif %}"
>
<span
class=
"index-node-list-name"
>
<i
class=
"{{ i.get_status_icon }}"
title=
"{{ i.get_status_display }}"
></i>
<i
class=
"
fa
{{ i.get_status_icon }}"
title=
"{{ i.get_status_display }}"
></i>
{{ i.name }}
</span>
<div
style=
"clear: both;"
></div>
...
...
@@ -31,19 +31,19 @@
<div
class=
"col-sm-6 col-xs-6 input-group input-group-sm"
>
<input
id=
"dashboard-node-search-input"
type=
"text"
class=
"form-control"
placeholder=
"{% trans "
Search
..."
%}"
/>
<div
class=
"input-group-btn"
>
<button
type=
"submit"
class=
"form-control btn btn-primary"
title=
"search"
><i
class=
"
icon
-search"
></i></button>
<button
type=
"submit"
class=
"form-control btn btn-primary"
title=
"search"
><i
class=
"
fa fa
-search"
></i></button>
</div>
</div>
<div
class=
"col-sm-6 text-right"
>
<a
class=
"btn btn-primary btn-xs"
href=
"{% url "
dashboard
.
views
.
node-list
"
%}"
>
<i
class=
"
icon-chevron-sign
-right"
></i>
<i
class=
"
fa fa-chevron-circle
-right"
></i>
{% if more_nodes > 0 %}
{% blocktrans with count=more_nodes %}
<strong>
{{count}}
</strong>
more{% endblocktrans %}
{% else %}
{% trans "list" %}
{% endif %}
</a>
<a
class=
"btn btn-success btn-xs node-create"
href=
"{% url "
dashboard
.
views
.
node-create
"
%}"
><i
class=
"
icon-plus-sign
"
></i>
{% trans "new" %}
</a>
<a
class=
"btn btn-success btn-xs node-create"
href=
"{% url "
dashboard
.
views
.
node-create
"
%}"
><i
class=
"
fa fa-plus-circle
"
></i>
{% trans "new" %}
</a>
</div>
</div>
</div>
...
...
@@ -56,7 +56,7 @@
<ul
class=
"list-inline"
id=
"dashboard-node-taglist"
>
{% for i in nodes %}
<a
href=
"{{ i.get_absolute_url }}"
class=
"label {{i.get_status_label}}"
>
<i
class=
"{{ i.get_status_icon }}"
title=
"{{ i.get_status_display }}"
></i>
{{ i.name }}
</a>
<i
class=
"
fa
{{ i.get_status_icon }}"
title=
"{{ i.get_status_display }}"
></i>
{{ i.name }}
</a>
{% endfor %}
</ul>
...
...
@@ -65,10 +65,10 @@
<div
class=
"col-sm-6 text-right pull-right"
>
{% if more_nodes >= 0 %}
<a
class=
"btn btn-primary btn-xs"
href=
"{% url "
dashboard
.
views
.
node-list
"
%}"
>
<i
class=
"
icon-chevron-sign
-right"
></i>
{% blocktrans with count=more_nodes %}
<strong>
{{count}}
</strong>
more{% endblocktrans %}
<i
class=
"
fa fa-chevron-circle
-right"
></i>
{% blocktrans with count=more_nodes %}
<strong>
{{count}}
</strong>
more{% endblocktrans %}
</a>
{% endif %}
<a
class=
"btn btn-success btn-xs node-create"
href=
"{% url "
dashboard
.
views
.
node-create
"
%}"
><i
class=
"
icon-plus-sign
"
></i>
{% trans "new" %}
</a>
<a
class=
"btn btn-success btn-xs node-create"
href=
"{% url "
dashboard
.
views
.
node-create
"
%}"
><i
class=
"
fa fa-plus-circle
"
></i>
{% trans "new" %}
</a>
</div>
</div>
</div>
...
...
circle/dashboard/templates/dashboard/index-templates.html
View file @
53f0b4ad
...
...
@@ -2,9 +2,9 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<span
class=
"btn btn-default btn-xs infobtn pull-right"
title=
"{% trans "
List
of
VM
templates
that
are
available
for
you
.
You
can
create
new
ones
from
scratch
or
customize
existing
ones
(
preferred
)."
%}"
>
<i
class=
"
icon-info-sign
"
></i>
<i
class=
"
fa fa-info-circle
"
></i>
</span>
<h3
class=
"no-margin"
><i
class=
"
icon
-puzzle-piece"
></i>
{% trans "Templates" %}
<h3
class=
"no-margin"
><i
class=
"
fa fa
-puzzle-piece"
></i>
{% trans "Templates" %}
</h3>
</div>
<div
class=
"list-group"
id=
"dashboard-template-list"
>
...
...
@@ -13,10 +13,10 @@
<a
href=
"{% url "
dashboard
.
views
.
template-detail
"
pk=
t.pk
%}"
class=
"list-group-item
{% if forloop.last and templates|length < 5 %} list-group-item-last{% endif %}"
>
<span
class=
"index-template-list-name"
>
<i
class=
"
icon
-{{ t.os_type }}"
></i>
{{ t.name }}
<i
class=
"
fa fa
-{{ t.os_type }}"
></i>
{{ t.name }}
</span>
<small
class=
"text-muted index-template-list-system"
>
{{ t.system }}
</small>
<div
class=
"pull-right vm-create"
data-template=
"{{ t.pk }}"
><i
title=
"{% trans "
Start
vm
instance
"
%}"
class=
"
icon
-play"
></i></div>
<div
class=
"pull-right vm-create"
data-template=
"{{ t.pk }}"
><i
title=
"{% trans "
Start
vm
instance
"
%}"
class=
"
fa fa
-play"
></i></div>
<div
class=
"clearfix"
></div>
</a>
{% empty %}
...
...
@@ -30,10 +30,10 @@
<div
href=
"#"
class=
"list-group-item list-group-footer text-right"
>
<p>
<a
href=
"{% url "
dashboard
.
views
.
template-list
"
%}"
class=
"btn btn-primary btn-xs"
>
<i
class=
"
icon-chevron-sign
-right"
></i>
{% trans "show all" %}
<i
class=
"
fa fa-chevron-circle
-right"
></i>
{% trans "show all" %}
</a>
<a
href=
"{% url "
dashboard
.
views
.
template-choose
"
%}"
class=
"btn btn-success btn-xs template-choose"
>
<i
class=
"
icon-plus-sign
"
></i>
{% trans "new" %}
<i
class=
"
fa fa-plus-circle
"
></i>
{% trans "new" %}
</a>
</p>
</div>
...
...
circle/dashboard/templates/dashboard/index-vm.html
View file @
53f0b4ad
...
...
@@ -3,13 +3,13 @@
<div
class=
"panel-heading"
>
<div
class=
"pull-right toolbar"
>
<div
class=
"btn-group"
>
<a
href=
"#index-graph-view"
data-index-box=
"vm"
class=
"btn btn-default btn-xs"
><i
class=
"
icon
-dashboard"
></i></a>
<a
href=
"#index-list-view"
data-index-box=
"vm"
class=
"btn btn-default btn-xs disabled"
><i
class=
"
icon
-list"
></i></a>
<a
href=
"#index-graph-view"
data-index-box=
"vm"
class=
"btn btn-default btn-xs"
><i
class=
"
fa fa
-dashboard"
></i></a>
<a
href=
"#index-list-view"
data-index-box=
"vm"
class=
"btn btn-default btn-xs disabled"
><i
class=
"
fa fa
-list"
></i></a>
</div>
<span
class=
"btn btn-default btn-xs infobtn"
title=
"{% trans "
List
of
your
current
virtual
machines
.
Favourited
ones
are
ahead
of
others
."
%}"
><i
class=
"
icon-info-sign
"
></i></span>
<span
class=
"btn btn-default btn-xs infobtn"
title=
"{% trans "
List
of
your
current
virtual
machines
.
Favourited
ones
are
ahead
of
others
."
%}"
><i
class=
"
fa fa-info-circle
"
></i></span>
</div>
<h3
class=
"no-margin"
>
<i
class=
"
icon
-desktop"
></i>
{% trans "Virtual machines" %}
<i
class=
"
fa fa
-desktop"
></i>
{% trans "Virtual machines" %}
</h3>
</div>
<div
class=
"list-group"
id=
"vm-list-view"
>
...
...
@@ -18,15 +18,15 @@
<a
href=
"{{ i.get_absolute_url }}"
class=
"list-group-item
{% if forloop.last and instances|length < 5 %} list-group-item-last{% endif %}"
>
<span
class=
"index-vm-list-name"
>
<i
class=
"{{ i.get_status_icon }}"
title=
"{{ i.get_status_display }}"
></i>
<i
class=
"
fa
{{ i.get_status_icon }}"
title=
"{{ i.get_status_display }}"
></i>
{{ i.name }}
</span>
<small
class=
"text-muted"
>
{{ i.primary_host.hostname }}
</small>
<div
class=
"pull-right dashboard-vm-favourite"
data-vm=
"{{ i.pk }}"
>
{% if i.fav %}
<i
class=
"
icon
-star text-primary title-favourite"
title=
"{% trans "
Unfavourite
"
%}"
></i>
<i
class=
"
fa fa
-star text-primary title-favourite"
title=
"{% trans "
Unfavourite
"
%}"
></i>
{% else %}
<i
class=
"
icon
-star-empty text-primary title-favourite"
title=
"{% trans "
Mark
as
favorite
"
%}"
></i>
<i
class=
"
fa fa
-star-empty text-primary title-favourite"
title=
"{% trans "
Mark
as
favorite
"
%}"
></i>
{% endif %}
</div>
<div
style=
"clear: both;"
></div>
...
...
@@ -47,12 +47,12 @@
<div
class=
"col-sm-6 col-xs-6 input-group input-group-sm"
>
<input
id=
"dashboard-vm-search-input"
type=
"text"
class=
"form-control"
placeholder=
"{% trans "
Search
..."
%}"
/>
<div
class=
"input-group-btn"
>
<button
type=
"submit"
class=
"form-control btn btn-primary"
><i
class=
"
icon
-search"
></i></button>
<button
type=
"submit"
class=
"form-control btn btn-primary"
><i
class=
"
fa fa
-search"
></i></button>
</div>
</div>
<div
class=
"col-sm-6 text-right"
>
<a
class=
"btn btn-primary btn-xs"
href=
"{% url "
dashboard
.
views
.
vm-list
"
%}"
>
<i
class=
"
icon-chevron-sign
-right"
></i>
<i
class=
"
fa fa-chevron-circle
-right"
></i>
{% if more_instances > 0 %}
{% blocktrans count counter=more_instances %}
<strong>
{{ counter }}
</strong>
more
...
...
@@ -63,7 +63,7 @@
{% trans "list" %}
{% endif %}
</a>
<a
class=
"btn btn-success btn-xs vm-create"
href=
"{% url "
dashboard
.
views
.
vm-create
"
%}"
><i
class=
"
icon-plus-sign
"
></i>
{% trans "new" %}
</a>
<a
class=
"btn btn-success btn-xs vm-create"
href=
"{% url "
dashboard
.
views
.
vm-create
"
%}"
><i
class=
"
fa fa-plus-circle
"
></i>
{% trans "new" %}
</a>
</div>
</div>
</div>
...
...
@@ -77,7 +77,7 @@
{% for vm in running_vms %}
<li
style=
"display: inline-block; padding: 2px;"
>
<a
href=
"{{vm.get_absolute_url}}"
title=
"{{vm.primary_host.get_fqdn}}"
class=
"label label-success"
>
<i
class=
"{{vm.get_status_icon}}"
></i>
{{vm.name}}
<i
class=
"
fa
{{vm.get_status_icon}}"
></i>
{{vm.name}}
</a>
</li>
{% endfor %}
...
...
@@ -87,7 +87,7 @@
<div
class=
"clearfix"
></div>
<div>
<a
style=
"float: right; margin-top: 17px;"
href=
"{% url "
dashboard
.
views
.
vm-list
"
%}"
class=
"btn btn-primary btn-xs"
>
<i
class=
"
icon-chevron-sign
-right"
></i>
<i
class=
"
fa fa-chevron-circle
-right"
></i>
{% blocktrans count counter=instances|length|add:more_instances %}
<strong>
{{ counter }}
</strong>
machine total
{% plural %}
...
...
circle/dashboard/templates/dashboard/lease-create.html
View file @
53f0b4ad
...
...
@@ -11,7 +11,7 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<a
class=
"pull-right btn btn-default btn-xs"
href=
"{% url "
dashboard
.
views
.
template-list
"
%}"
>
{% trans "Back" %}
</a>
<h3
class=
"no-margin"
><i
class=
"
icon
-time"
></i>
{% trans "Create lease" %}
</h3>
<h3
class=
"no-margin"
><i
class=
"
fa fa
-time"
></i>
{% trans "Create lease" %}
</h3>
</div>
<div
class=
"panel-body"
>
{% with form=form %}
...
...
circle/dashboard/templates/dashboard/lease-edit.html
View file @
53f0b4ad
...
...
@@ -10,7 +10,7 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<a
class=
"pull-right btn btn-default btn-xs"
href=
"{% url "
dashboard
.
views
.
template-list
"
%}"
>
{% trans "Back" %}
</a>
<h3
class=
"no-margin"
><i
class=
"
icon
-time"
></i>
{% trans "Edit lease" %}
</h3>
<h3
class=
"no-margin"
><i
class=
"
fa fa
-time"
></i>
{% trans "Edit lease" %}
</h3>
</div>
<div
class=
"panel-body"
>
{% with form=form %}
...
...
circle/dashboard/templates/dashboard/node-add-trait.html
View file @
53f0b4ad
...
...
@@ -16,7 +16,7 @@
<div
class=
"col-md-12"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h3
class=
"no-margin"
><i
class=
"
icon
-plus"
></i>
{% trans "Add Trait" %}
</h3>
<h3
class=
"no-margin"
><i
class=
"
fa fa
-plus"
></i>
{% trans "Add Trait" %}
</h3>
</div>
<div
class=
"panel-body"
>
{% with form=form %}
...
...
circle/dashboard/templates/dashboard/node-detail.html
View file @
53f0b4ad
...
...
@@ -7,12 +7,12 @@
<div
class=
"body-content"
>
<div
class=
"page-header"
>
<div
class=
"pull-right"
style=
"padding-top: 15px;"
>
<a
title=
"{% trans "
Rename
"
%}"
href=
"#"
class=
"btn btn-default btn-xs node-details-rename-button"
><i
class=
"
icon
-pencil"
></i></a>
<a
title=
"{% trans "
Flush
"
%}"
data-node-pk=
"{{ node.pk }}"
class=
"btn btn-default btn-xs real-link node-flush"
href=
"{% url "
dashboard
.
views
.
flush-node
"
pk=
node.pk
%}"
><i
class=
"
icon
-cloud-upload"
></i></a>
<a
title=
"{% trans "
Enable
"
%}"
style=
"display:{% if node.enabled %}none{% else %}inline-block{% endif %}"
data-node-pk=
"{{ node.pk }}"
class=
"btn btn-default btn-xs real-link node-enable"
href=
"{% url "
dashboard
.
views
.
status-node
"
pk=
node.pk
%}?
next=
{{
request
.
path
}}"
><i
class=
"
icon
-check"
></i></a>
<a
title=
"{% trans "
Disable
"
%}"
style=
"display:{% if not node.enabled %}none{% else %}inline-block{% endif %}"
data-node-pk=
"{{ node.pk }}"
class=
"btn btn-default btn-xs real-link node-enable"
href=
"{% url "
dashboard
.
views
.
status-node
"
pk=
node.pk
%}?
next=
{{
request
.
path
}}"
><i
class=
"
icon
-ban-circle"
></i></a>
<a
title=
"{% trans "
Delete
"
%}"
data-node-pk=
"{{ node.pk }}"
class=
"btn btn-default btn-xs real-link node-delete"
href=
"{% url "
dashboard
.
views
.
delete-node
"
pk=
node.pk
%}"
><i
class=
"
icon
-trash"
></i></a>
<a
title=
"{% trans "
Help
"
%}"
href=
"#"
class=
"btn btn-default btn-xs node-details-help-button"
><i
class=
"
icon
-question"
></i></a>
<a
title=
"{% trans "
Rename
"
%}"
href=
"#"
class=
"btn btn-default btn-xs node-details-rename-button"
><i
class=
"
fa fa
-pencil"
></i></a>
<a
title=
"{% trans "
Flush
"
%}"
data-node-pk=
"{{ node.pk }}"
class=
"btn btn-default btn-xs real-link node-flush"
href=
"{% url "
dashboard
.
views
.
flush-node
"
pk=
node.pk
%}"
><i
class=
"
fa fa
-cloud-upload"
></i></a>
<a
title=
"{% trans "
Enable
"
%}"
style=
"display:{% if node.enabled %}none{% else %}inline-block{% endif %}"
data-node-pk=
"{{ node.pk }}"
class=
"btn btn-default btn-xs real-link node-enable"
href=
"{% url "
dashboard
.
views
.
status-node
"
pk=
node.pk
%}?
next=
{{
request
.
path
}}"
><i
class=
"
fa fa
-check"
></i></a>
<a
title=
"{% trans "
Disable
"
%}"
style=
"display:{% if not node.enabled %}none{% else %}inline-block{% endif %}"
data-node-pk=
"{{ node.pk }}"
class=
"btn btn-default btn-xs real-link node-enable"
href=
"{% url "
dashboard
.
views
.
status-node
"
pk=
node.pk
%}?
next=
{{
request
.
path
}}"
><i
class=
"
fa fa
-ban-circle"
></i></a>
<a
title=
"{% trans "
Delete
"
%}"
data-node-pk=
"{{ node.pk }}"
class=
"btn btn-default btn-xs real-link node-delete"
href=
"{% url "
dashboard
.
views
.
delete-node
"
pk=
node.pk
%}"
><i
class=
"
fa fa
-trash"
></i></a>
<a
title=
"{% trans "
Help
"
%}"
href=
"#"
class=
"btn btn-default btn-xs node-details-help-button"
><i
class=
"
fa fa
-question"
></i></a>
</div>
<h1>
<div
id=
"node-details-rename"
>
...
...
@@ -66,19 +66,19 @@
<ul
class=
"nav nav-pills panel-heading"
>
<li
class=
"active"
>
<a
href=
"#home"
data-toggle=
"pill"
class=
"text-center"
>
<i
class=
"
icon
-compass icon-2x"
></i><br>
<i
class=
"
fa fa
-compass icon-2x"
></i><br>
{% trans "Home" %}
</a></li>
<li>
<a
href=
"#resources"
data-toggle=
"pill"
class=
"text-center"
>
<i
class=
"
icon
-tasks icon-2x"
></i><br>
<i
class=
"
fa fa
-tasks icon-2x"
></i><br>
{% trans "Resources" %}
</a></li>
<li>
<a
href=
"#virtualmachines"
data-toggle=
"pill"
class=
"text-center"
>
<i
class=
"
icon
-desktop icon-2x"
></i><br>
<i
class=
"
fa fa
-desktop icon-2x"
></i><br>
{% trans "Virtual Machines" %}
</a></li>
<li>
<a
href=
"#activity"
data-toggle=
"pill"
class=
"text-center"
>
<i
class=
"
icon
-time icon-2x"
></i><br>
<i
class=
"
fa fa
-time icon-2x"
></i><br>
{% trans "Activity" %}
</a></li>
</ul>
...
...
circle/dashboard/templates/dashboard/node-detail/_activity-timeline.html
View file @
53f0b4ad
...
...
@@ -3,7 +3,7 @@
{% for a in activities %}
<div
class=
"activity"
data-activity-id=
"{{ a.pk }}"
>
<span
class=
"timeline-icon{% if a.has_failed %} timeline-icon-failed{% endif %}"
>
<i
class=
"{% if not a.finished %} icon-refresh icon-spin {% else %}
icon
-plus{% endif %}"
></i>
<i
class=
"{% if not a.finished %} icon-refresh icon-spin {% else %}
fa fa
-plus{% endif %}"
></i>
</span>
<strong>
{{ a.get_readable_name }}
</strong>
{{ a.started|date:"Y-m-d H:i" }}, {{ a.user }}
...
...
@@ -15,7 +15,7 @@
{% if s.finished %}
{{ s.finished|time:"H:i:s" }}
{% else %}
<i
class=
"
icon
-refresh icon-spin"
class=
"sub-activity-loading-icon"
></i>
<i
class=
"
fa fa
-refresh icon-spin"
class=
"sub-activity-loading-icon"
></i>
{% endif %}
{% if s.has_failed %}
<div
class=
"label label-danger"
>
{% trans "failed" %}
</div>
...
...
circle/dashboard/templates/dashboard/node-detail/home.html
View file @
53f0b4ad
...
...
@@ -8,7 +8,7 @@
{% for t in node.traits.all %}
<div
class=
"label label-success label-tag"
style=
"display: inline-block"
>
{{ t }}
<a
data-trait-pk=
"{{ t.pk }}"
href=
"#"
class=
"node-details-remove-trait"
><i
class=
"
icon-remove
"
></i></a>
<a
data-trait-pk=
"{{ t.pk }}"
href=
"#"
class=
"node-details-remove-trait"
><i
class=
"
fa fa-times
"
></i></a>
</div>
{% endfor %}
{% else %}
...
...
circle/dashboard/templates/dashboard/node-list.html
View file @
53f0b4ad
...
...
@@ -10,7 +10,7 @@
<div
class=
"col-md-12"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h3
class=
"no-margin"
><i
class=
"
icon
-desktop"
></i>
{% trans "Compute nodes" %}
</h3>
<h3
class=
"no-margin"
><i
class=
"
fa fa
-desktop"
></i>
{% trans "Compute nodes" %}
</h3>
</div>
<div
id=
"table_container"
>
...
...
circle/dashboard/templates/dashboard/node-list/column-actions.html
View file @
53f0b4ad
{% load i18n %}
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn {{ btn_size }} btn-warning nojs-dropdown-toogle dropdown-toggle"
data-toggle=
"dropdown"
>
Action
<i
class=
"
icon
-caret-down"
></i></button>
<button
type=
"button"
class=
"btn {{ btn_size }} btn-warning nojs-dropdown-toogle dropdown-toggle"
data-toggle=
"dropdown"
>
Action
<i
class=
"
fa fa
-caret-down"
></i></button>
<ul
class=
"dropdown-menu nojs-dropdown-toogle"
role=
"menu"
>
<li><a
href=
"#"
class=
"node-details-rename-button"
><i
class=
"
icon
-pencil"
></i>
{% trans "Rename" %}
</a></li>
<li><a
data-node-pk=
"{{ record.pk }}"
class=
"real-link node-flush"
href=
"{% url "
dashboard
.
views
.
flush-node
"
pk=
record.pk
%}"
><i
class=
"
icon
-cloud-upload"
></i>
{% trans "Flush" %}
</a>
<li><a
style=
{%
if
record
.
enabled
%}"
display:none
"{%
else
%}"
display:block
"{%
endif
%}
data-node-pk=
"{{ record.pk }}"
class=
"real-link node-enable"
href=
"{% url "
dashboard
.
views
.
status-node
"
pk=
record.pk
%}?
next=
{{
request
.
path
}}"
><i
class=
"
icon
-check"
></i>
{% trans "Enable" %}
</a>
<a
style=
{%
if
record
.
enabled
%}"
display:block
"{%
else
%}"
display:none
"{%
endif
%}
data-node-pk=
"{{ record.pk }}"
class=
"real-link node-enable"
href=
"{% url "
dashboard
.
views
.
status-node
"
pk=
record.pk
%}?
next=
{{
request
.
path
}}"
><i
class=
"
icon-remove
"
></i>
{% trans "Disable" %}
</a></li>
<li><a
data-node-pk=
"{{ record.pk }}"
class=
"real-link node-delete"
href=
"{% url "
dashboard
.
views
.
delete-node
"
pk=
record.pk
%}?
next=
{{
request
.
path
}}"
><i
class=
"
icon
-trash"
></i>
{% trans "Delete" %}
</a></li>
<li><a
href=
"#"
class=
"node-details-rename-button"
><i
class=
"
fa fa
-pencil"
></i>
{% trans "Rename" %}
</a></li>
<li><a
data-node-pk=
"{{ record.pk }}"
class=
"real-link node-flush"
href=
"{% url "
dashboard
.
views
.
flush-node
"
pk=
record.pk
%}"
><i
class=
"
fa fa
-cloud-upload"
></i>
{% trans "Flush" %}
</a>
<li><a
style=
{%
if
record
.
enabled
%}"
display:none
"{%
else
%}"
display:block
"{%
endif
%}
data-node-pk=
"{{ record.pk }}"
class=
"real-link node-enable"
href=
"{% url "
dashboard
.
views
.
status-node
"
pk=
record.pk
%}?
next=
{{
request
.
path
}}"
><i
class=
"
fa fa
-check"
></i>
{% trans "Enable" %}
</a>
<a
style=
{%
if
record
.
enabled
%}"
display:block
"{%
else
%}"
display:none
"{%
endif
%}
data-node-pk=
"{{ record.pk }}"
class=
"real-link node-enable"
href=
"{% url "
dashboard
.
views
.
status-node
"
pk=
record.pk
%}?
next=
{{
request
.
path
}}"
><i
class=
"
fa fa-times
"
></i>
{% trans "Disable" %}
</a></li>
<li><a
data-node-pk=
"{{ record.pk }}"
class=
"real-link node-delete"
href=
"{% url "
dashboard
.
views
.
delete-node
"
pk=
record.pk
%}?
next=
{{
request
.
path
}}"
><i
class=
"
fa fa
-trash"
></i>
{% trans "Delete" %}
</a></li>
</ul>
</div>
circle/dashboard/templates/dashboard/node-list/column-admin.html
View file @
53f0b4ad
{% load i18n %}
<a
class=
"btn btn-default btn-xs"
title=
"{% trans "
Flush
"
%}"
>
<i
class=
"
icon
-cloud-upload"
></i>
<i
class=
"
fa fa
-cloud-upload"
></i>
</a>
<a
id=
"node-list-rename-button"
class=
"btn btn-default btn-xs"
title=
"{% trans "
Rename
"
%}"
>
<i
class=
"
icon
-pencil"
></i>
<i
class=
"
fa fa
-pencil"
></i>
</a>
circle/dashboard/templates/dashboard/node-list/column-monitor.html
View file @
53f0b4ad
{% load sizefieldtags %}
{% load i18n %}
<i
class=
"
icon
-gears"
></i>
{% trans "CPU" %}
<i
class=
"
fa fa
-gears"
></i>
{% trans "CPU" %}
<div
class=
"progress pull-right"
>
<div
class=
"progress-bar progress-bar-success"
role=
"progressbar"
aria-valuenow=
"{{ record.cpu_usage|stringformat:"
f
"
}}"
...
...
@@ -17,7 +17,7 @@
</div>
</div>
<br>
<i
class=
"
icon
-ticket"
></i>
{% trans "Memory" %}
<i
class=
"
fa fa
-ticket"
></i>
{% trans "Memory" %}
<div
class=
"progress pull-right"
>
<div
class=
"progress-bar"
role=
"progressbar"
aria-valuenow=
"{{ record.ram_usage|stringformat:"
f
"
}}"
...
...
circle/dashboard/templates/dashboard/node-list/test-one.html
View file @
53f0b4ad
...
...
@@ -10,10 +10,10 @@
<td>
1 month
</td>
<td>
<a
class=
"btn btn-default btn-xs"
title
data-original-title=
"Migrate"
>
<i
class=
"
icon
-truck"
></i>
<i
class=
"
fa fa
-truck"
></i>
</a>
<a
class=
"btn btn-default btn-xs"
title
data-original-title=
"Rename"
>
<i
class=
"
icon
-pencil"
></i>
<i
class=
"
fa fa
-pencil"
></i>
</a>
<a
href=
"#"
class=
"btn btn-default btn-xs vm-list-connect"
data-toggle=
"popover"
data-content=
'
...
...
@@ -39,11 +39,11 @@
</td>
<td>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-xs btn-warning nojs-dropdown-toogle dropdown-toggle"
data-toggle=
"dropdown"
>
Action
<i
class=
"
icon
-caret-down"
></i></button>
<button
type=
"button"
class=
"btn btn-xs btn-warning nojs-dropdown-toogle dropdown-toggle"
data-toggle=
"dropdown"
>
Action
<i
class=
"
fa fa
-caret-down"
></i></button>
<ul
class=
"nojs-dropdown-menu dropdown-menu"
role=
"menu"
>
<li><a
href=
"#"
><i
class=
"
icon
-refresh"
></i>
Reboot
</a></li>
<li><a
href=
"#"
><i
class=
"
icon
-off"
></i>
Shutdown
</a></li>
<li><a
href=
"#"
><i
class=
"
icon-remove
"
></i>
Discard
</a></li>
<li><a
href=
"#"
><i
class=
"
fa fa
-refresh"
></i>
Reboot
</a></li>
<li><a
href=
"#"
><i
class=
"
fa fa
-off"
></i>
Shutdown
</a></li>
<li><a
href=
"#"
><i
class=
"
fa fa-times
"
></i>
Discard
</a></li>
</ul>
</div>
</td>
...
...
circle/dashboard/templates/dashboard/notifications.html
View file @
53f0b4ad
...
...
@@ -6,7 +6,7 @@
<div
class=
"col-md-12"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h3
class=
"no-margin"
><i
class=
"
icon
-desktop"
></i>
{% trans "Notifications" %}
</h3>
<h3
class=
"no-margin"
><i
class=
"
fa fa
-desktop"
></i>
{% trans "Notifications" %}
</h3>
</div>
<div
class=
"panel-body"
>
<ul
style=
"list-style: none;"
>
...
...
circle/dashboard/templates/dashboard/operate.html
View file @
53f0b4ad
...
...
@@ -20,7 +20,7 @@ Do you want to do the following operation on <a href="{{url}}">{{obj}}</a>:
<a
class=
"btn btn-default"
href=
"{{object.get_absolute_url}}"
data-dismiss=
"modal"
>
{% trans "Cancel" %}
</a>
<button
class=
"btn btn-{{ opview.effect }}"
type=
"submit"
id=
"op-form-send"
>
{% if opview.icon %}
<i
class=
"
icon
-{{opview.icon}}"
></i>
{% endif %}{{ op|capfirst }}
{% if opview.icon %}
<i
class=
"
fa fa
-{{opview.icon}}"
></i>
{% endif %}{{ op|capfirst }}
</button>
</div>
</form>
circle/dashboard/templates/dashboard/profile.html
View file @
53f0b4ad
...
...
@@ -12,7 +12,7 @@
<div
class=
"panel-heading"
>
<a
class=
"pull-right btn btn-default btn-xs"
href=
"{% url "
dashboard
.
index
"
%}"
>
{% trans "Back" %}
</a>
<h3
class=
"no-margin"
>
<i
class=
"
icon
-user"
></i>
<i
class=
"
fa fa
-user"
></i>
{% include "dashboard/_display-name.html" with user=profile show_org=True %}
</h3>
</div>
...
...
@@ -47,7 +47,7 @@
{% if perm_group_list %}
<hr
/>
<h4>
<i
class=
"
icon
-group"
></i>
{% trans "Groups" %}
<i
class=
"
fa fa
-group"
></i>
{% trans "Groups" %}
</h4>
<ul
class=
"dashboard-profile-group-list"
>
{% for g in groups %}
...
...
@@ -61,14 +61,14 @@
<hr
/>
<h4>
<i
class=
"
icon
-desktop"
></i>
<i
class=
"
fa fa
-desktop"
></i>
{% trans "Virtual machines owned by the user" %} ({{ instances_owned|length }})
</h4>
<ul
class=
"dashboard-profile-vm-list"
>
{% for i in instances_owned %}
<li>
<a
href=
"{{ i.get_absolute_url }}"
>
<i
class=
"
icon
-li {{ i.get_status_icon }}"
></i>
<i
class=
"
fa fa
-li {{ i.get_status_icon }}"
></i>
{{ i }}
</a>
</li>
...
...
@@ -82,14 +82,14 @@
<hr
/>
<h4>
<i
class=
"
icon
-desktop"
></i>
<i
class=
"
fa fa
-desktop"
></i>
{% trans "Virtual machines with access" %} ({{ instances_with_access|length }})
</h4>
<ul
class=
"dashboard-profile-vm-list"
>
{% for i in instances_with_access %}
<li>
<a
href=
"{{ i.get_absolute_url }}"
>
<i
class=
"
icon
-li {{ i.get_status_icon }}"
></i>
<i
class=
"
fa fa
-li {{ i.get_status_icon }}"
></i>
{{ i }}
</a>
</li>
...
...
circle/dashboard/templates/dashboard/profile_form.html
View file @
53f0b4ad
...
...
@@ -14,7 +14,7 @@
<a
class=
"pull-right btn btn-default btn-xs"
href=
"{% url "
dashboard
.
views
.
profile
"
username=
object.user.username
%}"
>
{% trans "Go to my profile" %}
</a>
<h3
class=
"no-margin"
><i
class=
"
icon
-desktop"
></i>
{% trans "My profile" %}
</h3>
<h3
class=
"no-margin"
><i
class=
"
fa fa
-desktop"
></i>
{% trans "My profile" %}
</h3>
</div>
<div
class=
"panel-body"
>
<div
class=
"row"
>
...
...
@@ -55,9 +55,9 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<a
href=
"{% url "
dashboard
.
views
.
userkey-create
"
%}"
class=
"pull-right btn btn-success btn-xs"
style=
"margin-right: 10px;"
>
<i
class=
"
icon
-plus"
></i>
{% trans "add SSH key" %}
<i
class=
"
fa fa
-plus"
></i>
{% trans "add SSH key" %}
</a>
<h3
class=
"no-margin"
><i
class=
"
icon
-key"
></i>
{% trans "SSH public keys" %}
</h3>
<h3
class=
"no-margin"
><i
class=
"
fa fa
-key"
></i>
{% trans "SSH public keys" %}
</h3>
</div>
<div
class=
"panel-body"
>
{% render_table userkey_table %}
...
...
circle/dashboard/templates/dashboard/template-edit.html
View file @
53f0b4ad
...
...
@@ -12,7 +12,7 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<a
class=
"pull-right btn btn-default btn-xs"
href=
"{% url "
dashboard
.
views
.
template-list
"
%}"
>
{% trans "Back" %}
</a>
<h3
class=
"no-margin"
><i
class=
"
icon
-puzzle-piece"
></i>
{% trans "Edit template" %}
</h3>
<h3
class=
"no-margin"
><i
class=
"
fa fa
-puzzle-piece"
></i>
{% trans "Edit template" %}
</h3>
</div>
<div
class=
"panel-body"
>
{% with form=form %}
...
...
@@ -26,7 +26,7 @@
<div
class=
"col-md-5"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h4
class=
"no-margin"
><i
class=
"
icon
-group"
></i>
{% trans "Manage access" %}
</h4>
<h4
class=
"no-margin"
><i
class=
"
fa fa
-group"
></i>
{% trans "Manage access" %}
</h4>
</div>
<div
class=
"panel-body"
>
<form
action=
"{% url "
dashboard
.
views
.
template-acl
"
pk=
object.pk
%}"
method=
"post"
>
{% csrf_token %}
...
...
@@ -36,14 +36,14 @@
<th></th>
<th>
{% trans "Who" %}
</th>
<th>
{% trans "What" %}
</th>
<th><i
class=
"
icon-remove
"
></i></th>
<th><i
class=
"
fa fa-times
"
></i></th>
</tr>
</thead>
<tbody>
{% for i in acl.users %}
<tr>
<td>
<i
class=
"
icon
-user"
></i>
<i
class=
"
fa fa
-user"
></i>
</td>
<td>
<a
href=
"{% url "
dashboard
.
views
.
profile
"
username=
i.user.username
%}"
...
...
@@ -65,7 +65,7 @@
{% endfor %}
{% for i in acl.groups %}
<tr>
<td><i
class=
"
icon
-group"
></i></td>
<td><i
class=
"
fa fa
-group"
></i></td>
<td>
<a
href=
"{% url "
dashboard
.
views
.
group-detail
"
pk=
i.group.pk
%}"
>
{{i.group}}
...
...
@@ -83,7 +83,7 @@
</td>
</tr>
{% endfor %}
<tr><td><i
class=
"
icon
-plus"
></i></td>
<tr><td><i
class=
"
fa fa
-plus"
></i></td>
<td><input
type=
"text"
class=
"form-control"
name=
"perm-new-name"
placeholder=
"{% trans "
Name
of
group
or
user
"
%}"
></td>
<td><select
class=
"form-control"
name=
"perm-new"
>
...
...
@@ -104,7 +104,7 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h4
class=
"no-margin"
><i
class=
"
icon
-file"
></i>
{% trans "Disk list" %}
</h4>
<h4
class=
"no-margin"
><i
class=
"
fa fa
-file"
></i>
{% trans "Disk list" %}
</h4>
</div>
<div
class=
"panel-body"
>
<ul
class=
"template-disk-list"
>
...
...
circle/dashboard/templates/dashboard/template-list.html
View file @
53f0b4ad
...
...
@@ -11,9 +11,9 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<a
href=
"{% url "
dashboard
.
views
.
template-create
"
%}"
class=
"pull-right btn btn-success btn-xs"
>
<i
class=
"
icon
-plus"
></i>
{% trans "new base vm" %}
<i
class=
"
fa fa
-plus"
></i>
{% trans "new base vm" %}
</a>
<h3
class=
"no-margin"
><i
class=
"
icon
-puzzle-piece"
></i>
{% trans "Templates" %}
</h3>
<h3
class=
"no-margin"
><i
class=
"
fa fa
-puzzle-piece"
></i>
{% trans "Templates" %}
</h3>
</div>
<div
class=
"panel-body"
>
{% render_table table %}
...
...
@@ -27,9 +27,9 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<a
href=
"{% url "
dashboard
.
views
.
lease-create
"
%}"
class=
"pull-right btn btn-success btn-xs"
style=
"margin-right: 10px;"
>
<i
class=
"
icon
-plus"
></i>
{% trans "new lease" %}
<i
class=
"
fa fa
-plus"
></i>
{% trans "new lease" %}
</a>
<h3
class=
"no-margin"
><i
class=
"
icon
-time"
></i>
{% trans "Leases" %}
</h3>
<h3
class=
"no-margin"
><i
class=
"
fa fa
-time"
></i>
{% trans "Leases" %}
</h3>
</div>
<div
class=
"panel-body"
>
<div
class=
""
style=
"max-width: 600px;"
>
...
...
@@ -43,7 +43,7 @@
<div
class=
"col-md-6"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h3
class=
"no-margin"
><i
class=
"
icon
-desktop"
></i>
Placeholder
</h3>
<h3
class=
"no-margin"
><i
class=
"
fa fa
-desktop"
></i>
Placeholder
</h3>
</div>
<div
class=
"panel-body"
>
???
...
...
circle/dashboard/templates/dashboard/template-list/column-lease-actions.html
View file @
53f0b4ad
{% load i18n %}
<a
href=
"{% url "
dashboard
.
views
.
lease-detail
"
pk=
record.pk
%}"
id=
"template-list-edit-button"
class=
"btn btn-default btn-xs"
title
data-original-title=
"{% trans "
Edit
"
%}"
>
<i
class=
"
icon
-edit"
></i>
<i
class=
"
fa fa
-edit"
></i>
</a>
<a
data-lease-pk=
"{{ record.pk }}"
href=
"{% url "
dashboard
.
views
.
lease-delete
"
pk=
record.pk
%}"
class=
"btn btn-danger btn-xs lease-delete"
title=
"{% trans "
Delete
"
%}"
>
<i
class=
"
icon-remove
"
></i>
<i
class=
"
fa fa-times
"
></i>
</a>
circle/dashboard/templates/dashboard/template-list/column-template-actions.html
View file @
53f0b4ad
{% load i18n %}
<a
href=
"{% url "
dashboard
.
views
.
template-detail
"
pk=
record.pk%}"
id=
"template-list-edit-button"
class=
"btn btn-default btn-xs"
title=
"{% trans "
Edit
"
%}"
>
<i
class=
"
icon
-edit"
></i>
<i
class=
"
fa fa
-edit"
></i>
</a>
<a
data-template-pk=
"{{ record.pk }}"
href=
"{% url "
dashboard
.
views
.
template-delete
"
pk=
record.pk
%}"
class=
"btn btn-danger btn-xs template-delete"
title=
"{% trans "
Delete
"
%}"
>
<i
class=
"
icon-remove
"
></i>
<i
class=
"
fa fa-times
"
></i>
</a>
circle/dashboard/templates/dashboard/userkey-create.html
View file @
53f0b4ad
...
...
@@ -11,7 +11,7 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<a
class=
"pull-right btn btn-default btn-xs"
href=
"{% url "
dashboard
.
views
.
profile-preferences
"
%}"
>
{% trans "Back" %}
</a>
<h3
class=
"no-margin"
><i
class=
"
icon
-key"
></i>
{% trans "Create SSH public key" %}
</h3>
<h3
class=
"no-margin"
><i
class=
"
fa fa
-key"
></i>
{% trans "Create SSH public key" %}
</h3>
</div>
<div
class=
"panel-body"
>
{% crispy form %}
...
...
circle/dashboard/templates/dashboard/userkey-edit.html
View file @
53f0b4ad
...
...
@@ -12,7 +12,7 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<a
class=
"pull-right btn btn-default btn-xs"
href=
"{% url "
dashboard
.
views
.
profile-preferences
"
%}"
>
{% trans "Back" %}
</a>
<h3
class=
"no-margin"
><i
class=
"
icon
-key"
></i>
{% trans "Edit SSH public key" %}
</h3>
<h3
class=
"no-margin"
><i
class=
"
fa fa
-key"
></i>
{% trans "Edit SSH public key" %}
</h3>
</div>
<div
class=
"panel-body"
>
{% crispy form %}
...
...
circle/dashboard/templates/dashboard/userkey-list/column-userkey-actions.html
View file @
53f0b4ad
{% load i18n %}
<a
href=
"{% url "
dashboard
.
views
.
userkey-detail
"
pk=
record.pk%}"
id=
"template-list-edit-button"
class=
"btn btn-default btn-xs"
title=
"{% trans "
Edit
"
%}"
>
<i
class=
"
icon
-edit"
></i>
<i
class=
"
fa fa
-edit"
></i>
</a>
<a
data-template-pk=
"{{ record.pk }}"
href=
"{% url "
dashboard
.
views
.
userkey-delete
"
pk=
record.pk
%}"
class=
"btn btn-danger btn-xs template-delete"
title=
"{% trans "
Delete
"
%}"
>
<i
class=
"
icon-remove
"
></i>
<i
class=
"
fa fa-times
"
></i>
</a>
circle/dashboard/templates/dashboard/vm-detail.html
View file @
53f0b4ad
...
...
@@ -10,7 +10,7 @@
<strong>
{% trans "This is the master vm of your new template" %}
</strong>
<div
id=
"vm-details-template-tour-button"
class=
"pull-right"
>
<a
href=
"#"
class=
"btn btn-default btn-lg pull-right vm-details-start-template-tour"
>
<i
class=
"
icon
-play"
></i>
{% trans "Start template tutorial" %}
<i
class=
"
fa fa
-play"
></i>
{% trans "Start template tutorial" %}
</a>
</div>
<ol>
...
...
@@ -93,7 +93,7 @@
<input
type=
"text"
id=
"vm-details-pw-input"
class=
"form-control input-sm input-tags"
value=
"{{ instance.pw }}"
spellcheck=
"false"
/>
<span
class=
"input-group-addon input-tags"
id=
"vm-details-pw-show"
>
<i
class=
"
icon-eye-open
"
id=
"vm-details-pw-eye"
title=
"Show password"
></i>
<i
class=
"
fa fa-eye
"
id=
"vm-details-pw-eye"
title=
"Show password"
></i>
</span>
</div>
</dd>
...
...
@@ -118,7 +118,7 @@
{% trans "
Connection
is
not
possible
."
%}{%
endif
%}"
id=
"vm-details-connection-string"
class=
"form-control input-tags"
/>
<span
class=
"input-group-addon input-tags"
id=
"vm-details-connection-string-copy"
>
<i
class=
"
icon
-copy"
title=
"{% trans "
Select
all
"
%}"
></i>
<i
class=
"
fa fa
-copy"
title=
"{% trans "
Select
all
"
%}"
></i>
</span>
</div>
</div>
...
...
@@ -127,31 +127,31 @@
<ul
class=
"nav nav-pills panel-heading"
>
<li
class=
"active"
>
<a
href=
"#home"
data-toggle=
"pill"
data-target=
"#_home"
class=
"text-center"
>
<i
class=
"
icon
-compass icon-2x"
></i><br>
<i
class=
"
fa fa
-compass icon-2x"
></i><br>
{% trans "Home" %}
</a>
</li>
<li>
<a
href=
"#resources"
data-toggle=
"pill"
data-target=
"#_resources"
class=
"text-center"
>
<i
class=
"
icon
-tasks icon-2x"
></i><br>
<i
class=
"
fa fa
-tasks icon-2x"
></i><br>
{% trans "Resources" %}
</a>
</li>
<li
{%
if
not
instance
.
is_console_available
%}
class=
"disabled"
{%
endif
%}
>
<a
href=
"#console"
data-toggle=
"pill"
data-target=
"#_console"
class=
"text-center"
>
<i
class=
"
icon
-desktop icon-2x"
></i><br>
<i
class=
"
fa fa
-desktop icon-2x"
></i><br>
{% trans "Console" %}
</a></li>
<li>
<a
href=
"#access"
data-toggle=
"pill"
data-target=
"#_access"
class=
"text-center"
>
<i
class=
"
icon
-group icon-2x"
></i><br>
<i
class=
"
fa fa
-group icon-2x"
></i><br>
{% trans "Access" %}
</a>
</li>
<li>
<a
href=
"#network"
data-toggle=
"pill"
data-target=
"#_network"
class=
"text-center"
>
<i
class=
"
icon
-globe icon-2x"
></i><br>
<i
class=
"
fa fa
-globe icon-2x"
></i><br>
{% trans "Network" %}
</a>
</li>
<li>
<a
href=
"#activity"
data-toggle=
"pill"
data-target=
"#_activity"
class=
"text-center"
>
<i
class=
"
icon
-time icon-2x"
></i><br>
<i
class=
"
fa fa
-time icon-2x"
></i><br>
{% trans "Activity" %}
</a>
</li>
</ul>
...
...
circle/dashboard/templates/dashboard/vm-detail/_activity-timeline.html
View file @
53f0b4ad
...
...
@@ -2,7 +2,7 @@
{% for a in activities %}
<div
class=
"activity{% if a.pk == active.pk %} activity-active{%endif%}"
data-activity-id=
"{{ a.pk }}"
>
<span
class=
"timeline-icon{% if a.has_failed %} timeline-icon-failed{% endif %}"
>
<i
class=
"{% if not a.finished %} icon-refresh icon-spin {% else %}
icon
-plus{% endif %}"
></i>
<i
class=
"{% if not a.finished %} icon-refresh icon-spin {% else %}
fa fa
-plus{% endif %}"
></i>
</span>
<strong
{%
if
user
.
is_superuser
and
a
.
result
%}
title=
"{{ a.result }}"
{%
endif
%}
>
{% if user.is_superuser %}
<a
href=
"{{ a.get_absolute_url }}"
>
{% endif %}
...
...
@@ -23,7 +23,7 @@
{% csrf_token %}
<input
type=
"hidden"
name=
"abort_operation"
/>
<input
type=
"hidden"
name=
"activity"
value=
"{{ a.pk }}"
/>
<button
class=
"btn btn-danger btn-xs"
><i
class=
"
icon
-bolt"
></i>
{% trans "Abort" %}
</button>
<button
class=
"btn btn-danger btn-xs"
><i
class=
"
fa fa
-bolt"
></i>
{% trans "Abort" %}
</button>
</form>
{% endif %}
{% if a.children.count > 0 %}
...
...
@@ -36,7 +36,7 @@
{% if s.finished %}
{{ s.finished|time:"H:i:s" }}
{% else %}
<i
class=
"
icon
-refresh icon-spin"
class=
"sub-activity-loading-icon"
></i>
<i
class=
"
fa fa
-refresh icon-spin"
class=
"sub-activity-loading-icon"
></i>
{% endif %}
{% if s.has_failed %}
<div
class=
"label label-danger"
>
{% trans "failed" %}
</div>
...
...
circle/dashboard/templates/dashboard/vm-detail/_disk-operations.html
View file @
53f0b4ad
...
...
@@ -4,7 +4,7 @@
{% if op.is_disk_operation %}
<a
href=
"{{op.get_url}}"
class=
"btn btn-success btn-xs
operation operation-{{op.op}} btn btn-default"
>
<i
class=
"
icon
-{{op.icon}}"
></i>
<i
class=
"
fa fa
-{{op.icon}}"
></i>
{{op.name}}
</a>
{% endif %}
{% endfor %}
circle/dashboard/templates/dashboard/vm-detail/_network-port-add.html
View file @
53f0b4ad
...
...
@@ -5,7 +5,7 @@
<input
type=
"hidden"
name=
"host_pk"
value=
"{{ i.host.pk }}"
/>
<div
class=
"input-group input-group-sm"
>
<span
class=
"input-group-addon"
>
<i
class=
"
icon-plus"
></i>
<i
class=
"icon
-long-arrow-right"
></i>
<i
class=
"
fa fa-plus"
></i>
<i
class=
"fa fa
-long-arrow-right"
></i>
</span>
<input
type=
"text"
class=
"form-control"
size=
"5"
style=
"width: 80px;"
name=
"port"
/>
<span
class=
"input-group-addon"
>
/
</span>
...
...
circle/dashboard/templates/dashboard/vm-detail/_operations.html
View file @
53f0b4ad
...
...
@@ -9,7 +9,7 @@
<a
href=
"{{op.get_url}}"
class=
"operation operation-{{op.op}} btn
btn-{{op.effect}} btn-xs"
title=
"{{op.name}}: {{op.description}}"
>
{% endif %}
<i
class=
"
icon
-{{op.icon}}"
></i>
<i
class=
"
fa fa
-{{op.icon}}"
></i>
<span
{%
if
not
op
.
is_preferred
%}
class=
"sr-only"
{%
endif
%}
>
{{op.name}}
</span>
{% if op.disabled %}
</span>
...
...
circle/dashboard/templates/dashboard/vm-detail/access.html
View file @
53f0b4ad
...
...
@@ -25,7 +25,7 @@
<tbody>
{% for i in acl.users %}
<tr>
<td><i
class=
"
icon
-user"
></i></td>
<td><i
class=
"
fa fa
-user"
></i></td>
<td>
<a
href=
"{% url "
dashboard
.
views
.
profile
"
username=
i.user.username
%}"
title=
"{{ i.user.username }}"
>
{% include "dashboard/_display-name.html" with user=i.user show_org=True %}
</a>
...
...
@@ -44,7 +44,7 @@
{% endfor %}
{% for i in acl.groups %}
<tr>
<td><i
class=
"
icon
-group"
></i></td>
<td><i
class=
"
fa fa
-group"
></i></td>
<td>
<a
href=
"{% url "
dashboard
.
views
.
group-detail
"
pk=
i.group.pk
%}"
>
{{ i.group.name }}
</a>
...
...
@@ -60,7 +60,7 @@
</td>
</tr>
{% endfor %}
<tr><td><i
class=
"
icon
-plus"
></i></td>
<tr><td><i
class=
"
fa fa
-plus"
></i></td>
<td><input
type=
"text"
class=
"form-control"
name=
"perm-new-name"
placeholder=
"{% trans "
Name
of
group
or
user
"
%}"
></td>
<td><select
class=
"form-control"
name=
"perm-new"
>
...
...
circle/dashboard/templates/dashboard/vm-detail/console.html
View file @
53f0b4ad
...
...
@@ -4,7 +4,7 @@
<button
id=
"sendCtrlAltDelButton"
class=
"btn btn-danger btn-sm"
>
{% trans "Send Ctrl+Alt+Del" %}
</button>
<button
id=
"sendPasswordButton"
class=
"btn btn-default btn-sm"
>
{% trans "Type password" %}
</button>
{% endif %}
<button
id=
"getScreenshotButton"
class=
"btn btn-info btn-sm pull-right"
data-vm-pk=
"{{ instance.pk }}"
><i
class=
"
icon
-picture"
></i>
{% trans "Screenshot" %}
</button>
<button
id=
"getScreenshotButton"
class=
"btn btn-info btn-sm pull-right"
data-vm-pk=
"{{ instance.pk }}"
><i
class=
"
fa fa
-picture"
></i>
{% trans "Screenshot" %}
</button>
</div>
{% if perms.vm.access_console %}
<div
class=
"alert alert-info"
id=
"noVNC_status"
>
...
...
circle/dashboard/templates/dashboard/vm-detail/home.html
View file @
53f0b4ad
...
...
@@ -3,10 +3,10 @@
<div
class=
"col-md-4"
>
<dl>
<dt>
{% trans "System" %}:
</dt>
<dd><i
class=
"
icon
-{{ os_type_icon }}"
></i>
{{ instance.system }}
</dd>
<dd><i
class=
"
fa fa
-{{ os_type_icon }}"
></i>
{{ instance.system }}
</dd>
<dt
style=
"margin-top: 5px;"
>
{% trans "Name" %}:
<a
href=
"#"
class=
"vm-details-home-edit-name-click"
><i
class=
"
icon
-pencil"
></i></a>
<a
href=
"#"
class=
"vm-details-home-edit-name-click"
><i
class=
"
fa fa
-pencil"
></i></a>
</dt>
<dd>
<div
class=
"vm-details-home-edit-name-click"
>
...
...
@@ -19,7 +19,7 @@
<input
type=
"text"
name=
"new_name"
value=
"{{ instance.name }}"
class=
"form-control input-sm"
/>
<span
class=
"input-group-btn"
>
<button
type=
"submit"
class=
"btn btn-success btn-sm vm-details-rename-submit"
>
<i
class=
"
icon
-pencil"
></i>
{% trans "Rename" %}
<i
class=
"
fa fa
-pencil"
></i>
{% trans "Rename" %}
</button>
</span>
</div>
...
...
@@ -28,7 +28,7 @@
</dd>
<dt
style=
"margin-top: 5px;"
>
{% trans "Description" %}:
<a
href=
"#"
class=
"vm-details-home-edit-description-click"
><i
class=
"
icon
-pencil"
></i></a>
<a
href=
"#"
class=
"vm-details-home-edit-description-click"
><i
class=
"
fa fa
-pencil"
></i></a>
</dt>
<dd>
{% csrf_token %}
...
...
@@ -39,21 +39,21 @@
<form
method=
"POST"
>
<textarea
name=
"new_description"
class=
"form-control"
>
{{ instance.description }}
</textarea>
<button
type=
"submit"
class=
"btn btn-xs btn-success vm-details-description-submit"
>
<i
class=
"
icon
-pencil"
></i>
{% trans "Update" %}
<i
class=
"
fa fa
-pencil"
></i>
{% trans "Update" %}
</button>
</form>
</div>
</dd>
</dl>
<h4>
{% trans "Expiration" %} {% if instance.is_expiring %}
<i
class=
"
icon
-warning-sign text-danger"
></i>
{% endif %}
<h4>
{% trans "Expiration" %} {% if instance.is_expiring %}
<i
class=
"
fa fa
-warning-sign text-danger"
></i>
{% endif %}
<a
href=
"{% url "
dashboard
.
views
.
vm-renew
"
instance
.
pk
""
%}"
class=
"btn btn-success btn-xs pull-right"
>
{% trans "renew" %}
</a>
</h4>
<dl>
<dt>
{% trans "Suspended at:" %}
</dt>
<dd><i
class=
"
icon
-moon"
></i>
{{ instance.time_of_suspend|timeuntil }}
</dd>
<dd><i
class=
"
fa fa
-moon"
></i>
{{ instance.time_of_suspend|timeuntil }}
</dd>
<dt>
{% trans "Destroyed at:" %}
</dt>
<dd><i
class=
"
icon-remove
"
></i>
{{ instance.time_of_delete|timeuntil }}
</dd>
<dd><i
class=
"
fa fa-times
"
></i>
{{ instance.time_of_delete|timeuntil }}
</dd>
</dl>
<div
style=
"font-weight: bold;"
>
{% trans "Tags" %}
</div>
...
...
@@ -63,7 +63,7 @@
{% for t in instance.tags.all %}
<div
class=
"label label-primary label-tag"
style=
"display: inline-block"
>
{{ t }}
<a
href=
"#"
class=
"vm-details-remove-tag"
><i
class=
"
icon-remove
"
></i></a>
<a
href=
"#"
class=
"vm-details-remove-tag"
><i
class=
"
fa fa-times
"
></i></a>
</div>
{% endfor %}
{% else %}
...
...
@@ -75,7 +75,7 @@
<div
class=
"input-group"
id=
"vm-details-tags-form"
>
<input
type=
"text"
class=
"form-control input-sm input-tags"
name=
"new_tag"
id=
"vm-details-tags-input"
/>
<!--<div class="input-group-addon">
<i class="
icon
-question"></i>
<i class="
fa fa
-question"></i>
</div>-->
<div
class=
"input-group-btn"
>
<input
type=
"submit"
class=
"btn btn-default btn-sm input-tags"
value=
"{% trans "
Add
tag
"
%}"
/>
...
...
circle/dashboard/templates/dashboard/vm-detail/network.html
View file @
53f0b4ad
...
...
@@ -2,7 +2,7 @@
{% load network_tags %}
<h2>
<a
href=
"#"
id=
"vm-details-network-add"
class=
"btn btn-success pull-right no-js-hidden"
>
<i
class=
"
icon
-plus"
></i>
{% trans "add interface" %}
<i
class=
"
fa fa
-plus"
></i>
{% trans "add interface" %}
</a>
{% trans "Interfaces" %}
</h2>
...
...
@@ -33,7 +33,7 @@
</select>
<div
class=
"input-group-btn"
>
<button
{%
if
vlans
|
length =
=
0
%}
disabled
{%
endif
%}
type=
"submit"
class=
"btn btn-success"
><i
class=
"
icon-plus-sign
"
></i></button>
type=
"submit"
class=
"btn btn-success"
><i
class=
"
fa fa-plus-circle
"
></i></button>
</div>
</div>
</form>
...
...
@@ -45,7 +45,7 @@
{% for i in instance.interface_set.all %}
<div>
<h3
class=
"list-group-item-heading dashboard-vm-details-network-h3"
>
<i
class=
"
icon
-{% if i.host %}globe{% else %}link{% endif %}"
></i>
{{ i.vlan.name }}
<i
class=
"
fa fa
-{% if i.host %}globe{% else %}link{% endif %}"
></i>
{{ i.vlan.name }}
{% if not i.host%}({% trans "unmanaged" %}){% endif %}
{% if user.is_superuser %}
<a
href=
"{{ i.host.get_absolute_url }}"
...
...
@@ -85,13 +85,13 @@
<table
class=
"table table-striped rule-table"
>
<thead>
<tr><th>
<i
class=
"
icon
-globe icon-2x"
></i>
<i
class=
"
icon
-long-arrow-right icon-2x"
></i>
<i
class=
"
fa fa
-globe icon-2x"
></i>
<i
class=
"
fa fa
-long-arrow-right icon-2x"
></i>
</th><th>
<i
class=
"
icon
-shield icon-2x"
></i>
<i
class=
"
fa fa
-shield icon-2x"
></i>
</th><th
colspan=
"2"
>
<i
class=
"
icon
-long-arrow-right icon-2x"
></i>
<i
class=
"
icon
-desktop icon-2x"
></i>
<i
class=
"
fa fa
-long-arrow-right icon-2x"
></i>
<i
class=
"
fa fa
-desktop icon-2x"
></i>
</th></tr>
</thead>
<tbody>
...
...
@@ -101,12 +101,12 @@
<td>
{% display_portforward4 l %}
</td>
<td><i
class=
"
icon
-long-arrow-right"
></i></td>
<td><i
class=
"
fa fa
-long-arrow-right"
></i></td>
<td>
{{ l.private }}/{{ l.proto }}
</td>
<td>
<a
href=
"{% url "
dashboard
.
views
.
remove-port
"
pk=
instance.pk
rule=
l.ipv4.pk
%}"
class=
"btn btn-link btn-xs vm-details-remove-port"
data-rule=
"{{ l.ipv4.pk }}"
title=
"{% trans "
Remove
"
%}"
><i
class=
"
icon-remove
"
><span
class=
"sr-only"
>
{% trans "Remove" %}
</span></i></a>
<a
href=
"{% url "
dashboard
.
views
.
remove-port
"
pk=
instance.pk
rule=
l.ipv4.pk
%}"
class=
"btn btn-link btn-xs vm-details-remove-port"
data-rule=
"{{ l.ipv4.pk }}"
title=
"{% trans "
Remove
"
%}"
><i
class=
"
fa fa-times
"
><span
class=
"sr-only"
>
{% trans "Remove" %}
</span></i></a>
</td>
</tr>
{% endif %}
...
...
@@ -119,11 +119,11 @@
<table
class=
"table table-striped rule-table"
>
<thead>
<tr><th>
<i
class=
"
icon
-globe icon-2x"
></i>
<i
class=
"
fa fa
-globe icon-2x"
></i>
</th><th>
<i
class=
"
icon
-long-arrow-right icon-2x"
></i>
<i
class=
"
fa fa
-long-arrow-right icon-2x"
></i>
</th><th
colspan=
"2"
>
<i
class=
"
icon
-desktop icon-2x"
></i>
<i
class=
"
fa fa
-desktop icon-2x"
></i>
</th></tr>
</thead>
<tbody>
...
...
@@ -133,12 +133,12 @@
<td>
{% display_portforward6 l %}
</td>
<td><i
class=
"
icon
-long-arrow-right"
></i></td>
<td><i
class=
"
fa fa
-long-arrow-right"
></i></td>
<td>
{{ l.private }}/{{ l.proto }}
</td>
<td>
<a
href=
"{% url "
dashboard
.
views
.
remove-port
"
pk=
instance.pk
rule=
l.ipv4.pk
%}"
class=
"btn btn-link btn-xs vm-details-remove-port"
data-rule=
"{{ l.ipv6.pk }}"
title=
"{% trans "
Remove
"
%}"
><i
class=
"
icon-remove
"
><span
class=
"sr-only"
>
{% trans "Remove" %}
</span></i></a>
<a
href=
"{% url "
dashboard
.
views
.
remove-port
"
pk=
instance.pk
rule=
l.ipv4.pk
%}"
class=
"btn btn-link btn-xs vm-details-remove-port"
data-rule=
"{{ l.ipv6.pk }}"
title=
"{% trans "
Remove
"
%}"
><i
class=
"
fa fa-times
"
><span
class=
"sr-only"
>
{% trans "Remove" %}
</span></i></a>
</td>
</tr>
{% endif %}
...
...
circle/dashboard/templates/dashboard/vm-detail/resources.html
View file @
53f0b4ad
...
...
@@ -6,7 +6,7 @@
{% csrf_token %}
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"vm-cpu-priority-slider"
><i
class=
"
icon
-trophy"
></i>
{% trans "CPU priority" %}
</label>
<label
for=
"vm-cpu-priority-slider"
><i
class=
"
fa fa
-trophy"
></i>
{% trans "CPU priority" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<input
name=
"cpu-priority"
type=
"text"
id=
"vm-cpu-priority-slider"
class=
"vm-slider"
value=
"{{ instance.priority }}"
data-slider-min=
"0"
data-slider-max=
"100"
data-slider-step=
"1"
data-slider-value=
"{{ instance.priority }}"
data-slider-orientation=
"horizontal"
data-slider-handle=
"square"
data-slider-tooltip=
"hide"
/>
...
...
@@ -16,7 +16,7 @@
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"cpu-count-slider"
><i
class=
"
icon
-cogs"
></i>
{% trans "CPU count" %}
</label>
<label
for=
"cpu-count-slider"
><i
class=
"
fa fa
-cogs"
></i>
{% trans "CPU count" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<input
name=
"cpu-count"
type=
"text"
id=
"vm-cpu-count-slider"
class=
"vm-slider"
value=
" {{ instance.num_cores }}"
data-slider-min=
"0"
data-slider-max=
"8"
data-slider-step=
"1"
data-slider-value=
"{{ instance.num_cores }}"
data-slider-orientation=
"horizontal"
data-slider-handle=
"square"
data-slider-tooltip=
"hide"
/>
...
...
@@ -26,7 +26,7 @@
<p
class=
"row"
>
<div
class=
"col-sm-3"
>
<label
for=
"ram-slider"
><i
class=
"
icon
-ticket"
></i>
{% trans "RAM amount" %}
</label>
<label
for=
"ram-slider"
><i
class=
"
fa fa
-ticket"
></i>
{% trans "RAM amount" %}
</label>
</div>
<div
class=
"col-sm-9"
>
<input
name=
"ram-size"
type=
"text"
id=
"vm-ram-size-slider"
class=
"vm-slider"
value=
"{{ instance.ram_size }}"
data-slider-min=
"128"
data-slider-max=
"4096"
data-slider-step=
"128"
data-slider-value=
"{{ instance.ram_size }}"
data-slider-orientation=
"horizontal"
data-slider-handle=
"square"
data-slider-tooltip=
"hide"
/>
MiB
...
...
@@ -39,7 +39,7 @@
<button
type=
"submit"
class=
"btn btn-success btn-sm enabled-when-stopped"
id=
"vm-details-resources-save"
data-vm=
"{{ instance.pk }}"
{%
if
not
op
.
resources_change
%}
disabled
{%
endif
%}
>
<i
class=
"
icon
-save"
></i>
{% trans "Save resources" %}
<i
class=
"
fa fa
-save"
></i>
{% trans "Save resources" %}
</button>
<span
class=
"hide-when-stopped"
{%
if
op
.
resources_change
%}
style=
"display: none;"
{%
endif
%}
...
...
circle/dashboard/templates/dashboard/vm-list.html
View file @
53f0b4ad
...
...
@@ -11,15 +11,15 @@
<div
class=
"panel-heading"
>
<div
class=
"pull-right table-sorting"
>
{% trans "Sorting ... " %}
<!--<i class="
icon
-refresh icon-spin icon-2x"></i>-->
<!--<i class="
fa fa
-refresh icon-spin icon-2x"></i>-->
</div>
<h3
class=
"no-margin"
><i
class=
"
icon
-desktop"
></i>
{% trans "Virtual machines" %}
</h3>
<h3
class=
"no-margin"
><i
class=
"
fa fa
-desktop"
></i>
{% trans "Virtual machines" %}
</h3>
</div>
<div
class=
"pull-right"
style=
"max-width: 250px; margin-top: 15px; margin-right: 15px;"
>
<form
action=
""
method=
"GET"
class=
"input-group"
>
<input
type=
"text"
name=
"s"
{%
if
request
.
GET
.
s
%}
value=
"{{ request.GET.s }}"
{%
endif
%}
class=
"form-control input-tags"
placeholder=
"{% trans "
Search
..."%}"
/>
<div
class=
"input-group-btn"
>
<button
type=
"submit"
class=
"form-control btn btn-primary input-tags"
title=
"search"
><i
class=
"
icon
-search"
></i></button>
<button
type=
"submit"
class=
"form-control btn btn-primary input-tags"
title=
"search"
><i
class=
"
fa fa
-search"
></i></button>
</div>
</form>
</div>
...
...
@@ -27,10 +27,10 @@
<p>
<strong>
{% trans "Group actions" %}
</strong>
<button
id=
"vm-list-group-select-all"
class=
"btn btn-info btn-xs"
>
{% trans "Select all" %}
</button>
<a
class=
"btn btn-default btn-xs"
id=
"vm-list-group-migrate"
disabled
><i
class=
"
icon
-truck"
></i>
{% trans "Migrate" %}
</a>
<a
disabled
href=
"#"
class=
"btn btn-default btn-xs"
><i
class=
"
icon
-refresh"
></i>
{% trans "Reboot" %}
</a>
<a
disabled
href=
"#"
class=
"btn btn-default btn-xs"
><i
class=
"
icon
-off"
></i>
{% trans "Shutdown" %}
</a>
<a
id=
"vm-list-group-delete"
disabled
href=
"#"
class=
"btn btn-danger btn-xs"
><i
class=
"
icon-remove
"
></i>
{% trans "Destroy" %}
</a>
<a
class=
"btn btn-default btn-xs"
id=
"vm-list-group-migrate"
disabled
><i
class=
"
fa fa
-truck"
></i>
{% trans "Migrate" %}
</a>
<a
disabled
href=
"#"
class=
"btn btn-default btn-xs"
><i
class=
"
fa fa
-refresh"
></i>
{% trans "Reboot" %}
</a>
<a
disabled
href=
"#"
class=
"btn btn-default btn-xs"
><i
class=
"
fa fa
-off"
></i>
{% trans "Shutdown" %}
</a>
<a
id=
"vm-list-group-delete"
disabled
href=
"#"
class=
"btn btn-danger btn-xs"
><i
class=
"
fa fa-times
"
></i>
{% trans "Destroy" %}
</a>
</p>
</div>
<div
class=
"panel-body"
>
...
...
circle/dashboard/templates/dashboard/vm-list/column-actions.html
View file @
53f0b4ad
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-xs btn-warning nojs-dropdown-toogle dropdown-toggle"
data-toggle=
"dropdown"
>
Action
<i
class=
"
icon
-caret-down"
></i></button>
<button
type=
"button"
class=
"btn btn-xs btn-warning nojs-dropdown-toogle dropdown-toggle"
data-toggle=
"dropdown"
>
Action
<i
class=
"
fa fa
-caret-down"
></i></button>
<ul
class=
"nojs-dropdown-toogle dropdown-menu"
role=
"menu"
>
<li><a
href=
"#"
><i
class=
"
icon
-refresh"
></i>
Reboot
</a></li>
<li><a
href=
"#"
><i
class=
"
icon
-off"
></i>
Shutdown
</a></li>
<li><a
data-vm-pk=
"{{ record.pk }}"
class=
"real-link vm-delete"
href=
"{% url "
dashboard
.
views
.
delete-vm
"
pk=
record.pk
%}?
next=
{{
request
.
path
}}"
><i
class=
"
icon-remove
"
></i>
Discard
</a></li>
<li><a
href=
"#"
><i
class=
"
fa fa
-refresh"
></i>
Reboot
</a></li>
<li><a
href=
"#"
><i
class=
"
fa fa
-off"
></i>
Shutdown
</a></li>
<li><a
data-vm-pk=
"{{ record.pk }}"
class=
"real-link vm-delete"
href=
"{% url "
dashboard
.
views
.
delete-vm
"
pk=
record.pk
%}?
next=
{{
request
.
path
}}"
><i
class=
"
fa fa-times
"
></i>
Discard
</a></li>
</ul>
</div>
circle/dashboard/templates/dashboard/vm-list/column-admin.html
View file @
53f0b4ad
<a
href=
"{% url "
dashboard
.
vm
.
op
.
migrate
"
pk=
record.pk
%}"
class=
"btn btn-default btn-xs vm-migrate"
data-vm-pk=
"{{ record.pk }}"
title
data-original-title=
"Migrate"
>
<i
class=
"
icon
-truck"
></i>
<i
class=
"
fa fa
-truck"
></i>
</a>
<a
id=
"vm-list-rename-button"
class=
"btn btn-default btn-xs"
title
data-original-title=
"Rename"
>
<i
class=
"
icon
-pencil"
></i>
<i
class=
"
fa fa
-pencil"
></i>
</a>
<a
href=
"#"
class=
"btn btn-default btn-xs vm-list-connect"
data-toggle=
"popover"
data-content=
'
...
...
circle/dashboard/templates/dashboard/vm-list/test-one.html
View file @
53f0b4ad
...
...
@@ -10,10 +10,10 @@
<td>
1 month
</td>
<td>
<a
class=
"btn btn-default btn-xs"
title
data-original-title=
"Migrate"
>
<i
class=
"
icon
-truck"
></i>
<i
class=
"
fa fa
-truck"
></i>
</a>
<a
class=
"btn btn-default btn-xs"
title
data-original-title=
"Rename"
>
<i
class=
"
icon
-pencil"
></i>
<i
class=
"
fa fa
-pencil"
></i>
</a>
<a
href=
"#"
class=
"btn btn-default btn-xs vm-list-connect"
data-toggle=
"popover"
data-content=
'
...
...
@@ -39,11 +39,11 @@
</td>
<td>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-xs btn-warning nojs-dropdown-toogle dropdown-toggle"
data-toggle=
"dropdown"
>
Action
<i
class=
"
icon
-caret-down"
></i></button>
<button
type=
"button"
class=
"btn btn-xs btn-warning nojs-dropdown-toogle dropdown-toggle"
data-toggle=
"dropdown"
>
Action
<i
class=
"
fa fa
-caret-down"
></i></button>
<ul
class=
"nojs-dropdown-menu dropdown-menu"
role=
"menu"
>
<li><a
href=
"#"
><i
class=
"
icon
-refresh"
></i>
Reboot
</a></li>
<li><a
href=
"#"
><i
class=
"
icon
-off"
></i>
Shutdown
</a></li>
<li><a
href=
"#"
><i
class=
"
icon-remove
"
></i>
Discard
</a></li>
<li><a
href=
"#"
><i
class=
"
fa fa
-refresh"
></i>
Reboot
</a></li>
<li><a
href=
"#"
><i
class=
"
fa fa
-off"
></i>
Shutdown
</a></li>
<li><a
href=
"#"
><i
class=
"
fa fa-times
"
></i>
Discard
</a></li>
</ul>
</div>
</td>
...
...
circle/dashboard/views.py
View file @
53f0b4ad
...
...
@@ -700,9 +700,9 @@ vm_ops = OrderedDict([
(
'deploy'
,
VmOperationView
.
factory
(
op
=
'deploy'
,
icon
=
'play'
,
effect
=
'success'
)),
(
'wake_up'
,
VmOperationView
.
factory
(
op
=
'wake_up'
,
icon
=
'sun'
,
effect
=
'success'
)),
op
=
'wake_up'
,
icon
=
'sun
-o
'
,
effect
=
'success'
)),
(
'sleep'
,
VmOperationView
.
factory
(
op
=
'sleep'
,
icon
=
'moon'
,
effect
=
'info'
)),
op
=
'sleep'
,
icon
=
'moon
-o
'
,
effect
=
'info'
)),
(
'migrate'
,
VmMigrateView
),
(
'save_as_template'
,
VmSaveView
),
(
'reboot'
,
VmOperationView
.
factory
(
...
...
@@ -710,13 +710,13 @@ vm_ops = OrderedDict([
(
'reset'
,
VmOperationView
.
factory
(
op
=
'reset'
,
icon
=
'bolt'
,
effect
=
'warning'
)),
(
'shutdown'
,
VmOperationView
.
factory
(
op
=
'shutdown'
,
icon
=
'off'
,
effect
=
'warning'
)),
op
=
'shutdown'
,
icon
=
'
power-
off'
,
effect
=
'warning'
)),
(
'shut_off'
,
VmOperationView
.
factory
(
op
=
'shut_off'
,
icon
=
'ban
-circle
'
,
effect
=
'warning'
)),
op
=
'shut_off'
,
icon
=
'ban'
,
effect
=
'warning'
)),
(
'recover'
,
VmOperationView
.
factory
(
op
=
'recover'
,
icon
=
'medkit'
,
effect
=
'warning'
)),
(
'destroy'
,
VmOperationView
.
factory
(
op
=
'destroy'
,
icon
=
'
remove
'
,
effect
=
'danger'
)),
op
=
'destroy'
,
icon
=
'
times
'
,
effect
=
'danger'
)),
(
'create_disk'
,
VmCreateDiskView
),
(
'download_disk'
,
VmDownloadDiskView
),
])
...
...
circle/vm/models/instance.py
View file @
53f0b4ad
...
...
@@ -909,14 +909,14 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin,
def
get_status_icon
(
self
):
return
{
'NOSTATE'
:
'
icon
-rocket'
,
'RUNNING'
:
'
icon
-play'
,
'STOPPED'
:
'
icon
-stop'
,
'SUSPENDED'
:
'
icon
-pause'
,
'ERROR'
:
'
icon-warning-sign
'
,
'PENDING'
:
'
icon
-rocket'
,
'DESTROYED'
:
'
icon-trash
'
,
'MIGRATING'
:
'
icon-truck'
}
.
get
(
self
.
status
,
'icon-question-sig
n'
)
'NOSTATE'
:
'
fa
-rocket'
,
'RUNNING'
:
'
fa
-play'
,
'STOPPED'
:
'
fa
-stop'
,
'SUSPENDED'
:
'
fa
-pause'
,
'ERROR'
:
'
fa-warning
'
,
'PENDING'
:
'
fa
-rocket'
,
'DESTROYED'
:
'
fa-trash-o
'
,
'MIGRATING'
:
'
fa-truck'
}
.
get
(
self
.
status
,
'fa-questio
n'
)
def
get_activities
(
self
,
user
=
None
):
acts
=
(
self
.
activity_log
.
filter
(
parent
=
None
)
.
...
...
circle/vm/models/node.py
View file @
53f0b4ad
...
...
@@ -303,11 +303,11 @@ class Node(OperatedMixin, TimeStampedModel):
def
get_status_icon
(
self
):
return
{
'OFFLINE'
:
'
icon-minus-sign
'
,
'DISABLED'
:
'
icon
-moon'
,
'MISSING'
:
'
icon-warning-sign
'
,
'ONLINE'
:
'
icon-play-sign
'
}
.
get
(
self
.
get_state
(),
'
icon-question-sign
'
)
'OFFLINE'
:
'
fa-minus-circle
'
,
'DISABLED'
:
'
fa
-moon'
,
'MISSING'
:
'
fa-warning
'
,
'ONLINE'
:
'
fa-play-circle
'
}
.
get
(
self
.
get_state
(),
'
fa-question-circle
'
)
def
get_status_label
(
self
):
return
{
...
...
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