From 6c67091edebfb662683ec8402b04381f136cef94 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 18 Aug 2022 21:46:23 -0700 Subject: [PATCH] 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 Reviewed-by: James Valleroy --- plinth/templates/operations.html | 10 ++++++++++ plinth/templates/setup.html | 9 +-------- 2 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 plinth/templates/operations.html diff --git a/plinth/templates/operations.html b/plinth/templates/operations.html new file mode 100644 index 000000000..12529c42c --- /dev/null +++ b/plinth/templates/operations.html @@ -0,0 +1,10 @@ +{% comment %} +# SPDX-License-Identifier: AGPL-3.0-or-later +{% endcomment %} + +{% for operation in operations %} +
+ + {{ operation.translated_message }} +
+{% endfor %} diff --git a/plinth/templates/setup.html b/plinth/templates/setup.html index 77501a018..78a76fade 100644 --- a/plinth/templates/setup.html +++ b/plinth/templates/setup.html @@ -69,14 +69,7 @@ {% else %} - - {% for operation in operations %} -
- - {{ operation.translated_message }} -
- {% endfor %} - + {% include "operations.html" %} {% endif %} {% endblock %}