operation: Factor out template code into a separate file

- To be reused with app.html

Tests:

- During installation of the coturn app, operation progress is shown in the
page.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2022-08-18 21:46:23 -07:00 committed by James Valleroy
parent 64e01fcfba
commit 6c67091ede
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 11 additions and 8 deletions

View File

@ -0,0 +1,10 @@
{% comment %}
# SPDX-License-Identifier: AGPL-3.0-or-later
{% endcomment %}
{% for operation in operations %}
<div class="app-operation">
<span class="fa fa-refresh fa-spin processing"></span>
{{ operation.translated_message }}
</div>
{% endfor %}

View File

@ -69,14 +69,7 @@
</form>
{% else %}
{% for operation in operations %}
<div class="app-operation">
<span class="fa fa-refresh fa-spin processing"></span>
{{ operation.translated_message }}
</div>
{% endfor %}
{% include "operations.html" %}
{% endif %}
{% endblock %}