Merge branch 'develop' into feature/search_autocomplete_haste
[ganeti_webmgr.git] / ganeti / templates / virtual_machine / delete_status.html
blob78c252d6c4497209819bd3c4450c983c005d765c
1 {% extends "menu_base.html" %}
2 {% load webmgr_tags %}
3 {% load i18n %}
4 {% block title %}Delete In Progress{% endblock %}
6 {% block head %}
7 <style>
8 #success {display:none;}
9 </style>
11 <script type="text/javascript">
12 $(document).ready(function() {
13 job_id = '{{instance.last_job.job_id}}';
14 if (job_id == '') {
15 {# job was finished before we loaded the page #}
16 job_complete();
17 } else {
18 get_job_status(job_id, job_complete);
19 poll_job_status(job_id, job_complete);
21 });
23 function job_complete() {
24 $('#messages').hide()
25 $('#success').show()
27 </script>
28 {% endblock %}
30 {% block content %}
31 <h1>
32 {% if cluster_admin %}
33 <a class="breadcrumb" href="{% url cluster-detail cluster.slug %}#virtual_machines">{{cluster.hostname|abbreviate_fqdn}}</a>
34 {% else %}
35 <span class="breadcrumb">{{cluster.hostname|abbreviate_fqdn}}</span>
36 {% endif %}
37 : <span class="breadcrumb">{{ instance.hostname }}</span>
38 : {% trans "deleting" %}
39 </h1>
41 {% include "job_status.html" %}
42 <ul id="messages"></ul>
44 <div id="success">{% trans "Deleted" %}.</div>
45 {% endblock %}