contentdb/app/templates/tasks/view.html

30 lines
909 B
HTML
Raw Normal View History

2018-05-11 16:04:17 +02:00
{% extends "base.html" %}
{% block title %}
2022-01-08 00:27:00 +01:00
{% if "error" in info or info.status == "FAILURE" or info.status == "REVOKED" %}
{{ _("Task Failed") }}
{% else %}
{{ _("Working…") }}
{% endif %}
2018-05-11 16:04:17 +02:00
{% endblock %}
{% block content %}
2022-01-08 00:27:00 +01:00
<h1>{{ self.title() }}</h1>
2018-05-11 16:04:17 +02:00
2022-01-08 00:27:00 +01:00
{% if "error" in info or info.status == "FAILURE" or info.status == "REVOKED" %}
2024-03-27 18:55:51 +01:00
<pre style="white-space: pre-wrap; word-wrap: break-word;">{{ info.error }}</pre>
2018-05-11 16:04:17 +02:00
{% else %}
2023-08-26 14:08:11 +02:00
<script src="/static/js/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
pollTask("{{ url_for('tasks.check', id=info.id) }}", true)
.then(function() { location.reload() })
.catch(function() { location.reload() })
</script>
<noscript>
2022-01-08 00:27:00 +01:00
{{ _("Reload the page to check for updates.") }}
</noscript>
2018-05-11 16:04:17 +02:00
{% endif %}
{% endblock %}