Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
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
9cd07b2b
authored
Jul 11, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fa upgrade done
parent
3efae6d8
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
57 additions
and
57 deletions
+57
-57
circle/dashboard/forms.py
+9
-9
circle/dashboard/static/dashboard/dashboard.js
+6
-6
circle/dashboard/static/dashboard/template-list.js
+1
-1
circle/dashboard/static/dashboard/vm-common.js
+2
-2
circle/dashboard/static/dashboard/vm-create.js
+2
-2
circle/dashboard/static/dashboard/vm-details.js
+12
-12
circle/dashboard/static/dashboard/vm-list.js
+1
-1
circle/dashboard/static/dashboard/vm-tour.js
+5
-5
circle/dashboard/templates/dashboard/_disk-list-element.html
+1
-1
circle/dashboard/templates/dashboard/base.html
+1
-1
circle/dashboard/templates/dashboard/index-vm.html
+1
-1
circle/dashboard/templates/dashboard/node-detail/_activity-timeline.html
+2
-2
circle/dashboard/templates/dashboard/vm-detail.html
+1
-1
circle/dashboard/templates/dashboard/vm-detail/_activity-timeline.html
+2
-2
circle/dashboard/templates/dashboard/vm-detail/network.html
+8
-8
circle/dashboard/templates/dashboard/vm-detail/resources.html
+1
-1
circle/dashboard/templates/dashboard/vm-list.html
+1
-1
circle/dashboard/views.py
+1
-1
No files found.
circle/dashboard/forms.py
View file @
9cd07b2b
...
...
@@ -131,7 +131,7 @@ class VmCustomizeForm(forms.Form):
"button"
,
AnyTag
(
"i"
,
css_class
=
"
icon
-play"
css_class
=
"
fa fa
-play"
),
HTML
(
" Start"
),
css_id
=
"vm-create-customized-start"
,
...
...
@@ -163,7 +163,7 @@ class VmCustomizeForm(forms.Form):
Div
(
# cpu priority
Div
(
HTML
(
'<label for="vm-cpu-priority-slider">'
'<i class="
icon
-trophy"></i> CPU priority'
'<i class="
fa fa
-trophy"></i> CPU priority'
'</label>'
),
css_class
=
"col-sm-3"
),
...
...
@@ -182,7 +182,7 @@ class VmCustomizeForm(forms.Form):
Div
(
# cpu count
Div
(
HTML
(
'<label for="cpu-count-slider">'
'<i class="
icon
-cogs"></i> CPU count'
'<i class="
fa fa
-cogs"></i> CPU count'
'</label>'
),
css_class
=
"col-sm-3"
),
...
...
@@ -201,7 +201,7 @@ class VmCustomizeForm(forms.Form):
Div
(
# ram size
Div
(
HTML
(
'<label for="ram-slider">'
'<i class="
icon
-ticket"></i> RAM amount'
'<i class="
fa fa
-ticket"></i> RAM amount'
'</label>'
),
css_class
=
"col-sm-3"
),
...
...
@@ -313,7 +313,7 @@ class VmCustomizeForm(forms.Form):
"a"
,
AnyTag
(
"i"
,
css_class
=
"
icon-plus-sign
"
,
css_class
=
"
fa fa-plus-circle
"
,
),
css_id
=
(
"vm-create-network-add"
"-button"
),
...
...
@@ -556,7 +556,7 @@ class NodeForm(forms.ModelForm):
"button"
,
AnyTag
(
"i"
,
css_class
=
"
icon
-play"
css_class
=
"
fa fa
-play"
),
HTML
(
"Start"
),
css_id
=
"node-create-submit"
,
...
...
@@ -934,7 +934,7 @@ class CircleAuthenticationForm(AuthenticationForm):
"span"
,
AnyTag
(
"i"
,
css_class
=
"
icon
-user"
,
css_class
=
"
fa fa
-user"
,
),
css_class
=
"input-group-addon"
,
),
...
...
@@ -948,7 +948,7 @@ class CircleAuthenticationForm(AuthenticationForm):
"span"
,
AnyTag
(
"i"
,
css_class
=
"
icon
-lock"
,
css_class
=
"
fa fa
-lock"
,
),
css_class
=
"input-group-addon"
,
),
...
...
@@ -976,7 +976,7 @@ class CirclePasswordResetForm(PasswordResetForm):
"span"
,
AnyTag
(
"i"
,
css_class
=
"
icon
-envelope"
,
css_class
=
"
fa fa
-envelope"
,
),
css_class
=
"input-group-addon"
,
),
...
...
circle/dashboard/static/dashboard/dashboard.js
View file @
9cd07b2b
...
...
@@ -121,11 +121,11 @@ $(function () {
$
(
"#dashboard-vm-list"
).
on
(
'click'
,
'.dashboard-vm-favourite'
,
function
(
e
)
{
var
star
=
$
(
this
).
children
(
"i"
);
var
pk
=
$
(
this
).
data
(
"vm"
);
if
(
star
.
hasClass
(
"
icon-star-empty
"
))
{
star
.
removeClass
(
"
icon-star-empty"
).
addClass
(
"icon
-star"
);
if
(
star
.
hasClass
(
"
fa-star-o
"
))
{
star
.
removeClass
(
"
fa-star-o"
).
addClass
(
"fa
-star"
);
star
.
prop
(
"title"
,
"Unfavourite"
);
}
else
{
star
.
removeClass
(
"
icon-star"
).
addClass
(
"icon-star-empty
"
);
star
.
removeClass
(
"
fa-star"
).
addClass
(
"fa-star-o
"
);
star
.
prop
(
"title"
,
"Mark as favourite"
);
}
$
.
ajax
({
...
...
@@ -385,8 +385,8 @@ function generateVmHTML(pk, name, host, icon, _status, fav, is_last) {
'</span>'
+
'<small class="text-muted"> '
+
host
+
'</small>'
+
'<div class="pull-right dashboard-vm-favourite" data-vm="'
+
pk
+
'">'
+
(
fav
?
'<i class="
icon
-star text-primary title-favourite" title="Unfavourite"></i>'
:
'<i class="
icon-star-empty
text-primary title-favourite" title="Mark as favorite"></i>'
)
+
(
fav
?
'<i class="
fa fa
-star text-primary title-favourite" title="Unfavourite"></i>'
:
'<i class="
fa fa-star-o
text-primary title-favourite" title="Mark as favorite"></i>'
)
+
'</div>'
+
'<div style="clear: both;"></div>'
+
'</a>'
;
...
...
@@ -394,7 +394,7 @@ function generateVmHTML(pk, name, host, icon, _status, fav, is_last) {
function
generateGroupHTML
(
url
,
name
)
{
return
'<a href="'
+
url
+
'" class="list-group-item real-link">'
+
'<i class="
icon-group
"></i> '
+
name
+
'<i class="
fa fa-users
"></i> '
+
name
+
'</a>'
;
}
...
...
circle/dashboard/static/dashboard/template-list.js
View file @
9cd07b2b
...
...
@@ -31,7 +31,7 @@ $(function() {
ttable
.
on
(
"aftertablesort"
,
function
(
event
,
data
)
{
$
(
".template-list-table thead th i"
).
remove
();
var
icon_html
=
'<i class="
icon-sort-'
+
(
data
.
direction
==
"desc"
?
"up"
:
"down
"
)
+
' pull-right" style="position: absolute;"></i>'
;
var
icon_html
=
'<i class="
fa fa-sort-'
+
(
data
.
direction
==
"desc"
?
"desc"
:
"asc
"
)
+
' pull-right" style="position: absolute;"></i>'
;
$
(
".template-list-table thead th"
).
eq
(
data
.
column
).
append
(
icon_html
);
});
...
...
circle/dashboard/static/dashboard/vm-common.js
View file @
9cd07b2b
...
...
@@ -4,13 +4,13 @@ $(function() {
/* vm operations */
$
(
'#ops, #vm-details-resources-disk'
).
on
(
'click'
,
'.operation.btn'
,
function
(
e
)
{
var
icon
=
$
(
this
).
children
(
"i"
).
addClass
(
'
icon-spinner icon
-spin'
);
var
icon
=
$
(
this
).
children
(
"i"
).
addClass
(
'
fa-spinner fa
-spin'
);
$
.
ajax
({
type
:
'GET'
,
url
:
$
(
this
).
attr
(
'href'
),
success
:
function
(
data
)
{
icon
.
removeClass
(
"
icon-spinner icon
-spin"
);
icon
.
removeClass
(
"
fa-spinner fa
-spin"
);
$
(
'body'
).
append
(
data
);
$
(
'#confirmation-modal'
).
modal
(
'show'
);
$
(
'#confirmation-modal'
).
on
(
'hidden.bs.modal'
,
function
()
{
...
...
circle/dashboard/static/dashboard/vm-create.js
View file @
9cd07b2b
...
...
@@ -288,11 +288,11 @@ function vmCustomizeLoaded() {
function
vmCreateNetworkLabel
(
pk
,
name
,
managed
)
{
return
'<span id="vlan-'
+
pk
+
'" class="label label-'
+
(
managed
?
'primary'
:
'default'
)
+
'"><i class="
icon-'
+
(
managed
?
'globe'
:
'link'
)
+
'"></i> '
+
name
+
' <a href="#" class="hover-black vm-create-remove-network"><i class="icon-remove-sign
"></i></a></span> '
;
return
'<span id="vlan-'
+
pk
+
'" class="label label-'
+
(
managed
?
'primary'
:
'default'
)
+
'"><i class="
fa fa-'
+
(
managed
?
'globe'
:
'link'
)
+
'"></i> '
+
name
+
' <a href="#" class="hover-black vm-create-remove-network"><i class="fa fa-times-circle
"></i></a></span> '
;
}
function
vmCreateDiskLabel
(
pk
,
name
)
{
var
style
=
"float: left; margin: 5px 5px 5px 0;"
;
return
'<span id="disk-'
+
pk
+
'" class="label label-primary" style="'
+
style
+
'"><i class="
icon-file"></i> '
+
name
+
' <a href="#" class="hover-black vm-create-remove-disk"><i class="icon-remove-sign
"></i></a></span> '
;
return
'<span id="disk-'
+
pk
+
'" class="label label-primary" style="'
+
style
+
'"><i class="
fa fa-file"></i> '
+
name
+
' <a href="#" class="hover-black vm-create-remove-disk"><i class="fa fa-times-circle
"></i></a></span> '
;
}
circle/dashboard/static/dashboard/vm-details.js
View file @
9cd07b2b
...
...
@@ -4,24 +4,24 @@ $(function() {
checkNewActivity
(
false
,
1
);
}
$
(
'a[href="#activity"]'
).
click
(
function
(){
$
(
'a[href="#activity"] i'
).
addClass
(
'
icon
-spin'
);
$
(
'a[href="#activity"] i'
).
addClass
(
'
fa
-spin'
);
checkNewActivity
(
false
,
1
);
});
/* save resources */
$
(
'#vm-details-resources-save'
).
click
(
function
()
{
$
(
'i.
icon-save'
,
this
).
removeClass
(
"icon-save"
).
addClass
(
"icon-refresh icon
-spin"
);
$
(
'i.
fa-floppy-o'
,
this
).
removeClass
(
"fa-floppy-o"
).
addClass
(
"fa-refresh fa
-spin"
);
var
vm
=
$
(
this
).
data
(
"vm"
);
$
.
ajax
({
type
:
'POST'
,
url
:
"/dashboard/vm/"
+
vm
+
"/op/resources_change/"
,
data
:
$
(
'#vm-details-resources-form'
).
serialize
(),
success
:
function
(
data
,
textStatus
,
xhr
)
{
$
(
"#vm-details-resources-save i"
).
removeClass
(
'
icon-refresh icon-spin'
).
addClass
(
"icon-save
"
);
$
(
"#vm-details-resources-save i"
).
removeClass
(
'
fa-refresh fa-spin'
).
addClass
(
"fa-floppy-o
"
);
$
(
'a[href="#activity"]'
).
trigger
(
"click"
);
},
error
:
function
(
xhr
,
textStatus
,
error
)
{
$
(
"#vm-details-resources-save i"
).
removeClass
(
'
icon-refresh icon-spin'
).
addClass
(
"icon-save
"
);
$
(
"#vm-details-resources-save i"
).
removeClass
(
'
fa-refresh fa-spin'
).
addClass
(
"fa-floppy-o
"
);
if
(
xhr
.
status
==
500
)
{
addMessage
(
"500 Internal Server Error"
,
"danger"
);
}
else
{
...
...
@@ -76,13 +76,13 @@ $(function() {
var
eye
=
$
(
this
).
children
(
"#vm-details-pw-eye"
);
eye
.
tooltip
(
"destroy"
)
if
(
eye
.
hasClass
(
"
icon-eye-open
"
))
{
eye
.
removeClass
(
"
icon-eye-open"
).
addClass
(
"icon-eye-close
"
);
if
(
eye
.
hasClass
(
"
fa-eye
"
))
{
eye
.
removeClass
(
"
fa-eye"
).
addClass
(
"fa-eye-slash
"
);
input
.
prop
(
"type"
,
"text"
);
input
.
focus
();
eye
.
prop
(
"title"
,
"Hide password"
);
}
else
{
eye
.
removeClass
(
"
icon-eye-close"
).
addClass
(
"icon-eye-open
"
);
eye
.
removeClass
(
"
fa-eye-slash"
).
addClass
(
"fa-eye
"
);
input
.
prop
(
"type"
,
"password"
);
eye
.
prop
(
"title"
,
"Show password"
);
}
...
...
@@ -269,7 +269,7 @@ $(function() {
$
(
"#getScreenshotButton"
).
click
(
function
()
{
var
vm
=
$
(
this
).
data
(
"vm-pk"
);
var
ct
=
$
(
"#vm-console-screenshot"
);
$
(
"i"
,
this
).
addClass
(
"
icon-spinner icon
-spin"
);
$
(
"i"
,
this
).
addClass
(
"
fa-spinner fa
-spin"
);
$
(
this
).
prop
(
"disabled"
,
true
);
ct
.
slideDown
();
var
img
=
$
(
"img"
,
ct
).
prop
(
"src"
,
'/dashboard/vm/'
+
vm
+
'/screenshot/'
);
...
...
@@ -280,7 +280,7 @@ $(function() {
// see: http://stackoverflow.com/a/3877079/1112653
$
(
"#vm-console-screenshot img"
).
load
(
function
(
e
)
{
$
(
"#getScreenshotButton"
).
prop
(
"disabled"
,
false
)
.
find
(
"i"
).
removeClass
(
"
icon-spinner icon
-spin"
);
.
find
(
"i"
).
removeClass
(
"
fa-spinner fa
-spin"
);
});
...
...
@@ -320,7 +320,7 @@ function removePort(data) {
function
decideActivityRefresh
()
{
var
check
=
false
;
/* if something is still spinning */
if
(
$
(
'.timeline .activity:first i:first'
).
hasClass
(
'
icon
-spin'
))
if
(
$
(
'.timeline .activity:first i:first'
).
hasClass
(
'
fa
-spin'
))
check
=
true
;
/* if there is only one activity */
if
(
$
(
'#activity-timeline div[class="activity"]'
).
length
<
2
)
...
...
@@ -360,7 +360,7 @@ function checkNewActivity(only_status, runs) {
$
(
"[title]"
).
tooltip
();
}
$
(
"#vm-details-state i"
).
prop
(
"class"
,
data
[
'icon'
]);
$
(
"#vm-details-state i"
).
prop
(
"class"
,
"fa "
+
data
[
'icon'
]);
$
(
"#vm-details-state span"
).
html
(
data
[
'human_readable_status'
].
toUpperCase
());
if
(
data
[
'status'
]
==
"RUNNING"
)
{
$
(
"[data-target=#_console]"
).
attr
(
"data-toggle"
,
"pill"
).
attr
(
"href"
,
"#console"
).
parent
(
"li"
).
removeClass
(
"disabled"
);
...
...
@@ -382,7 +382,7 @@ function checkNewActivity(only_status, runs) {
1000
+
Math
.
exp
(
runs
*
0.05
)
);
}
$
(
'a[href="#activity"] i'
).
removeClass
(
'
icon
-spin'
);
$
(
'a[href="#activity"] i'
).
removeClass
(
'
fa
-spin'
);
},
error
:
function
()
{
...
...
circle/dashboard/static/dashboard/vm-list.js
View file @
9cd07b2b
...
...
@@ -171,7 +171,7 @@ $(function() {
$
(
".vm-list-table thead th i"
).
remove
();
var
icon_html
=
'<i class="
icon-sort-'
+
(
data
.
direction
==
"desc"
?
"up"
:
"down
"
)
+
' pull-right"></i>'
;
var
icon_html
=
'<i class="
fa fa-sort-'
+
(
data
.
direction
==
"desc"
?
"desc"
:
"asc
"
)
+
' pull-right"></i>'
;
$
(
".vm-list-table thead th"
).
eq
(
data
.
column
).
append
(
icon_html
);
});
...
...
circle/dashboard/static/dashboard/vm-tour.js
View file @
9cd07b2b
...
...
@@ -17,13 +17,13 @@ function createTemplateTour() {
"<div class='popover-navigation'>"
+
"<div class='btn-group'>"
+
"<button class='btn btn-sm btn-default' data-role='prev'>"
+
'<i class="
icon
-chevron-left"></i> '
+
gettext
(
"Prev"
)
+
"</button> "
+
'<i class="
fa fa
-chevron-left"></i> '
+
gettext
(
"Prev"
)
+
"</button> "
+
"<button class='btn btn-sm btn-default' data-role='next'>"
+
gettext
(
"Next"
)
+
' <i class="
icon
-chevron-right"></i></button> '
+
gettext
(
"Next"
)
+
' <i class="
fa fa
-chevron-right"></i></button> '
+
"<button class='btn btn-sm btn-default' data-role='pause-resume' data-pause-text='Pause' data-resume-text='Resume'>Pause</button> "
+
"</div>"
+
"<button class='btn btn-sm btn-default' data-role='end'>"
+
gettext
(
"End tour"
)
+
' <i class="
icon
-flag-checkered"></i></button>'
+
gettext
(
"End tour"
)
+
' <i class="
fa fa
-flag-checkered"></i></button>'
+
"</div>"
+
"</div>"
,
});
...
...
@@ -99,7 +99,7 @@ function createTemplateTour() {
ttour
.
addStep
({
element
:
"#ops"
,
title
:
'<i class="
icon
-play"></i> '
+
gettext
(
"Deploy"
),
title
:
'<i class="
fa fa
-play"></i> '
+
gettext
(
"Deploy"
),
placement
:
"left"
,
backdrop
:
true
,
content
:
gettext
(
"Deploy the virtual machine."
),
...
...
@@ -123,7 +123,7 @@ function createTemplateTour() {
ttour
.
addStep
({
element
:
"#ops"
,
title
:
'<i class="
icon-save
"></i> '
+
gettext
(
"Save as"
),
title
:
'<i class="
fa fa-floppy-o
"></i> '
+
gettext
(
"Save as"
),
placement
:
"left"
,
backdrop
:
true
,
content
:
gettext
(
'Press the "Save as template" button and wait until the activity finishes.'
),
...
...
circle/dashboard/templates/dashboard/_disk-list-element.html
View file @
9cd07b2b
{% load i18n %}
{% load sizefieldtags %}
<i
class=
"
{% if d.is_downloading %}icon-refresh icon-spin{% else %}icon
-file{% if d.failed %}"
style=
"color: #d9534f;{% endif %}{% endif %}"
></i>
<i
class=
"
fa {% if d.is_downloading %}fa-refresh fa-spin{% else %}fa
-file{% if d.failed %}"
style=
"color: #d9534f;{% endif %}{% endif %}"
></i>
{{ d.name }} (#{{ d.id }}) -
{% if not d.is_downloading %}
{% if not d.failed %}
...
...
circle/dashboard/templates/dashboard/base.html
View file @
9cd07b2b
...
...
@@ -36,7 +36,7 @@
{% 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=
"fa fa-sign-out
icon-sign-out
"
></i>
{% trans "Log out" %}
<i
class=
"fa fa-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=
"fa fa-user"
></i>
...
...
circle/dashboard/templates/dashboard/index-vm.html
View file @
9cd07b2b
...
...
@@ -26,7 +26,7 @@
{% if i.fav %}
<i
class=
"fa fa-star text-primary title-favourite"
title=
"{% trans "
Unfavourite
"
%}"
></i>
{% else %}
<i
class=
"fa fa-star-
empty
text-primary title-favourite"
title=
"{% trans "
Mark
as
favorite
"
%}"
></i>
<i
class=
"fa fa-star-
o
text-primary title-favourite"
title=
"{% trans "
Mark
as
favorite
"
%}"
></i>
{% endif %}
</div>
<div
style=
"clear: both;"
></div>
...
...
circle/dashboard/templates/dashboard/node-detail/_activity-timeline.html
View file @
9cd07b2b
...
...
@@ -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 %}fa fa-plus{% endif %}"
></i>
<i
class=
"
fa{% if not a.finished %}fa-refresh fa
-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=
"fa fa-refresh
icon
-spin"
class=
"sub-activity-loading-icon"
></i>
<i
class=
"fa fa-refresh
fa
-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.html
View file @
9cd07b2b
...
...
@@ -63,7 +63,7 @@
<div
class=
"col-md-4"
id=
"vm-info-pane"
>
<div
class=
"big"
>
<span
id=
"vm-details-state"
class=
"label label-success"
>
<i
class=
"{{ instance.get_status_icon }}"
></i>
<i
class=
"
fa
{{ instance.get_status_icon }}"
></i>
<span>
{{ instance.get_status_display|upper }}
</span>
</span>
</div>
...
...
circle/dashboard/templates/dashboard/vm-detail/_activity-timeline.html
View file @
9cd07b2b
...
...
@@ -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 %}fa
fa-plus{% endif %}"
></i>
<i
class=
"
fa {% if not a.finished %}fa-refresh fa-spin {% else %}
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 %}
...
...
@@ -36,7 +36,7 @@
{% if s.finished %}
{{ s.finished|time:"H:i:s" }}
{% else %}
<i
class=
"fa fa-refresh
icon
-spin"
class=
"sub-activity-loading-icon"
></i>
<i
class=
"fa fa-refresh
fa
-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/network.html
View file @
9cd07b2b
...
...
@@ -85,13 +85,13 @@
<table
class=
"table table-striped rule-table"
>
<thead>
<tr><th>
<i
class=
"fa fa-globe
icon
-2x"
></i>
<i
class=
"fa fa-long-arrow-right
icon
-2x"
></i>
<i
class=
"fa fa-globe
fa
-2x"
></i>
<i
class=
"fa fa-long-arrow-right
fa
-2x"
></i>
</th><th>
<i
class=
"fa fa-shield
icon
-2x"
></i>
<i
class=
"fa fa-shield
fa
-2x"
></i>
</th><th
colspan=
"2"
>
<i
class=
"fa fa-long-arrow-right
icon
-2x"
></i>
<i
class=
"fa fa-desktop
icon
-2x"
></i>
<i
class=
"fa fa-long-arrow-right
fa
-2x"
></i>
<i
class=
"fa fa-desktop
fa
-2x"
></i>
</th></tr>
</thead>
<tbody>
...
...
@@ -119,11 +119,11 @@
<table
class=
"table table-striped rule-table"
>
<thead>
<tr><th>
<i
class=
"fa fa-globe
icon
-2x"
></i>
<i
class=
"fa fa-globe
fa
-2x"
></i>
</th><th>
<i
class=
"fa fa-long-arrow-right
icon
-2x"
></i>
<i
class=
"fa fa-long-arrow-right
fa
-2x"
></i>
</th><th
colspan=
"2"
>
<i
class=
"fa fa-desktop
icon
-2x"
></i>
<i
class=
"fa fa-desktop
fa
-2x"
></i>
</th></tr>
</thead>
<tbody>
...
...
circle/dashboard/templates/dashboard/vm-detail/resources.html
View file @
9cd07b2b
...
...
@@ -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=
"fa fa-
save
"
></i>
{% trans "Save resources" %}
<i
class=
"fa fa-
floppy-o
"
></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 @
9cd07b2b
...
...
@@ -11,7 +11,7 @@
<div
class=
"panel-heading"
>
<div
class=
"pull-right table-sorting"
>
{% trans "Sorting ... " %}
<!--<i class="fa fa-refresh
icon-spin icon
-2x"></i>-->
<!--<i class="fa fa-refresh
fa-spin fa
-2x"></i>-->
</div>
<h3
class=
"no-margin"
><i
class=
"fa fa-desktop"
></i>
{% trans "Virtual machines" %}
</h3>
</div>
...
...
circle/dashboard/views.py
View file @
9cd07b2b
...
...
@@ -630,7 +630,7 @@ class VmCreateDiskView(FormOperationMixin, VmOperationView):
op
=
'create_disk'
form_class
=
VmCreateDiskForm
show_in_toolbar
=
False
icon
=
'hdd'
icon
=
'hdd
-o
'
is_disk_operation
=
True
...
...
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