Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
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
2c84d461
authored
Jun 06, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: add new new-disk buttons
parent
89787e6e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletions
+11
-1
circle/dashboard/static/dashboard/vm-common.js
+1
-1
circle/dashboard/templates/dashboard/vm-detail/_operations.html
+2
-0
circle/dashboard/templates/dashboard/vm-detail/resources.html
+8
-0
No files found.
circle/dashboard/static/dashboard/vm-common.js
View file @
2c84d461
...
...
@@ -3,7 +3,7 @@
$
(
function
()
{
/* vm operations */
$
(
'#ops'
).
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'
);
$
.
ajax
({
...
...
circle/dashboard/templates/dashboard/vm-detail/_operations.html
View file @
2c84d461
{% load i18n %}
{% for op in ops %}
{% if op.show_in_toolbar %}
<a
href=
"{{op.get_url}}"
class=
"operation operation-{{op.op}} btn btn-default btn-xs"
title=
"{{op.name}}: {{op.description}}"
>
<i
class=
"icon-{{op.icon}}"
></i>
<span
class=
"sr-only"
>
{{op.name}}
</span>
</a>
{% endif %}
{% endfor %}
circle/dashboard/templates/dashboard/vm-detail/resources.html
View file @
2c84d461
...
...
@@ -47,6 +47,14 @@
<h3>
{% trans "Disks" %}
<div
class=
"pull-right"
>
<a
href=
"{{op.download_disk.get_url}}"
class=
"btn btn-success btn-xs
operation operation-{{op.download_disk.op}} btn btn-default
btn-xs"
><i
class=
"icon-{{op.download_disk.icon}}"
></i>
{{op.download_disk.name}}
</a>
<a
href=
"{{op.create_disk.get_url}}"
class=
"btn btn-success btn-xs
operation operation-{{op.create_disk.op}} btn btn-default
btn-xs"
><i
class=
"icon-{{op.create_disk.icon}}"
></i>
{{op.create_disk.name}}
</a>
</div>
</h3>
...
...
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