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"
+ }
}
}
}