2018-05-11 16:04:17 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
Working
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2018-05-14 02:20:02 +02:00
|
|
|
{% if "error" in info or info.status == "FAILURE" or info.status == "REVOKED" %}
|
2018-05-11 16:04:17 +02:00
|
|
|
<h1>Task Failed</h1>
|
|
|
|
|
2018-05-14 02:20:02 +02:00
|
|
|
<pre>{{ info.error }}</pre>
|
2018-05-11 16:04:17 +02:00
|
|
|
{% else %}
|
|
|
|
<h1>Working…</h1>
|
2018-05-11 16:29:26 +02:00
|
|
|
|
|
|
|
<script src="/static/polltask.js"></script>
|
|
|
|
<script>
|
2018-05-17 16:18:20 +02:00
|
|
|
// @author rubenwardy
|
|
|
|
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
|
2018-05-11 16:29:26 +02:00
|
|
|
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>
|
2018-05-11 16:04:17 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|