Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bba9a89a
authored
Mar 05, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: visual feedback during template save state
fixes
#75
parent
88dfdf9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
one/templates/show.html
+21
-2
No files found.
one/templates/show.html
View file @
bba9a89a
...
...
@@ -15,8 +15,22 @@
window
.
location
.
reload
();
}
}
})
},
1000
);
});
},
5000
);
{
%
endif
%
}
{
%
if
i
.
template
.
state
==
'SAVING'
%
}
var
savingTimer
=
setInterval
(
function
(){
$
.
ajax
({
type
:
'GET'
,
dataType
:
'json'
,
url
:
'{% url one.views.vm_ajax_instance_status id %}'
,
success
:
function
(
data
){
if
(
data
.
template
.
state
==
'READY'
){
window
.
location
.
href
=
'{% url one.views.home %}'
;
}
}
});
},
10000
);
{
%
endif
%
}
</script>
{% endblock %}
...
...
@@ -65,6 +79,11 @@
<img
src=
"{% static "
image
/
load
.
gif
"
%}"
/>
{% trans "Starting..." %}
</p>
{% elif i.template.state == "SAVING" %}
<p
style=
"font-size:25px; line-height:2em;text-align:center;"
>
<img
src=
"{% static "
image
/
load
.
gif
"
%}"
/>
{% trans "Saving..." %}
</p>
{% elif state == "ACTIVE" and not booting %}
<p
id=
"connect"
style=
"display:block; font-size:25px; line-height:2em;text-align:center;"
>
<a
href=
"{{uri}}"
class=
"button"
onclick=
"return connectbutton();"
>
...
...
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