mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-09 00:53:51 +01:00
30 lines
909 B
HTML
30 lines
909 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
{% if "error" in info or info.status == "FAILURE" or info.status == "REVOKED" %}
|
|
{{ _("Task Failed") }}
|
|
{% else %}
|
|
{{ _("Working…") }}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1>{{ self.title() }}</h1>
|
|
|
|
{% if "error" in info or info.status == "FAILURE" or info.status == "REVOKED" %}
|
|
<pre style="white-space: pre-wrap; word-wrap: break-word;">{{ info.error }}</pre>
|
|
{% else %}
|
|
<script src="/static/js/polltask.js"></script>
|
|
<script>
|
|
// @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>
|
|
{{ _("Reload the page to check for updates.") }}
|
|
</noscript>
|
|
{% endif %}
|
|
{% endblock %}
|