Remember <main> element
authorLanius Trolling <lanius@laniustrolling.dev>
Mon, 13 May 2024 23:11:08 +0000 (19:11 -0400)
committerLanius Trolling <lanius@laniustrolling.dev>
Mon, 13 May 2024 23:11:08 +0000 (19:11 -0400)
src/jvmMain/kotlin/info/mechyrdia/robot/ViewsRobot.kt

index f68b2b533ffe72a85ecfa0ec00ed74a791dabebe..fe0e9473be06b0f652dac3ed229505f9c95e46f4 100644 (file)
@@ -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"
+                                                       }
                                                }
                                        }
                                }