blob: 97c3343230b406ae1913c04f4ac4233dca2b994b (
plain)
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
|
{% extends "base.html" %}
{% block title %}
Working
{% endblock %}
{% block content %}
{% if "error" in info or info.status == "FAILURE" or info.status == "REVOKED" %}
<h1>Task Failed</h1>
<pre>{{ info.error }}</pre>
{% else %}
<h1>Working…</h1>
<script src="/static/polltask.js"></script>
<script>
// @author rubenwardy
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
pollTask("{{ url_for('check_task', id=info.id) }}", true)
.then(function() { location.reload() })
.catch(function() { location.reload() })
</script>
<noscript>
Reload the page to check for updates.
</noscript>
{% endif %}
{% endblock %}
|