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
Hide 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):
...
@@ -131,7 +131,7 @@ class VmCustomizeForm(forms.Form):
"button"
,
"button"
,
AnyTag
(
AnyTag
(
"i"
,
"i"
,
css_class
=
"
icon
-play"
css_class
=
"
fa fa
-play"
),
),
HTML
(
" Start"
),
HTML
(
" Start"
),
css_id
=
"vm-create-customized-start"
,
css_id
=
"vm-create-customized-start"
,
...
@@ -163,7 +163,7 @@ class VmCustomizeForm(forms.Form):
...
@@ -163,7 +163,7 @@ class VmCustomizeForm(forms.Form):
Div
(
# cpu priority
Div
(
# cpu priority
Div
(
Div
(
HTML
(
'<label for="vm-cpu-priority-slider">'
HTML
(
'<label for="vm-cpu-priority-slider">'
'<i class="
icon
-trophy"></i> CPU priority'
'<i class="
fa fa
-trophy"></i> CPU priority'
'</label>'
),
'</label>'
),
css_class
=
"col-sm-3"
css_class
=
"col-sm-3"
),
),
...
@@ -182,7 +182,7 @@ class VmCustomizeForm(forms.Form):
...
@@ -182,7 +182,7 @@ class VmCustomizeForm(forms.Form):
Div
(
# cpu count
Div
(
# cpu count
Div
(
Div
(
HTML
(
'<label for="cpu-count-slider">'
HTML
(
'<label for="cpu-count-slider">'
'<i class="
icon
-cogs"></i> CPU count'
'<i class="
fa fa
-cogs"></i> CPU count'
'</label>'
),
'</label>'
),
css_class
=
"col-sm-3"
css_class
=
"col-sm-3"
),
),
...
@@ -201,7 +201,7 @@ class VmCustomizeForm(forms.Form):
...
@@ -201,7 +201,7 @@ class VmCustomizeForm(forms.Form):
Div
(
# ram size
Div
(
# ram size
Div
(
Div
(
HTML
(
'<label for="ram-slider">'
HTML
(
'<label for="ram-slider">'
'<i class="
icon
-ticket"></i> RAM amount'
'<i class="
fa fa
-ticket"></i> RAM amount'
'</label>'
),
'</label>'
),
css_class
=
"col-sm-3"
css_class
=
"col-sm-3"
),
),
...
@@ -313,7 +313,7 @@ class VmCustomizeForm(forms.Form):
...
@@ -313,7 +313,7 @@ class VmCustomizeForm(forms.Form):
"a"
,
"a"
,
AnyTag
(
AnyTag
(
"i"
,
"i"
,
css_class
=
"
icon-plus-sign
"
,
css_class
=
"
fa fa-plus-circle
"
,
),
),
css_id
=
(
"vm-create-network-add"
css_id
=
(
"vm-create-network-add"
"-button"
),
"-button"
),
...
@@ -556,7 +556,7 @@ class NodeForm(forms.ModelForm):
...
@@ -556,7 +556,7 @@ class NodeForm(forms.ModelForm):
"button"
,
"button"
,
AnyTag
(
AnyTag
(
"i"
,
"i"
,
css_class
=
"
icon
-play"
css_class
=
"
fa fa
-play"
),
),
HTML
(
"Start"
),
HTML
(
"Start"
),
css_id
=
"node-create-submit"
,
css_id
=
"node-create-submit"
,
...
@@ -934,7 +934,7 @@ class CircleAuthenticationForm(AuthenticationForm):
...
@@ -934,7 +934,7 @@ class CircleAuthenticationForm(AuthenticationForm):
"span"
,
"span"
,
AnyTag
(
AnyTag
(
"i"
,
"i"
,
css_class
=
"
icon
-user"
,
css_class
=
"
fa fa
-user"
,
),
),
css_class
=
"input-group-addon"
,
css_class
=
"input-group-addon"
,
),
),
...
@@ -948,7 +948,7 @@ class CircleAuthenticationForm(AuthenticationForm):
...
@@ -948,7 +948,7 @@ class CircleAuthenticationForm(AuthenticationForm):
"span"
,
"span"
,
AnyTag
(
AnyTag
(
"i"
,
"i"
,
css_class
=
"
icon
-lock"
,
css_class
=
"
fa fa
-lock"
,
),
),
css_class
=
"input-group-addon"
,
css_class
=
"input-group-addon"
,
),
),
...
@@ -976,7 +976,7 @@ class CirclePasswordResetForm(PasswordResetForm):
...
@@ -976,7 +976,7 @@ class CirclePasswordResetForm(PasswordResetForm):
"span"
,
"span"
,
AnyTag
(
AnyTag
(
"i"
,
"i"
,
css_class
=
"
icon
-envelope"
,
css_class
=
"
fa fa
-envelope"
,
),
),
css_class
=
"input-group-addon"
,
css_class
=
"input-group-addon"
,
),
),
...
...
circle/dashboard/static/dashboard/dashboard.js
View file @
9cd07b2b
...
@@ -121,11 +121,11 @@ $(function () {
...
@@ -121,11 +121,11 @@ $(function () {
$
(
"#dashboard-vm-list"
).
on
(
'click'
,
'.dashboard-vm-favourite'
,
function
(
e
)
{
$
(
"#dashboard-vm-list"
).
on
(
'click'
,
'.dashboard-vm-favourite'
,
function
(
e
)
{
var
star
=
$
(
this
).
children
(
"i"
);
var
star
=
$
(
this
).
children
(
"i"
);
var
pk
=
$
(
this
).
data
(
"vm"
);
var
pk
=
$
(
this
).
data
(
"vm"
);
if
(
star
.
hasClass
(
"
icon-star-empty
"
))
{
if
(
star
.
hasClass
(
"
fa-star-o
"
))
{
star
.
removeClass
(
"
icon-star-empty"
).
addClass
(
"icon
-star"
);
star
.
removeClass
(
"
fa-star-o"
).
addClass
(
"fa
-star"
);
star
.
prop
(
"title"
,
"Unfavourite"
);
star
.
prop
(
"title"
,
"Unfavourite"
);
}
else
{
}
else
{
star
.
removeClass
(
"
icon-star"
).
addClass
(
"icon-star-empty
"
);
star
.
removeClass
(
"
fa-star"
).
addClass
(
"fa-star-o
"
);
star
.
prop
(
"title"
,
"Mark as favourite"
);
star
.
prop
(
"title"
,
"Mark as favourite"
);
}
}
$
.
ajax
({
$
.
ajax
({
...
@@ -385,8 +385,8 @@ function generateVmHTML(pk, name, host, icon, _status, fav, is_last) {
...
@@ -385,8 +385,8 @@ function generateVmHTML(pk, name, host, icon, _status, fav, is_last) {
'</span>'
+
'</span>'
+
'<small class="text-muted"> '
+
host
+
'</small>'
+
'<small class="text-muted"> '
+
host
+
'</small>'
+
'<div class="pull-right dashboard-vm-favourite" data-vm="'
+
pk
+
'">'
+
'<div class="pull-right dashboard-vm-favourite" data-vm="'
+
pk
+
'">'
+
(
fav
?
'<i class="
icon
-star text-primary title-favourite" title="Unfavourite"></i>'
:
(
fav
?
'<i class="
fa fa
-star text-primary title-favourite" title="Unfavourite"></i>'
:
'<i class="
icon-star-empty
text-primary title-favourite" title="Mark as favorite"></i>'
)
+
'<i class="
fa fa-star-o
text-primary title-favourite" title="Mark as favorite"></i>'
)
+
'</div>'
+
'</div>'
+
'<div style="clear: both;"></div>'
+
'<div style="clear: both;"></div>'
+
'</a>'
;
'</a>'
;
...
@@ -394,7 +394,7 @@ function generateVmHTML(pk, name, host, icon, _status, fav, is_last) {
...
@@ -394,7 +394,7 @@ function generateVmHTML(pk, name, host, icon, _status, fav, is_last) {
function
generateGroupHTML
(
url
,
name
)
{
function
generateGroupHTML
(
url
,
name
)
{
return
'<a href="'
+
url
+
'" class="list-group-item real-link">'
+
return
'<a href="'
+
url
+
'" class="list-group-item real-link">'
+
'<i class="
icon-group
"></i> '
+
name
+
'<i class="
fa fa-users
"></i> '
+
name
+
'</a>'
;
'</a>'
;
}
}
...
...
circle/dashboard/static/dashboard/template-list.js
View file @
9cd07b2b
...
@@ -31,7 +31,7 @@ $(function() {
...
@@ -31,7 +31,7 @@ $(function() {
ttable
.
on
(
"aftertablesort"
,
function
(
event
,
data
)
{
ttable
.
on
(
"aftertablesort"
,
function
(
event
,
data
)
{
$
(
".template-list-table thead th i"
).
remove
();
$
(
".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
);
$
(
".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() {
...
@@ -4,13 +4,13 @@ $(function() {
/* vm operations */
/* vm operations */
$
(
'#ops, #vm-details-resources-disk'
).
on
(
'click'
,
'.operation.btn'
,
function
(
e
)
{
$
(
'#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
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
$
(
this
).
attr
(
'href'
),
url
:
$
(
this
).
attr
(
'href'
),
success
:
function
(
data
)
{
success
:
function
(
data
)
{
icon
.
removeClass
(
"
icon-spinner icon
-spin"
);
icon
.
removeClass
(
"
fa-spinner fa
-spin"
);
$
(
'body'
).
append
(
data
);
$
(
'body'
).
append
(
data
);
$
(
'#confirmation-modal'
).
modal
(
'show'
);
$
(
'#confirmation-modal'
).
modal
(
'show'
);
$
(
'#confirmation-modal'
).
on
(
'hidden.bs.modal'
,
function
()
{
$
(
'#confirmation-modal'
).
on
(
'hidden.bs.modal'
,
function
()
{
...
...
circle/dashboard/static/dashboard/vm-create.js
View file @
9cd07b2b
...
@@ -288,11 +288,11 @@ function vmCustomizeLoaded() {
...
@@ -288,11 +288,11 @@ function vmCustomizeLoaded() {
function
vmCreateNetworkLabel
(
pk
,
name
,
managed
)
{
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
)
{
function
vmCreateDiskLabel
(
pk
,
name
)
{
var
style
=
"float: left; margin: 5px 5px 5px 0;"
;
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() {
...
@@ -4,24 +4,24 @@ $(function() {
checkNewActivity
(
false
,
1
);
checkNewActivity
(
false
,
1
);
}
}
$
(
'a[href="#activity"]'
).
click
(
function
(){
$
(
'a[href="#activity"]'
).
click
(
function
(){
$
(
'a[href="#activity"] i'
).
addClass
(
'
icon
-spin'
);
$
(
'a[href="#activity"] i'
).
addClass
(
'
fa
-spin'
);
checkNewActivity
(
false
,
1
);
checkNewActivity
(
false
,
1
);
});
});
/* save resources */
/* save resources */
$
(
'#vm-details-resources-save'
).
click
(
function
()
{
$
(
'#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"
);
var
vm
=
$
(
this
).
data
(
"vm"
);
$
.
ajax
({
$
.
ajax
({
type
:
'POST'
,
type
:
'POST'
,
url
:
"/dashboard/vm/"
+
vm
+
"/op/resources_change/"
,
url
:
"/dashboard/vm/"
+
vm
+
"/op/resources_change/"
,
data
:
$
(
'#vm-details-resources-form'
).
serialize
(),
data
:
$
(
'#vm-details-resources-form'
).
serialize
(),
success
:
function
(
data
,
textStatus
,
xhr
)
{
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"
);
$
(
'a[href="#activity"]'
).
trigger
(
"click"
);
},
},
error
:
function
(
xhr
,
textStatus
,
error
)
{
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
)
{
if
(
xhr
.
status
==
500
)
{
addMessage
(
"500 Internal Server Error"
,
"danger"
);
addMessage
(
"500 Internal Server Error"
,
"danger"
);
}
else
{
}
else
{
...
@@ -76,13 +76,13 @@ $(function() {
...
@@ -76,13 +76,13 @@ $(function() {
var
eye
=
$
(
this
).
children
(
"#vm-details-pw-eye"
);
var
eye
=
$
(
this
).
children
(
"#vm-details-pw-eye"
);
eye
.
tooltip
(
"destroy"
)
eye
.
tooltip
(
"destroy"
)
if
(
eye
.
hasClass
(
"
icon-eye-open
"
))
{
if
(
eye
.
hasClass
(
"
fa-eye
"
))
{
eye
.
removeClass
(
"
icon-eye-open"
).
addClass
(
"icon-eye-close
"
);
eye
.
removeClass
(
"
fa-eye"
).
addClass
(
"fa-eye-slash
"
);
input
.
prop
(
"type"
,
"text"
);
input
.
prop
(
"type"
,
"text"
);
input
.
focus
();
input
.
focus
();
eye
.
prop
(
"title"
,
"Hide password"
);
eye
.
prop
(
"title"
,
"Hide password"
);
}
else
{
}
else
{
eye
.
removeClass
(
"
icon-eye-close"
).
addClass
(
"icon-eye-open
"
);
eye
.
removeClass
(
"
fa-eye-slash"
).
addClass
(
"fa-eye
"
);
input
.
prop
(
"type"
,
"password"
);
input
.
prop
(
"type"
,
"password"
);
eye
.
prop
(
"title"
,
"Show password"
);
eye
.
prop
(
"title"
,
"Show password"
);
}
}
...
@@ -269,7 +269,7 @@ $(function() {
...
@@ -269,7 +269,7 @@ $(function() {
$
(
"#getScreenshotButton"
).
click
(
function
()
{
$
(
"#getScreenshotButton"
).
click
(
function
()
{
var
vm
=
$
(
this
).
data
(
"vm-pk"
);
var
vm
=
$
(
this
).
data
(
"vm-pk"
);
var
ct
=
$
(
"#vm-console-screenshot"
);
var
ct
=
$
(
"#vm-console-screenshot"
);
$
(
"i"
,
this
).
addClass
(
"
icon-spinner icon
-spin"
);
$
(
"i"
,
this
).
addClass
(
"
fa-spinner fa
-spin"
);
$
(
this
).
prop
(
"disabled"
,
true
);
$
(
this
).
prop
(
"disabled"
,
true
);
ct
.
slideDown
();
ct
.
slideDown
();
var
img
=
$
(
"img"
,
ct
).
prop
(
"src"
,
'/dashboard/vm/'
+
vm
+
'/screenshot/'
);
var
img
=
$
(
"img"
,
ct
).
prop
(
"src"
,
'/dashboard/vm/'
+
vm
+
'/screenshot/'
);
...
@@ -280,7 +280,7 @@ $(function() {
...
@@ -280,7 +280,7 @@ $(function() {
// see: http://stackoverflow.com/a/3877079/1112653
// see: http://stackoverflow.com/a/3877079/1112653
$
(
"#vm-console-screenshot img"
).
load
(
function
(
e
)
{
$
(
"#vm-console-screenshot img"
).
load
(
function
(
e
)
{
$
(
"#getScreenshotButton"
).
prop
(
"disabled"
,
false
)
$
(
"#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) {
...
@@ -320,7 +320,7 @@ function removePort(data) {
function
decideActivityRefresh
()
{
function
decideActivityRefresh
()
{
var
check
=
false
;
var
check
=
false
;
/* if something is still spinning */
/* 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
;
check
=
true
;
/* if there is only one activity */
/* if there is only one activity */
if
(
$
(
'#activity-timeline div[class="activity"]'
).
length
<
2
)
if
(
$
(
'#activity-timeline div[class="activity"]'
).
length
<
2
)
...
@@ -360,7 +360,7 @@ function checkNewActivity(only_status, runs) {
...
@@ -360,7 +360,7 @@ function checkNewActivity(only_status, runs) {
$
(
"[title]"
).
tooltip
();
$
(
"[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
());
$
(
"#vm-details-state span"
).
html
(
data
[
'human_readable_status'
].
toUpperCase
());
if
(
data
[
'status'
]
==
"RUNNING"
)
{
if
(
data
[
'status'
]
==
"RUNNING"
)
{
$
(
"[data-target=#_console]"
).
attr
(
"data-toggle"
,
"pill"
).
attr
(
"href"
,
"#console"
).
parent
(
"li"
).
removeClass
(
"disabled"
);
$
(
"[data-target=#_console]"
).
attr
(
"data-toggle"
,
"pill"
).
attr
(
"href"
,
"#console"
).
parent
(
"li"
).
removeClass
(
"disabled"
);
...
@@ -382,7 +382,7 @@ function checkNewActivity(only_status, runs) {
...
@@ -382,7 +382,7 @@ function checkNewActivity(only_status, runs) {
1000
+
Math
.
exp
(
runs
*
0.05
)
1000
+
Math
.
exp
(
runs
*
0.05
)
);
);
}
}
$
(
'a[href="#activity"] i'
).
removeClass
(
'
icon
-spin'
);
$
(
'a[href="#activity"] i'
).
removeClass
(
'
fa
-spin'
);
},
},
error
:
function
()
{
error
:
function
()
{
...
...
circle/dashboard/static/dashboard/vm-list.js
View file @
9cd07b2b
...
@@ -171,7 +171,7 @@ $(function() {
...
@@ -171,7 +171,7 @@ $(function() {
$
(
".vm-list-table thead th i"
).
remove
();
$
(
".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
);
$
(
".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() {
...
@@ -17,13 +17,13 @@ function createTemplateTour() {
"<div class='popover-navigation'>"
+
"<div class='popover-navigation'>"
+
"<div class='btn-group'>"
+
"<div class='btn-group'>"
+
"<button class='btn btn-sm btn-default' data-role='prev'>"
+
"<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'>"
+
"<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> "
+
"<button class='btn btn-sm btn-default' data-role='pause-resume' data-pause-text='Pause' data-resume-text='Resume'>Pause</button> "
+
"</div>"
+
"</div>"
+
"<button class='btn btn-sm btn-default' data-role='end'>"
+
"<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>"
+
"</div>"
,
"</div>"
,
});
});
...
@@ -99,7 +99,7 @@ function createTemplateTour() {
...
@@ -99,7 +99,7 @@ function createTemplateTour() {
ttour
.
addStep
({
ttour
.
addStep
({
element
:
"#ops"
,
element
:
"#ops"
,
title
:
'<i class="
icon
-play"></i> '
+
gettext
(
"Deploy"
),
title
:
'<i class="
fa fa
-play"></i> '
+
gettext
(
"Deploy"
),
placement
:
"left"
,
placement
:
"left"
,
backdrop
:
true
,
backdrop
:
true
,
content
:
gettext
(
"Deploy the virtual machine."
),
content
:
gettext
(
"Deploy the virtual machine."
),
...
@@ -123,7 +123,7 @@ function createTemplateTour() {
...
@@ -123,7 +123,7 @@ function createTemplateTour() {
ttour
.
addStep
({
ttour
.
addStep
({
element
:
"#ops"
,
element
:
"#ops"
,
title
:
'<i class="
icon-save
"></i> '
+
gettext
(
"Save as"
),
title
:
'<i class="
fa fa-floppy-o
"></i> '
+
gettext
(
"Save as"
),
placement
:
"left"
,
placement
:
"left"
,
backdrop
:
true
,
backdrop
:
true
,
content
:
gettext
(
'Press the "Save as template" button and wait until the activity finishes.'
),
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 i18n %}
{% load sizefieldtags %}
{% 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 }}) -
{{ d.name }} (#{{ d.id }}) -
{% if not d.is_downloading %}
{% if not d.is_downloading %}
{% if not d.failed %}
{% if not d.failed %}
...
...
circle/dashboard/templates/dashboard/base.html
View file @
9cd07b2b
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
{% if user.is_authenticated and user.pk %}
{% 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;"
>
<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>
<a
class=
"navbar-brand pull-right"
href=
"{% url "
dashboard
.
views
.
profile-preferences
"
%}"
title=
"{% trans "
User
profile
"
%}"
style=
"color: white; font-size: 10px;"
>
<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>
<i
class=
"fa fa-user"
></i>
...
...
circle/dashboard/templates/dashboard/index-vm.html
View file @
9cd07b2b
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
{% if i.fav %}
{% if i.fav %}
<i
class=
"fa fa-star text-primary title-favourite"
title=
"{% trans "
Unfavourite
"
%}"
></i>
<i
class=
"fa fa-star text-primary title-favourite"
title=
"{% trans "
Unfavourite
"
%}"
></i>
{% else %}
{% 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 %}
{% endif %}
</div>
</div>
<div
style=
"clear: both;"
></div>
<div
style=
"clear: both;"
></div>
...
...
circle/dashboard/templates/dashboard/node-detail/_activity-timeline.html
View file @
9cd07b2b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
{% for a in activities %}
{% for a in activities %}
<div
class=
"activity"
data-activity-id=
"{{ a.pk }}"
>
<div
class=
"activity"
data-activity-id=
"{{ a.pk }}"
>
<span
class=
"timeline-icon{% if a.has_failed %} timeline-icon-failed{% endif %}"
>
<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>
</span>
<strong>
{{ a.get_readable_name }}
</strong>
<strong>
{{ a.get_readable_name }}
</strong>
{{ a.started|date:"Y-m-d H:i" }}, {{ a.user }}
{{ a.started|date:"Y-m-d H:i" }}, {{ a.user }}
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
{% if s.finished %}
{% if s.finished %}
{{ s.finished|time:"H:i:s" }}
{{ s.finished|time:"H:i:s" }}
{% else %}
{% 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 %}
{% endif %}
{% if s.has_failed %}
{% if s.has_failed %}
<div
class=
"label label-danger"
>
{% trans "failed" %}
</div>
<div
class=
"label label-danger"
>
{% trans "failed" %}
</div>
...
...
circle/dashboard/templates/dashboard/vm-detail.html
View file @
9cd07b2b
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
<div
class=
"col-md-4"
id=
"vm-info-pane"
>
<div
class=
"col-md-4"
id=
"vm-info-pane"
>
<div
class=
"big"
>
<div
class=
"big"
>
<span
id=
"vm-details-state"
class=
"label label-success"
>
<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>
{{ instance.get_status_display|upper }}
</span>
</span>
</span>
</div>
</div>
...
...
circle/dashboard/templates/dashboard/vm-detail/_activity-timeline.html
View file @
9cd07b2b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
{% for a in activities %}
{% for a in activities %}
<div
class=
"activity{% if a.pk == active.pk %} activity-active{%endif%}"
data-activity-id=
"{{ a.pk }}"
>
<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 %}"
>
<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>
</span>
<strong
{%
if
user
.
is_superuser
and
a
.
result
%}
title=
"{{ a.result }}"
{%
endif
%}
>
<strong
{%
if
user
.
is_superuser
and
a
.
result
%}
title=
"{{ a.result }}"
{%
endif
%}
>
{% if user.is_superuser %}
<a
href=
"{{ a.get_absolute_url }}"
>
{% endif %}
{% if user.is_superuser %}
<a
href=
"{{ a.get_absolute_url }}"
>
{% endif %}
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
{% if s.finished %}
{% if s.finished %}
{{ s.finished|time:"H:i:s" }}
{{ s.finished|time:"H:i:s" }}
{% else %}
{% 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 %}
{% endif %}
{% if s.has_failed %}
{% if s.has_failed %}
<div
class=
"label label-danger"
>
{% trans "failed" %}
</div>
<div
class=
"label label-danger"
>
{% trans "failed" %}
</div>
...
...
circle/dashboard/templates/dashboard/vm-detail/network.html
View file @
9cd07b2b
...
@@ -85,13 +85,13 @@
...
@@ -85,13 +85,13 @@
<table
class=
"table table-striped rule-table"
>
<table
class=
"table table-striped rule-table"
>
<thead>
<thead>
<tr><th>
<tr><th>
<i
class=
"fa fa-globe
icon
-2x"
></i>
<i
class=
"fa fa-globe
fa
-2x"
></i>
<i
class=
"fa fa-long-arrow-right
icon
-2x"
></i>
<i
class=
"fa fa-long-arrow-right
fa
-2x"
></i>
</th><th>
</th><th>
<i
class=
"fa fa-shield
icon
-2x"
></i>
<i
class=
"fa fa-shield
fa
-2x"
></i>
</th><th
colspan=
"2"
>
</th><th
colspan=
"2"
>
<i
class=
"fa fa-long-arrow-right
icon
-2x"
></i>
<i
class=
"fa fa-long-arrow-right
fa
-2x"
></i>
<i
class=
"fa fa-desktop
icon
-2x"
></i>
<i
class=
"fa fa-desktop
fa
-2x"
></i>
</th></tr>
</th></tr>
</thead>
</thead>
<tbody>
<tbody>
...
@@ -119,11 +119,11 @@
...
@@ -119,11 +119,11 @@
<table
class=
"table table-striped rule-table"
>
<table
class=
"table table-striped rule-table"
>
<thead>
<thead>
<tr><th>
<tr><th>
<i
class=
"fa fa-globe
icon
-2x"
></i>
<i
class=
"fa fa-globe
fa
-2x"
></i>
</th><th>
</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"
>
</th><th
colspan=
"2"
>
<i
class=
"fa fa-desktop
icon
-2x"
></i>
<i
class=
"fa fa-desktop
fa
-2x"
></i>
</th></tr>
</th></tr>
</thead>
</thead>
<tbody>
<tbody>
...
...
circle/dashboard/templates/dashboard/vm-detail/resources.html
View file @
9cd07b2b
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<button
type=
"submit"
class=
"btn btn-success btn-sm enabled-when-stopped"
id=
"vm-details-resources-save"
<button
type=
"submit"
class=
"btn btn-success btn-sm enabled-when-stopped"
id=
"vm-details-resources-save"
data-vm=
"{{ instance.pk }}"
data-vm=
"{{ instance.pk }}"
{%
if
not
op
.
resources_change
%}
disabled
{%
endif
%}
>
{%
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>
</button>
<span
class=
"hide-when-stopped"
<span
class=
"hide-when-stopped"
{%
if
op
.
resources_change
%}
style=
"display: none;"
{%
endif
%}
{%
if
op
.
resources_change
%}
style=
"display: none;"
{%
endif
%}
...
...
circle/dashboard/templates/dashboard/vm-list.html
View file @
9cd07b2b
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<div
class=
"panel-heading"
>
<div
class=
"panel-heading"
>
<div
class=
"pull-right table-sorting"
>
<div
class=
"pull-right table-sorting"
>
{% trans "Sorting ... " %}
{% trans "Sorting ... " %}
<!--<i class="fa fa-refresh
icon-spin icon
-2x"></i>-->
<!--<i class="fa fa-refresh
fa-spin fa
-2x"></i>-->
</div>
</div>
<h3
class=
"no-margin"
><i
class=
"fa fa-desktop"
></i>
{% trans "Virtual machines" %}
</h3>
<h3
class=
"no-margin"
><i
class=
"fa fa-desktop"
></i>
{% trans "Virtual machines" %}
</h3>
</div>
</div>
...
...
circle/dashboard/views.py
View file @
9cd07b2b
...
@@ -630,7 +630,7 @@ class VmCreateDiskView(FormOperationMixin, VmOperationView):
...
@@ -630,7 +630,7 @@ class VmCreateDiskView(FormOperationMixin, VmOperationView):
op
=
'create_disk'
op
=
'create_disk'
form_class
=
VmCreateDiskForm
form_class
=
VmCreateDiskForm
show_in_toolbar
=
False
show_in_toolbar
=
False
icon
=
'hdd'
icon
=
'hdd
-o
'
is_disk_operation
=
True
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