contentdb/app/templates/tasks/view.html

26 lines
577 B
HTML
Raw Normal View History

2018-05-11 16:04:17 +02:00
{% extends "base.html" %}
{% block title %}
Working
{% endblock %}
{% block content %}
{% if "error" in info or info.status == "FAILURE" or info.status == "REVOKED" %}
2018-05-11 16:04:17 +02:00
<h1>Task Failed</h1>
<pre>{{ info.error }}</pre>
2018-05-11 16:04:17 +02:00
{% else %}
<h1>Working…</h1>
<script src="/static/polltask.js"></script>
<script>
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 %}