example-in-django-waiting-r.../waiting_room/templates/components/tasks/update.html

12 lines
335 B
HTML
Raw Permalink Normal View History

2024-11-07 08:17:10 +01:00
<div id="component-notification__update">
<h1>Task</h1>
{% if result %}
<h2>Done!</h2>
<a href="{% url 'waiting_room:index' %}?result={{ result }}">Go to result</a>
{% elif progress %}
<progress value="{{ progress }}" max="100">{{ progress }}</progress>
{% else %}
<p>Nothing</p>
{% endif %}
</div>