-
Notifications
You must be signed in to change notification settings - Fork 3
/
loading_bug.html
38 lines (32 loc) · 928 Bytes
/
loading_bug.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{% extends "base.html" %}
{% block title %}SummBug{% endblock %}
{% block content %}
<div class="container">
<div class="loading-status" id="loading-status">
<div style="margin-top: 50%;"></div>
<div class="progress progress-striped active" style="margin-bottom: 5px;">
<div class="bar" style="width: 100%;"></div>
</div>
<div id="loading-text">
Loading bug from {{project}}...
</div>
</div>
</div>
{% block conten %}
<div id="summary"></div>
{% endblock %}
<script>
$.ajax({
type: "GET",
url: window.location.href,
data: {load: true}
}).done(function( msg ) {
$("#loading-status").slideUp(600);
$("#summary").delay(300).html(msg);
});
<!-- $("#summary").load(window.location.href + "?load", function(response, status) { -->
<!-- $("#loading-status").hide(); -->
<!-- }); -->
setTimeout('$("#loading-text").text("Summarizing bug...")', 2500);
</script>
{% endblock %}