From: Lanius Trolling Date: Mon, 13 May 2024 23:11:08 +0000 (-0400) Subject: Remember
element X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=ac75655dbf29efb16c099cdcc5974c99ea7bc88b;p=factbooks Remember
element --- 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" + } } } }