From ac75655dbf29efb16c099cdcc5974c99ea7bc88b Mon Sep 17 00:00:00 2001 From: Lanius Trolling Date: Mon, 13 May 2024 19:11:08 -0400 Subject: [PATCH] Remember
element --- .../kotlin/info/mechyrdia/robot/ViewsRobot.kt | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/jvmMain/kotlin/info/mechyrdia/robot/ViewsRobot.kt b/src/jvmMain/kotlin/info/mechyrdia/robot/ViewsRobot.kt index f68b2b5..fe0e947 100644 --- a/src/jvmMain/kotlin/info/mechyrdia/robot/ViewsRobot.kt +++ b/src/jvmMain/kotlin/info/mechyrdia/robot/ViewsRobot.kt @@ -90,23 +90,25 @@ fun ApplicationCall.robotManagementPage(): HTML.() -> Unit { val robotServiceStatus = RobotService.status return adminPage("NUKE Management") { - h1 { +"NUKE Management" } - when (robotServiceStatus) { - RobotServiceStatus.NOT_CONFIGURED -> p { +"Unfortunately, the NUKE is not configured on this website." } - RobotServiceStatus.LOADING -> p { +"The NUKE is still in the process of initializing." } - RobotServiceStatus.FAILED -> p { +"Tragically, the NUKE has failed to initialize due to an internal error." } - RobotServiceStatus.READY -> ul { - li { - form(action = href(Root.Admin.NukeManagement.Update()), method = FormMethod.post) { - submitInput { - value = "Manually Trigger File Update" + main { + h1 { +"NUKE Management" } + when (robotServiceStatus) { + RobotServiceStatus.NOT_CONFIGURED -> p { +"Unfortunately, the NUKE is not configured on this website." } + RobotServiceStatus.LOADING -> p { +"The NUKE is still in the process of initializing." } + RobotServiceStatus.FAILED -> p { +"Tragically, the NUKE has failed to initialize due to an internal error." } + RobotServiceStatus.READY -> ul { + li { + form(action = href(Root.Admin.NukeManagement.Update()), method = FormMethod.post) { + submitInput { + value = "Manually Trigger File Update" + } } } - } - li { - form(action = href(Root.Admin.NukeManagement.Reset()), method = FormMethod.post) { - submitInput(classes = "evil") { - value = "Reset All Data And Start Over" + li { + form(action = href(Root.Admin.NukeManagement.Reset()), method = FormMethod.post) { + submitInput(classes = "evil") { + value = "Reset All Data And Start Over" + } } } } -- 2.25.1