From 704029459f76634fc979210dabeaff4729958bc2 Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Wed, 9 Dec 2020 11:32:14 -0500 Subject: [PATCH] Place some initial files for migration view This restores some of the original files and routes from the migration view of the classic ui with the eventual goal of fully reintegrating this system with the new ui. See: https://github.com/ansible/awx/commit/b39db745d4addd7aa4612a43cf3ebd12c4d206cd --- awx/main/middleware.py | 2 +- awx/ui_next/public/installing.html | 25 +++++++++++++++++++++++++ awx/ui_next/urls.py | 7 ++++++- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 awx/ui_next/public/installing.html diff --git a/awx/main/middleware.py b/awx/main/middleware.py index 759c2daa98..8bfd273811 100644 --- a/awx/main/middleware.py +++ b/awx/main/middleware.py @@ -181,4 +181,4 @@ class MigrationRanCheckMiddleware(MiddlewareMixin): plan = executor.migration_plan(executor.loader.graph.leaf_nodes()) if bool(plan) and \ getattr(resolve(request.path), 'url_name', '') != 'migrations_notran': - return redirect(reverse("ui:migrations_notran")) + return redirect(reverse("ui_next:migrations_notran")) diff --git a/awx/ui_next/public/installing.html b/awx/ui_next/public/installing.html new file mode 100644 index 0000000000..6495b7091c --- /dev/null +++ b/awx/ui_next/public/installing.html @@ -0,0 +1,25 @@ + + + + + + + + + + +
+ +

AWX is installing.

+

This page will refresh when complete.

+
+
+ + diff --git a/awx/ui_next/urls.py b/awx/ui_next/urls.py index 03c3bbd3d2..6612cee0eb 100644 --- a/awx/ui_next/urls.py +++ b/awx/ui_next/urls.py @@ -7,9 +7,14 @@ class IndexView(TemplateView): template_name = 'index.html' +class MigrationsNotran(TemplateView): + + template_name = 'installing.html' + + app_name = 'ui_next' urlpatterns = [ url(r'^$', IndexView.as_view(), name='index'), - #url(r'^migrations_notran/$', migrations_notran, name='migrations_notran'), + url(r'^migrations_notran/$', MigrationsNotran.as_view(), name='migrations_notran'), ]