mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
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:
parent
64e01fcfba
commit
6c67091ede
10
plinth/templates/operations.html
Normal file
10
plinth/templates/operations.html
Normal 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 %}
|
||||
@ -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 %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user