mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +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>
|
</form>
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% include "operations.html" %}
|
||||||
{% for operation in operations %}
|
|
||||||
<div class="app-operation">
|
|
||||||
<span class="fa fa-refresh fa-spin processing"></span>
|
|
||||||
{{ operation.translated_message }}
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user