From 33de7a6800ba2447bf040bd25167e677a723bf2f Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 8 May 2022 15:58:33 +0200 Subject: Cleanup user frontend Signed-off-by: Georg Pfuetzenreuter --- .../net/libertacasa/pubsh/web/WebApplication.java | 4 +-- src/main/resources/templates/admin.html | 33 +++++++++------------- src/main/resources/templates/portal.html | 10 +++---- 3 files changed, 20 insertions(+), 27 deletions(-) (limited to 'src') diff --git a/src/main/java/net/libertacasa/pubsh/web/WebApplication.java b/src/main/java/net/libertacasa/pubsh/web/WebApplication.java index c9cbe07..e04aa48 100644 --- a/src/main/java/net/libertacasa/pubsh/web/WebApplication.java +++ b/src/main/java/net/libertacasa/pubsh/web/WebApplication.java @@ -159,7 +159,7 @@ public class WebApplication { Docker.deleteContainer(id); - return("redirect:/portal"); + return("redirect:/admin"); } @DeleteMapping("/frontend/image/delete/{id}") @@ -184,7 +184,7 @@ public class WebApplication { redirectAttributes.addFlashAttribute("message", returnmessage); } - return("redirect:/portal"); + return("redirect:/admin"); } @PostMapping(path="/frontend/container/add",consumes=MediaType.APPLICATION_FORM_URLENCODED_VALUE) diff --git a/src/main/resources/templates/admin.html b/src/main/resources/templates/admin.html index 5a84a5a..88ef9e4 100644 --- a/src/main/resources/templates/admin.html +++ b/src/main/resources/templates/admin.html @@ -8,6 +8,19 @@

Hello, .

+

Generate new shell:

+

Warning! Shells created from the administration panel are not covered by the cleanup logic!

+
+ + +

Available images:

@@ -27,23 +40,6 @@
- -

Generate new throw-away shell:

-
- - -
- - - -

Existing containers:

@@ -74,9 +70,6 @@
- - -

Logout diff --git a/src/main/resources/templates/portal.html b/src/main/resources/templates/portal.html index 33934c3..a9319a4 100644 --- a/src/main/resources/templates/portal.html +++ b/src/main/resources/templates/portal.html @@ -22,7 +22,7 @@
-

Available images:

+ -

Existing containers:

+

Existing shells:

- - + +
-- cgit v1.2.3